| View previous topic :: View next topic |
| Author |
Message |
loneaussie
Joined: 02 Aug 2004 Posts: 1 Location: melbourne,australia
|
Posted: Mon Aug 02, 2004 6:29 am Post subject: Suspending and resuming AHK via the pop-up menu |
|
|
Congratulations on a very useful product!
I have noticed the following when using AHK under Windows 2000.
If I suspend Hotkeys via the pop-up menu (right click on tray icon) and then later resume hotkeys by unchecking the tick on the suspend hotkeys pop-up menu item then the hotkeys remain suspended.
Is this a bug or have I misunderstood this functionality.
Might I suggest that the tick method be replaced by changing the menu item text from "Suspend Hotkeys" to "Resume Hotkeys" (i.e. make that menu item context sensitive) is a more ergonomic and understandable technique. _________________ Regards from Australia
Loneaussie |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Mon Aug 02, 2004 8:55 am Post subject: |
|
|
I can't reproduce that behavior on my Windows XP. Could you post a short example script whose hotkeys fail to resume on your system?
| Quote: | | Might I suggest that the tick method be replaced by changing the menu item text from "Suspend Hotkeys" to "Resume Hotkeys" (i.e. make that menu item context sensitive) is a more ergonomic and understandable technique |
I think it's a matter of opinion. I find the checkmark more ergonomic because it is iconic and easier to remember. You can tell at a glance whether hotkeys are suspended without having to actually read and understand the word "suspend" or "resume". Note: The tray icon also changes to the letter S when hotkeys are suspended. |
|
| Back to top |
|
 |
Guest
|
Posted: Mon Aug 02, 2004 9:27 am Post subject: |
|
|
Here is the test script I have been using and which causes the reported bug under windows 2000.
; Script Function:
; Test
;
:*c:1 m::Once in the morning
:*c:1 c m::One as required
:*c:1 l::One at lunch
:*c:1 d::One at dinner
If you need any other info let me know. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Mon Aug 02, 2004 6:15 pm Post subject: |
|
|
Thanks, that's exactly the info I needed.
It's hopefully fixed in the Installer, which has been updated at http://www.autohotkey.com/download/
Changes:
Fixed command Suspend, which sometimes permanently disabled all hotstrings. [thanks Loneaussie]
Fixed commands Suspend and Hotkey, which sometimes reset the state of the keys to "all up" even if the user was holding down a hotkey. [thanks WhiteCloud] |
|
| Back to top |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Tue Oct 19, 2004 12:31 pm Post subject: |
|
|
Hi,
is it possible to change the suspend-icon? Also in a exe?
Tekl |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Tue Oct 19, 2004 2:41 pm Post subject: |
|
|
No, but you could implement your own "suspend" by using the Hotkey command instead of suspend, and then use "Menu, tray, icon, MyIcon.ico" to change the icon back and forth whenever your custom-suspend is in effect.
For a future version, I'll check if there is an easy way for the suspend icon to be altered. |
|
| Back to top |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Tue Oct 19, 2004 4:41 pm Post subject: |
|
|
Thanks Chris,
will all used icons be included in a compiled exe?
Tekl |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Tue Oct 19, 2004 5:42 pm Post subject: |
|
|
No, only the icon specified in the compiler options will be included (it replaces the main icon). To include extra icons, I think you could use a free utility such as ResHacker to attach them to the EXE. Then you could use this to get them:
Menu, tray, icon, %A_ScriptFullPath%, 7 ; Replace 7 with the actual icon number.
The above is untested, so please post your results if you decide to try it.
Incidentally, you could also replace the suspend and pause icons by using ResHacker. You would then have a custom icon in effect whenever the script is suspended or paused.
Edit: It is now possible to have a custom icon for Pause and/or Suspend via the the last parameter of the menu command, such as this example: Menu, Tray, Icon, C:\My Icon.ico,, 1
Last edited by Chris on Tue Feb 22, 2005 7:45 pm; edited 1 time in total |
|
| Back to top |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Wed Oct 20, 2004 1:33 pm Post subject: |
|
|
Hi Chris,
thanks for the hint. Maybe, I'll try it next days.
Tekl |
|
| Back to top |
|
 |
|