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 

Multiple Keyboard Shortcuts in one *ahk file

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



Joined: 16 Jun 2005
Posts: 2

PostPosted: Thu Jun 16, 2005 2:27 am    Post subject: Multiple Keyboard Shortcuts in one *ahk file Reply with quote

Greetings,
My 10 year old Gateway AnyKey keyboard just went crazy which sent me scrambling for a new keyboard & this macro program(thanks, btw).
I want to make keyboard shortcuts(winkey + e=e-mail address, etc.) but want to avoid one *.ahk file for each shortcut. I tried putting all the commands in one *.ahk file but it ran the entire sequence when I pressed the first shortcut & the rest did not work. I'm looking for a way to load all the keyboard shortcuts in one *.ahk file. Can this be done. I apologize if this has been covered before.
Thanks,
Rich
Back to top
View user's profile Send private message
corrupt



Joined: 29 Dec 2004
Posts: 2436

PostPosted: Thu Jun 16, 2005 5:03 am    Post subject: Reply with quote

Hi Rich,

If the commands require more than one line then a line containing the word "Return" is required.

This does not require a Return line:
Code:
^j::Send, H


but this does:
Code:
^j::
Send, Hello
Return


More Info...
Smile
Back to top
View user's profile Send private message Visit poster's website
rgs_rx



Joined: 16 Jun 2005
Posts: 2

PostPosted: Sat Jun 18, 2005 4:53 pm    Post subject: Reply with quote

Dear Corrupt,
Thank you, that did the trick.
Rich
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   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