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 

Hotkeys will not work

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
weaman



Joined: 10 Feb 2009
Posts: 4

PostPosted: Tue Feb 10, 2009 7:13 pm    Post subject: Hotkeys will not work Reply with quote

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
View user's profile Send private message
evan
Guest





PostPosted: Tue Feb 10, 2009 7:26 pm    Post subject: Reply with quote

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

PostPosted: Tue Feb 10, 2009 7:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
BigVent



Joined: 29 May 2008
Posts: 180

PostPosted: Tue Feb 10, 2009 8:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
weaman



Joined: 10 Feb 2009
Posts: 4

PostPosted: Tue Feb 10, 2009 9:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
Sivvy



Joined: 21 Jul 2008
Posts: 726
Location: Calgary, AB, Canada

PostPosted: Wed Feb 11, 2009 3:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
weaman



Joined: 10 Feb 2009
Posts: 4

PostPosted: Wed Feb 11, 2009 7:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group