| View previous topic :: View next topic |
| Author |
Message |
weaman
Joined: 10 Feb 2009 Posts: 4
|
Posted: Tue Feb 10, 2009 7:13 pm Post subject: Hotkeys will not work |
|
|
| I just started experimenting with AutoHotKey. So far not so good. I can not get a hot key to work the way I understand it should. I started with the tutorial and used the Google example. The file does end with .ahk, no .txt. I double-clicked it in Explorer, pressed the hot key combination and it worked OK. I then right-clicked on the icon in the lower right tray and clicked exit. NOW, my understanding is that I should be able to just hit the hot key pair and the script should execute. Am I correct? It does not. It will only work if I double-click it in Explorer. Please help me out. I'm using Windows XP Pro. I have no mapping software of any type installed and a standard keyboard. No other programs were running. AHK is assiciated with AutoHotKey to Run Script. I've 25+ years PC experience and am CompTIA A+ & N+ certified. |
|
| Back to top |
|
 |
evan Guest
|
Posted: Tue Feb 10, 2009 7:26 pm Post subject: |
|
|
| if u click the trayicon to exit the program, why would the program's function(s) work? |
|
| Back to top |
|
 |
weaman
Joined: 10 Feb 2009 Posts: 4
|
Posted: Tue Feb 10, 2009 7:53 pm Post subject: |
|
|
| evan wrote: | | if u click the trayicon to exit the program, why would the program's function(s) work? |
Are you saying I must always double-click the script name in Explorer or have the scripts open at startup? |
|
| Back to top |
|
 |
BigVent
Joined: 29 May 2008 Posts: 180
|
Posted: Tue Feb 10, 2009 8:53 pm Post subject: |
|
|
| weaman wrote: | | evan wrote: | | if u click the trayicon to exit the program, why would the program's function(s) work? |
Are you saying I must always double-click the script name in Explorer or have the scripts open at startup? |
Yes. It is like any other program... it must be open / executed to work. _________________ ~BigVent |
|
| Back to top |
|
 |
weaman
Joined: 10 Feb 2009 Posts: 4
|
Posted: Tue Feb 10, 2009 9:35 pm Post subject: |
|
|
Yes. It is like any other program... it must be open / executed to work.[/quote]
Makes sense of course. I was thinking(?) that somehow AutoHotKey made a permanent connection after a script was first run. I see now how it works. Thanks for the replys. |
|
| Back to top |
|
 |
Sivvy
Joined: 21 Jul 2008 Posts: 726 Location: Calgary, AB, Canada
|
Posted: Wed Feb 11, 2009 3:49 pm Post subject: |
|
|
| If you're sure that the program works, and you don't want it in the tray, Add #NoTrayIcon to the top of the code in the script, then move the script to "C:\Documents and Settings\"Your Windows UserName"\Start Menu\Programs\Startup". It will stay running everytime Windows starts, and you won't have to see it. |
|
| Back to top |
|
 |
weaman
Joined: 10 Feb 2009 Posts: 4
|
Posted: Wed Feb 11, 2009 7:28 pm Post subject: |
|
|
| Thank you. I NOW see that using the Startup folder is needed to have the scripts/hotkeys always ready. I didn't understand that at first. I'm getting better. The three made so far execute just fine. I again thank all who have helped out another newbe. |
|
| Back to top |
|
 |
|