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.42 released: Better context-sensitive hotkeys
Goto page Previous  1, 2
 
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: Wed Feb 15, 2006 7:47 pm    Post subject: Reply with quote

Here are the changes for v1.0.42.01:

Fixed the following variables to work correctly when concatenated onto other strings: A_DetectHiddenWindows, A_DetectHiddenText, A_AutoTrim, and A_StringCaseSense. [thanks jballi]

Fixed KeyWait and GetKeyState in the subroutines of hook hotkeys (broken by 1.0.39) [thanks Laszlo & TobStro]. For example:
Code:
~LControl::
if not GetKeyState("LControl")
   ToolTip LControl is not down as expected (this bug affected some systems but not others).
return
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Sat Feb 18, 2006 2:45 am    Post subject: Reply with quote

Here are the changes for v1.0.42.02:

Fixed UpDown controls to snap onto the right control when inside a Tab control that contains a ListView. [thanks Thalon]

Improved the Hotkey command with an "Off" option (typically used to create a hotkey in an initially-disabled state).

Improved A_Cursor not to interfere with double-clicking. [thanks Shimanov]
Back to top
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5007
Location: imaginationland

PostPosted: Sat Feb 18, 2006 2:55 am    Post subject: Reply with quote

At last, the A_Cursor limitation is fixed Very Happy
_________________

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: Mon Feb 20, 2006 8:00 pm    Post subject: Reply with quote

Here are the changes for v1.0.42.03:

Fixed crash of WinActivate in certain rare circumstances. [thanks twhyman]

Changed hotstrings to require the mouse hook by default (see next item). This can be prevented via #Hotstring NoMouse.

Improved hotstrings to take into account mouse clicks. This allows a hotstring to fire when the user's click focuses a new control or moves the caret.

Improved the Random command with a means to set a new seed. [thanks Laszlo]

Improved #ClipboardTimeout to reattempt data reading when the first attempt fails. Previously, only the opening of the clipboard was reattempted.

Added built-in variable A_LastError for DllCall and Run/RunWait. It contains the result from the OS's GetLastError(). [thanks Shimanov and PhiLho]
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Tue Feb 21, 2006 1:49 am    Post subject: Reply with quote

Chris wrote:
Added built-in variable A_LastError for DllCall and Run/RunWait. It contains the result from the OS's GetLastError(). [thanks Shimanov and PhiLho]

Does this mean that GetLastError() will be called after each call? If yes, could this be made optional?
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 Feb 21, 2006 2:21 am    Post subject: Reply with quote

According to benchmarks, calling GetLastError() does not measurably impact performance (since the difference couldn't be measured, it's probably below 0.1%). I benchmarked it with GetTickCount because it's known to be a very fast function:

Code:
SetBatchLines -1

StartTime := A_TickCount
Loop 500000
   var := DllCall("GetTickCount")
Elapsed := A_TickCount - StartTime

MsgBox %Elapsed%

The result after the change was the same as it was before. Did you have some concern other than performance?
Back to top
View user's profile Send private message Send e-mail
corrupt



Joined: 29 Dec 2004
Posts: 2328

PostPosted: Tue Feb 21, 2006 2:48 am    Post subject: Reply with quote

Chris wrote:
The result after the change was the same as it was before. Did you have some concern other than performance?
Although performance was the main concern, it seems a bit unnecessary to add an extra call every time.
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 Feb 21, 2006 3:30 am    Post subject: Reply with quote

Calling GetLastError() unconditionally bothered me a bit too because it clearly isn't useful for most functions. However, even a non-API function can call SetLastError() as a means of returning extra info to its caller, so there is some value added there.

Also, it seems likely that GetLastError() is implemented a lot like GetTickCount() in the sense that it instantly returns a value from a fixed memory address. Such functions have the fastest possible execution time, almost as fast as a single line of inline code. In fact, the compiler might translate such functions into inline code (on the other hand, maybe it only does that for C-library functions like strlen).
Back to top
View user's profile Send private message Send e-mail
PhiLho



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

PostPosted: Tue Feb 21, 2006 9:55 am    Post subject: Reply with quote

Chris wrote:
Added built-in variable A_LastError for DllCall and Run/RunWait. It contains the result from the OS's GetLastError(). [thanks Shimanov and PhiLho]

Eh, sometime I wait for upgrading, skipping some minor releases, but this time, I run to download the latest version!
Thank you Chris.
I guess the first scripts will have to test for emptiness of the variable, for compatibility with old versions of AHK.
_________________
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
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon Mar 06, 2006 4:09 pm    Post subject: Reply with quote

Here are the changes for v1.0.42.04:

Fixed ClipboardAll when used with apps such as Word and Excel (broken by previous version). [thanks Roussi Nikolov]

Fixed ClipboardAll to prevent appearance of bookmarks in MS Word. [thanks Laszlo & 02clams]

Fixed A_TimeIdlePhysical being disrupted by simulated AltGr keystrokes. [thanks skrommel]

Fixed Send{Blind} causing sticking Win/Ctrl/Alt/Shift when the user released such a key in the middle of a Send.

Improved the Send command not to press and release the shift key after each uppercase letter (e.g. Send ABC).

Improved SoundSet/Get to support ComponentType "Headphones". [thanks Tobias Winkler]


I didn't get much coding done lately because the rehosting of autohotkey.com took a lot of time. Hopefully that's almost all taken care of now.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Mon Mar 06, 2006 6:18 pm    Post subject: Reply with quote

v1.0.42.05 is functionally identical to the previous release, whose EXE and BIN were about 1% larger than they should have been due to a compiler quirk.
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Tue Mar 07, 2006 5:51 pm    Post subject: Reply with quote

Here are the changes for v1.0.42.06:

Fixed crash of A_ScriptDir (broken by 1.0.42.01).

Fixed Run/RunWait's passing of an extra space character at the end of the parameter list when launching shortcuts. [thanks arbe]
Back to top
View user's profile Send private message Send e-mail
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10450

PostPosted: Thu Mar 09, 2006 5:55 pm    Post subject: Reply with quote

In v1.0.42.07, a crash of functions that recursively pass ByRef parameters was fixed. [thanks PhiLho]
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Announcements All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
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