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 

Help. Specific multi-letter hotkey combo to launch function.

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



Joined: 22 Jan 2007
Posts: 205
Location: CO, USA

PostPosted: Fri Mar 27, 2009 11:07 pm    Post subject: Help. Specific multi-letter hotkey combo to launch function. Reply with quote

I'm writing a little April Fools script that, once they've hade enough, will exit and remove itself with a specific hotkey combo:: Win-EUR. It's a Ryder's Cup golf thing Twisted Evil

In other words the WIN key + letters "EUR", in that order.

Is this possible? Getting the order right is what's most important.

Thx. in advance,
_________________
Lars
Back to top
View user's profile Send private message
pajenn



Joined: 07 Feb 2009
Posts: 384

PostPosted: Fri Mar 27, 2009 11:34 pm    Post subject: Reply with quote

Look up the input key. The example below requires you to press WIN+E simultaneously, followed by UR within the next two seconds.

Code:
#e::
Input, EU_key, T2 L2, {esc}, ur
if EU_key = ur
  MsgBox April Fools!!
return


Warning: #e is normally reserved for launching Windows Explorer. There are probably more elegant ways of doing this anyway that do not require simultaneity of win+e...
_________________
Hardware: 1.8 GHz laptop with 4 GB ram, Windows XP/SP3
Software: Prevx, Privatefirewall, KeyScrambler.
Back to top
View user's profile Send private message
TotalBalance



Joined: 22 Jan 2007
Posts: 205
Location: CO, USA

PostPosted: Fri Mar 27, 2009 11:49 pm    Post subject: Reply with quote

That's great. I can definitely work with your example.
Thx.
_________________
Lars
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