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 

how to make any key a hotkey

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





PostPosted: Tue Feb 09, 2010 4:34 pm    Post subject: how to make any key a hotkey Reply with quote

This is probably something super simple that I'm missing, but how can I activate a hotkey by pressing any key or clicking any mouse button.

the idea:

(wildcard)::Send#p
#p::msgbox,you hit a key

Thanks
Back to top
aaffe



Joined: 17 May 2007
Posts: 1002
Location: Germany - Deutschland

PostPosted: Tue Feb 09, 2010 5:08 pm    Post subject: Reply with quote

Code:
Input,XX,L1
MsgBox You pressed %XX%
Back to top
View user's profile Send private message
workingclay
Guest





PostPosted: Tue Feb 09, 2010 7:16 pm    Post subject: Reply with quote

Thanks for the help. That works for keyboard input but how about mouse clicks?
Back to top
Guest






PostPosted: Tue Feb 09, 2010 8:02 pm    Post subject: Reply with quote

Code:
~Lbutton::
~Rbutton::
~Mbutton::
msgbox
return
Back to top
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