| View previous topic :: View next topic |
| Author |
Message |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Wed Feb 15, 2006 7:47 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Sat Feb 18, 2006 2:45 am Post subject: |
|
|
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 |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5007 Location: imaginationland
|
Posted: Sat Feb 18, 2006 2:55 am Post subject: |
|
|
At last, the A_Cursor limitation is fixed  _________________
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: Mon Feb 20, 2006 8:00 pm Post subject: |
|
|
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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2328
|
Posted: Tue Feb 21, 2006 1:49 am Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Feb 21, 2006 2:21 am Post subject: |
|
|
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 |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2328
|
Posted: Tue Feb 21, 2006 2:48 am Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Feb 21, 2006 3:30 am Post subject: |
|
|
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 |
|
 |
PhiLho
Joined: 27 Dec 2005 Posts: 6702 Location: France (near Paris)
|
Posted: Tue Feb 21, 2006 9:55 am Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Mon Mar 06, 2006 4:09 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Mon Mar 06, 2006 6:18 pm Post subject: |
|
|
| 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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Mar 07, 2006 5:51 pm Post subject: |
|
|
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 |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Thu Mar 09, 2006 5:55 pm Post subject: |
|
|
| In v1.0.42.07, a crash of functions that recursively pass ByRef parameters was fixed. [thanks PhiLho] |
|
| Back to top |
|
 |
|