AutoHotkey Community

It is currently May 26th, 2012, 6:16 pm

All times are UTC [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Hotkeys will not work
PostPosted: February 10th, 2009, 8:13 pm 
Offline

Joined: February 10th, 2009, 7:55 pm
Posts: 4
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2009, 8:26 pm 
if u click the trayicon to exit the program, why would the program's function(s) work?


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2009, 8:53 pm 
Offline

Joined: February 10th, 2009, 7:55 pm
Posts: 4
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2009, 9:53 pm 
Offline
User avatar

Joined: May 29th, 2008, 4:51 am
Posts: 186
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 10th, 2009, 10:35 pm 
Offline

Joined: February 10th, 2009, 7:55 pm
Posts: 4
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2009, 4:49 pm 
Offline

Joined: July 21st, 2008, 4:16 pm
Posts: 726
Location: Calgary, AB, Canada
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.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 11th, 2009, 8:28 pm 
Offline

Joined: February 10th, 2009, 7:55 pm
Posts: 4
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: batto, Google Feedfetcher and 62 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group