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 

Release key

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



Joined: 06 Jan 2010
Posts: 5
Location: ag

PostPosted: Wed Jan 06, 2010 7:39 pm    Post subject: Release key Reply with quote

How do I do this. When i release the Ctrl key i will use the numpad4.

Ctrl Up::numpad4

I think it will look like something like that.

Please can some1 do this for me?
Back to top
View user's profile Send private message AIM Address MSN Messenger
ribbs2521



Joined: 28 Sep 2007
Posts: 273
Location: New York

PostPosted: Wed Jan 06, 2010 7:48 pm    Post subject: Reply with quote

You will want a sub like this:

~CTRL::

And then a KeyWait command to wait for Ctrl to be released.


Example from Documentation
Code:
; Example #2: A simple hotkey:
~Capslock::
KeyWait, Capslock  ; Wait for user to physically release it.
MsgBox You pressed and released the Capslock key.
return
Back to top
View user's profile Send private message
Skjoff2



Joined: 06 Jan 2010
Posts: 5
Location: ag

PostPosted: Wed Jan 06, 2010 8:31 pm    Post subject: Reply with quote

I don't get it working.

My code is like this

Code:
~ctrl::
keywait, Ctrl
numpad1
return
Back to top
View user's profile Send private message AIM Address MSN Messenger
ribbs2521



Joined: 28 Sep 2007
Posts: 273
Location: New York

PostPosted: Wed Jan 06, 2010 8:46 pm    Post subject: Reply with quote

You need to use the Keyword Send

Code:
~Ctrl::
  KeyWait, Ctrl
  Send, {NumPad1}
  return
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