AutoHotkey Community

It is currently May 25th, 2012, 9:05 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 55 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
PostPosted: June 19th, 2007, 2:54 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
Here are the changes for v1.0.47:

Added support for function libraries, which allow a script to call a function in an external file without having to use #Include.

Added RegisterCallback(), which creates a machine-code address that when called, redirects the call to a function in the script. [developed by Jonathan Rennison (JGR)]

Added NumGet() and NumPut(), which retrieve/store binary numbers with much greater speed than Extract/InsertInteger.

Improved Sort with an option to do custom sorting according to the criteria in a callback function. [thanks Laszlo]

Improved OnMessage() with an option to allow more than one simultaneous thread. [thanks JGR]

Improved Critical with an option to change the message-check interval, which may improve reliability for some usages. [thanks Majkinetor and JGR]

Changed Critical to put SetBatchLines -1 into effect.

Changed the error messages produced by #ErrorStdOut to contain a space before the colon. [thanks Toralf]

Fixed OnMessage() functions that return one of their own local variables to return the number in that variable, not 0.

Fixed potential crashing of built-in variables that access the registry (e.g. A_AppData, A_Desktop, A_MyDocuments, A_ProgramFiles). [thanks Tekl]


Last edited by Chris on July 19th, 2007, 2:38 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 3:04 pm 
Juuucheee. Thanks for the new release.


Top
  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 3:13 pm 
Offline

Joined: December 27th, 2005, 1:46 pm
Posts: 6837
Location: France (near Paris)
Cool, a great release.
A little glitch: you linked to Functions.htm#lib, but created name Lib, it doesn't work in Firefox at least.

_________________
Image vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2")


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 3:17 pm 
Offline

Joined: March 16th, 2005, 10:33 pm
Posts: 968
Location: Frisia
Wow! 8)

Great work! Even though I might probably never use these features (they seem way over my head)... :wink:

_________________
Image mirror 1mirror 2mirror 3ahk4.me • PM or Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 3:27 pm 
Offline

Joined: May 24th, 2006, 2:49 pm
Posts: 4511
Location: Belgrade
The best release ever.

Now, I go to read docs...

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 5:11 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
PhiLho wrote:
you linked to Functions.htm#lib, but created name Lib, it doesn't work in Firefox at least.
Ah, so named anchors are case-sensitive. I've fixed that one and will keep keep it in mind for the future.

Thanks.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 5:15 pm 
Offline
User avatar

Joined: August 11th, 2004, 1:47 am
Posts: 5346
Location: UK
While you're at it can you change the link on downloads as well, it's supposed to be #archives.
Great release ftw. :)

_________________
GitHubScriptsIronAHK Contact by email not private message.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 19th, 2007, 5:19 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
I changed #Archives to #archives on both the download page and on the "Other Downloads" page. Thanks for the correction.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 4:17 am 
Offline

Joined: March 28th, 2004, 3:53 pm
Posts: 1865
wow! big release Chris, congratulations!
now ahk has more stuff that i don't understand :P and i've more stuff on my to-understand list!

_________________
Image


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 5:43 am 
Offline
User avatar

Joined: December 29th, 2004, 1:28 pm
Posts: 2541
Cool :) . Thanks Chris :) . It looks like the new functionality might fill in a lot of missing pieces for many projects :) .


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 11:38 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
We should all thank JGR mostly. Without his RegisterCallback(), this release would be much less interesting. :)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: June 20th, 2007, 3:38 pm 
Offline

Joined: July 12th, 2005, 1:21 pm
Posts: 633
I love you chris! (not the body-way ^^ )
And of course JGR who opens up my mind for more DllCalls :)

Thalon

_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum


Top
 Profile  
Reply with quote  
PostPosted: June 20th, 2007, 5:25 pm 
Offline

Joined: January 18th, 2006, 12:37 am
Posts: 290
SendPlay is acting differently in the new version. Scripts that worked fine before now no longer do what they're supposed to. I haven't done much testing other than running the new version for 5 minutes and then rolling back to the old version...

Was SendPlay changed in this version?

The code looks something like this:

Code:
SendPlay, {enter}
SendRaw, %SomeRawString%
SendPlay, {enter}


It seems that these commands aren't being sent in order anymore.

Also, if someone knows a way to send an enter keystroke in raw string, this will be a non-issue for what I'm doing. (The other workaround would be to make a Raw String to regular string function converter.)

_________________
My AutoHotkey Program for Warcraft III:
Warkeys
http://warkeys.sourceforge.net/

Remap your hotkeys
Healthbars always on
Remap inventory


Top
 Profile  
Reply with quote  
PostPosted: June 20th, 2007, 5:47 pm 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
POINTS wrote:
SendPlay is acting differently in the new version. Scripts that worked fine before now no longer do what they're supposed to. I haven't done much testing other than running the new version for 5 minutes and then rolling back to the old version...
Which old version? SendPlay and Send were not changed at all. I tested your script and it sends the keystrokes out of sequence in both 1.0.46.00 and 1.0.47.00. This is probably because the active window responds more quickly to SendPlay than to Send/SendRaw, so things can get out of order (especially with a KeyDelay of -1). This is probably related to the extra processing/buffering that the OS does for simultated keystrokes (Send/SendRaw) compared to SendPlay (SendPlay generates faster messages/events like ControlSend).

POINTS wrote:
Also, if someone knows a way to send an enter keystroke in raw string, this will be a non-issue for what I'm doing. (The other workaround would be to make a Raw String to regular string function converter.)
Sending a raw linefeed (`n) seems to work.


Top
 Profile  
Reply with quote  
PostPosted: June 20th, 2007, 7:16 pm 
Offline

Joined: January 18th, 2006, 12:37 am
Posts: 290
Ok, I'll try this out tonight.

_________________
My AutoHotkey Program for Warcraft III:
Warkeys
http://warkeys.sourceforge.net/

Remap your hotkeys
Healthbars always on
Remap inventory


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 55 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group