| View previous topic :: View next topic |
| Author |
Message |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Wed Jun 29, 2005 5:07 pm Post subject: |
|
|
| Code: | if A_OSType = WIN32_WINDOWS ; Windows 9x
IconFileName = %A_WinDir%\system\shell32.dll
else
IconFileName = %A_WinDir%\system32\shell32.dll
|
|
|
| Back to top |
|
 |
toralf
Joined: 31 Jan 2005 Posts: 3842 Location: Bremen, Germany
|
Posted: Wed Jun 29, 2005 5:13 pm Post subject: |
|
|
Thanks beardboy,
the guest was me. :) _________________ Ciao
toralf  |
|
| Back to top |
|
 |
kapege.de
Joined: 07 Feb 2005 Posts: 186 Location: Munich, Germany
|
Posted: Wed Jun 29, 2005 5:42 pm Post subject: |
|
|
Thanks, thanks, thanks!
This will be a hard nightshift for me to experiment with the new functions and improving my scripts. Hehe.
Peter |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Sun Jul 03, 2005 10:47 pm Post subject: |
|
|
Here are the changes for v1.0.36.02
Fixed hotstrings to work when the script is displaying an InputBox.
Fixed tilde key-up hotkeys such as "~5 up::" to avoid double-character output.
Disallowed linefeeds (`n) and other invisible characters in variable names.
Increased the stack limit from 1 to 4 MB, which allows functions and subroutines to recurse more deeply. Note: This does not increase the memory used by a typical script. [thanks Rubens]
Doubled the speed of accessing empty variables (which are slow due to the need to check if they're environment variables).
Improved all windowing commands to support multiple criteria (such as title+class) to narrow down the search.
Added built-in variable A_LoopFileExt, which contains the loop file's extension. |
|
| Back to top |
|
 |
corrupt
Joined: 29 Dec 2004 Posts: 2328
|
Posted: Sun Jul 03, 2005 11:00 pm Post subject: |
|
|
Nice improvements . Thanks |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Wed Jul 06, 2005 5:36 pm Post subject: |
|
|
Here are the changes for v1.0.36.03:
Improved FileSelectFolder to support a starting folder that doesn't restrict upward navigation.
Improved SetTimer to support an interval of up to 49.7 days rather than the previous 24.8. [thanks MIchael]
CHANGES FOR GUI
Fixed AltSubmit ListView's disruption of context menu.
Fixed LV_ModifyCol()'s auto-sizing to have no effect when not in report view (avoids traumatizing the ListView). [thanks Toralf]
Improved ListViews: 1) A_EventInfo contains the focused row for more types of events; 2) LV_GetCount("Col") retrieves the number of columns; 3) Added "Tile" as a ListView large-icon viewing mode (XP only). [thanks Toralf] |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Thu Jul 07, 2005 6:01 pm Post subject: |
|
|
Here are the changes for v1.0.36.04:
For ListViews: 1) Fixed the inability to switch out of tile mode; 2) The "H" (HotTrack) event is no longer received because its high frequency interfered with a script's processing of more important events. [thanks Toralf] |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Sat Jul 09, 2005 5:23 pm Post subject: |
|
|
| In v1.0.36.05: Fixed ToolTip, which was broken in v1.0.36.03 for operating systems older than XP. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Tue Jul 12, 2005 2:22 pm Post subject: |
|
|
Here are the changes for v1.0.36.06:
Fixed AltGr issues: 1) Inability of Send command to produce uppercase AltGr characters (introduced in v1.0.35); 2) Sticking control key for hotkeys such as "^!t::Send a" when fired via AltGr; 3) Possibly other AltGr issues. [thanks Henrique Peron]
Fixed ListView drawing problems when inside a Tab control. [thanks beardboy] |
|
| Back to top |
|
 |
beardboy
Joined: 02 Mar 2004 Posts: 444 Location: SLC, Utah
|
Posted: Tue Jul 12, 2005 6:49 pm Post subject: |
|
|
Thanks for the update and the quick response.
thanks,
beardboy |
|
| Back to top |
|
 |
arbe
Joined: 12 Apr 2005 Posts: 30
|
Posted: Fri Jul 15, 2005 10:05 am Post subject: AltGr Problem |
|
|
Chris, I still have a bug with AltGr, when trying to catch AltGr+V and sending Ctrl+Alt+V again.
| Code: | #UseHook
;#InstallKeybdHook
^!v::
KeyWait Control
KeyWait Alt
send {LCtrl Down}{LAlt Down}v{LAlt Up}{LCtrl Up}
return |
does not work, but
| Code: | ;#UseHook
#InstallKeybdHook
|
does. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Fri Jul 15, 2005 1:10 pm Post subject: |
|
|
| I tested it both ways and didn't notice any obvious misbehavior. Can you provide more details about the problem and the steps required to produce it on any system (such as your keyboard layout). |
|
| Back to top |
|
 |
arbe
Joined: 12 Apr 2005 Posts: 30
|
Posted: Fri Jul 15, 2005 1:29 pm Post subject: |
|
|
Chris,
thanks for the quick help. The application I want to automize is xplorer˛ on a WinXP SP2.
I have attached the keyhistory for the shortkey in both options (sorry for the german system, STRG is CTRL as you most probably already know):
| Code: |
#UseHook:
A2 01D d 2.66 STRG
A5 138 d 0.00 ALT GR
56 02F h d 0.34 V
56 02F s u 0.12 V
A2 01D u 0.04 STRG
A5 138 u 0.00 ALT GR
A2 01D i d 0.00 STRG
A2 01D i u 0.00 STRG
A2 01D i d 0.01 STRG
A4 038 i d 0.01 ALT
56 02F i d 0.01 V
56 02F i u 0.00 V
A4 038 i u 0.02 ALT
A2 01D i u 0.01 STRG
74 03F d 3.34 F5
#InstallKeybdHook:
A2 01D d 6.60 STRG
A5 138 d 0.00 ALT GR
56 02F d 0.37 V
56 02F u 0.14 V
A2 01D u 0.05 STRG
A5 138 u 0.00 ALT GR
A2 01D i d 0.00 STRG
A4 038 i d 0.01 ALT
56 02F i d 0.01 V
56 02F i u 0.00 V
A4 038 i u 0.01 ALT
A2 01D i u 0.01 STRG
74 03F d 4.06 F5
|
Obviously, UseHook has a CTRL Up, Down event in the middle of the script. When I first thought about the problem, I believed you just resolved the "Sticking control key for hotkeys such as ^!t::Send a when fired via AltGr" issue of v1.0.36.06 with UseHook but not with InstallKeybdHook. Manually triggering an intermediate Send Control command did not help though.
Please give me advice what additional information might help you to resolve the issue. Just in case you have a test system, you could download xplorer˛ in a free trial version from www.zabkat.com I am open for any testing though.
Thanks for looking into the matter! |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10450
|
Posted: Fri Jul 15, 2005 1:43 pm Post subject: |
|
|
The extra Ctrl keystroke is sent to suppress the Alt key's activation of the active window's menu bar. In this case, that keystroke is not needed because your layout has an AltGr key instead of a right Alt key. The following steps could work around this:
1) Use version 1.0.36.06 or later.
2) Put the following line near the top of the script. It allows the program to see that you have an AltGr key so that it knows not to send the extra Ctrl keystroke: Send {RAlt}
Also, assuming your script will always run on Windows 2000/XP or later, it would be slightly more correct and future-proof to send RAlt instead of LAlt with the Send command. This is because RAlt+LControl is a more accurate representation of AltGr on those operating systems:
send {LCtrl Down}{RAlt Down}v{RAlt Up}{LCtrl Up} |
|
| Back to top |
|
 |
arbe
Joined: 12 Apr 2005 Posts: 30
|
Posted: Fri Jul 15, 2005 2:00 pm Post subject: |
|
|
Chris,
I am using version 1.0.36.06. My script is supposed to catch AltGr+v but send LCtrl+LAlt+V.
I tried to put Send {RAlt} in the script which now looks like:
| Code: | Send {RAlt}
;#UseHook
#InstallKeybdHook
^!v::
KeyWait Control
KeyWait Alt
send {LCtrl Down}{LAlt Down}v{LAlt Up}{LCtrl Up}
return |
The output now looks like this:
| Code: | A2 01D d 0.16 STRG
A5 138 i d 0.00 ALT GR
A2 01D i u 0.00 STRG
A5 138 i u 0.00 ALT GR
A2 01D d 2.56 STRG
A5 138 d 0.00 ALT GR
56 02F d 0.29 V
56 02F u 0.12 V
A2 01D u 0.33 STRG
A5 138 u 0.00 ALT GR
A2 01D i d 0.01 STRG
A4 038 i d 0.01 ALT
56 02F i d 0.01 V
56 02F i u 0.00 V
A4 038 i u 0.01 ALT
A2 01D i u 0.01 STRG |
Still, xplorer˛ does not take the same action as manually pressing LCtrl+LAlt+V with the hotkey suspended.
Strangely, the keyhistory does not show any difference in keystrokes:
| Code: | A2 01D d 1.01 STRG
A5 138 d 0.00 ALT GR
56 02F d 0.25 V
56 02F u 0.14 V
A2 01D u 0.04 STRG
A5 138 u 0.00 ALT GR
A2 01D i d 0.01 STRG
A4 038 i d 0.01 ALT
56 02F i d 0.01 V
56 02F i u 0.00 V
A4 038 i u 0.01 ALT
A2 01D i u 0.01 STRG |
is the hotkey, and
| Code: | A2 01D d 2.26 STRG
A5 138 d 0.00 ALT GR
4D 032 d 0.28 M
4D 032 u 0.12 M
A2 01D u 0.31 STRG
A5 138 u 0.00 ALT GR
A2 01D d 1.00 STRG
A4 038 d 0.36 ALT
4D 032 d 0.27 M
4D 032 u 0.10 M
A4 038 u 0.16 ALT
A2 01D u 0.25 STRG |
is AltGr+m and then LCtrl+LAlt+M pressed manually (no hotkeys assigned to m).
Do you have any further idea, why this occurs with #InstallKeybdHook only and not with #UseHook? |
|
| Back to top |
|
 |
|