AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

v1.0.47 released: Stdlib, RegisterCallback, NumGet/Put
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements
View previous topic :: View next topic  
Author Message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Tue Jun 19, 2007 2:54 pm    Post subject: v1.0.47 released: Stdlib, RegisterCallback, NumGet/Put Reply with quote

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
View user's profile Send private message Send e-mail
toralf -nli
Guest





PostPosted: Tue Jun 19, 2007 3:04 pm    Post subject: Reply with quote

Juuucheee. Thanks for the new release.
Back to top
PhiLho



Joined: 27 Dec 2005
Posts: 6702
Location: France (near Paris)

PostPosted: Tue Jun 19, 2007 3:13 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
daonlyfreez



Joined: 16 Mar 2005
Posts: 738
Location: Berlin

PostPosted: Tue Jun 19, 2007 3:17 pm    Post subject: Reply with quote

Wow! Cool

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


Get your own Ron Paul 2008 userbar!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
majkinetor



Joined: 24 May 2006
Posts: 3544
Location: Belgrade

PostPosted: Tue Jun 19, 2007 3:27 pm    Post subject: Reply with quote

The best release ever.

Now, I go to read docs...
_________________
Back to top
View user's profile Send private message MSN Messenger
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Tue Jun 19, 2007 5:11 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5007
Location: imaginationland

PostPosted: Tue Jun 19, 2007 5:15 pm    Post subject: Reply with quote

While you're at it can you change the link on downloads as well, it's supposed to be #archives.
Great release ftw. Smile
_________________

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
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Tue Jun 19, 2007 5:19 pm    Post subject: Reply with quote

I changed #Archives to #archives on both the download page and on the "Other Downloads" page. Thanks for the correction.
Back to top
View user's profile Send private message Send e-mail
Rajat



Joined: 28 Mar 2004
Posts: 1715

PostPosted: Wed Jun 20, 2007 4:17 am    Post subject: Reply with quote

wow! big release Chris, congratulations!
now ahk has more stuff that i don't understand Razz and i've more stuff on my to-understand list!
_________________
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Wed Jun 20, 2007 5:43 am    Post subject: Reply with quote

Cool Smile . Thanks Chris Smile . It looks like the new functionality might fill in a lot of missing pieces for many projects Smile .
Back to top
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Jun 20, 2007 11:38 am    Post subject: Reply with quote

We should all thank JGR mostly. Without his RegisterCallback(), this release would be much less interesting. Smile
Back to top
View user's profile Send private message Send e-mail
Thalon



Joined: 12 Jul 2005
Posts: 640

PostPosted: Wed Jun 20, 2007 3:38 pm    Post subject: Reply with quote

I love you chris! (not the body-way ^^ )
And of course JGR who opens up my mind for more DllCalls Smile

Thalon
_________________
AHK-Icon-Changer
AHK-IRC
deutsches Forum
SacredVault
Back to top
View user's profile Send private message
POINTS



Joined: 18 Jan 2006
Posts: 283

PostPosted: Wed Jun 20, 2007 5:25 pm    Post subject: SendRaw/SendPlay not working Reply with quote

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
View user's profile Send private message Visit poster's website
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Wed Jun 20, 2007 5:47 pm    Post subject: Re: SendRaw/SendPlay not working Reply with quote

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
View user's profile Send private message Send e-mail
POINTS



Joined: 18 Jan 2006
Posts: 283

PostPosted: Wed Jun 20, 2007 7:16 pm    Post subject: Re: SendRaw/SendPlay not working Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements All times are GMT
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
Jump to:  
You cannot post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group