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 

Simple Key Sequence help

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





PostPosted: Fri Jun 13, 2008 8:35 am    Post subject: Simple Key Sequence help Reply with quote

Hello!

My name is Sabin and i require some help with AutoHotKey because i'm VERY new with it.

I would like to know how can i create a macro that would press F1>1>F2 when i press key 1, or F3>4>F2 when i hit key 4. Basically F(X)>{key}>F2 when i press {key}.

Thanks!
Back to top
Klaus



Joined: 12 May 2005
Posts: 205
Location: Münster, Germany

PostPosted: Fri Jun 13, 2008 8:52 am    Post subject: Reply with quote

Hi, Sabin0,
have a look at "Hotkey" and "Send" in the manual, they will lead you to
something like
Code:
Hotkey, 1, labelHotkey1
return
labelHotkey1:
Hotkey, 1, labelHotkey1, off
Send {F1}
...
...
Hotkey, 1, labelHotkey1, on
return

Just give it a try!
Regards,
Klaus
Back to top
View user's profile Send private message Send e-mail
HugoV



Joined: 27 May 2007
Posts: 650

PostPosted: Fri Jun 13, 2008 8:57 am    Post subject: Reply with quote

Code:
~1::Send, {F1}1{F2}


What Klaus said and study these pages:
http://www.autohotkey.com/docs/Hotkeys.htm (note the modifiers)
http://www.autohotkey.com/docs/commands/Send.htm (see the list of Key names)[/code]
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