| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Jun 19, 2007 2:54 pm Post subject: v1.0.47 released: Stdlib, RegisterCallback, NumGet/Put |
|
|
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 Thu Jul 19, 2007 2:38 pm; edited 1 time in total |
|
| Back to top |
|
 |
toralf -nli Guest
|
Posted: Tue Jun 19, 2007 3:04 pm Post subject: |
|
|
| Juuucheee. Thanks for the new release. |
|
| Back to top |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6702 Location: France (near Paris)
|
Posted: Tue Jun 19, 2007 3:13 pm Post subject: |
|
|
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. _________________
vPhiLho := RegExReplace("Philippe Lhoste", "^(\w{3})\w*\s+\b(\w{3})\w*$", "$1$2") |
|
| Back to top |
|
 |
daonlyfreez
Joined: 16 Mar 2005 Posts: 738 Location: Berlin
|
Posted: Tue Jun 19, 2007 3:17 pm Post subject: |
|
|
Wow!
Great work! Even though I might probably never use these features (they seem way over my head)...  _________________
Get your own Ron Paul 2008 userbar! |
|
| Back to top |
|
 |
majkinetor
Joined: 24 May 2006 Posts: 3544 Location: Belgrade
|
Posted: Tue Jun 19, 2007 3:27 pm Post subject: |
|
|
The best release ever.
Now, I go to read docs... _________________
 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Jun 19, 2007 5:11 pm Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5007 Location: imaginationland
|
Posted: Tue Jun 19, 2007 5:15 pm Post subject: |
|
|
While you're at it can you change the link on downloads as well, it's supposed to be #archives.
Great release ftw.  _________________
RegExReplace("irc.freenode.net/autohotkey", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Jun 19, 2007 5:19 pm Post subject: |
|
|
| I changed #Archives to #archives on both the download page and on the "Other Downloads" page. Thanks for the correction. |
|
| Back to top |
|
 |
Rajat
Joined: 28 Mar 2004 Posts: 1715
|
Posted: Wed Jun 20, 2007 4:17 am Post subject: |
|
|
wow! big release Chris, congratulations!
now ahk has more stuff that i don't understand and i've more stuff on my to-understand list! _________________
 |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2328
|
Posted: Wed Jun 20, 2007 5:43 am Post subject: |
|
|
Cool . Thanks Chris . It looks like the new functionality might fill in a lot of missing pieces for many projects . |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Wed Jun 20, 2007 11:38 am Post subject: |
|
|
We should all thank JGR mostly. Without his RegisterCallback(), this release would be much less interesting.  |
|
| Back to top |
|
 |
Thalon
Joined: 12 Jul 2005 Posts: 640
|
|
| Back to top |
|
 |
POINTS
Joined: 18 Jan 2006 Posts: 283
|
Posted: Wed Jun 20, 2007 5:25 pm Post subject: SendRaw/SendPlay not working |
|
|
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 |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Wed Jun 20, 2007 5:47 pm Post subject: Re: SendRaw/SendPlay not working |
|
|
| 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. |
|
| Back to top |
|
 |
POINTS
Joined: 18 Jan 2006 Posts: 283
|
Posted: Wed Jun 20, 2007 7:16 pm Post subject: Re: SendRaw/SendPlay not working |
|
|
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 |
|
| Back to top |
|
 |
|