AutoHotkey Community

It is currently May 27th, 2012, 1:06 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Release key
PostPosted: January 6th, 2010, 8:39 pm 
Offline

Joined: January 6th, 2010, 8:37 pm
Posts: 5
Location: ag
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?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2010, 8:48 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2010, 9:31 pm 
Offline

Joined: January 6th, 2010, 8:37 pm
Posts: 5
Location: ag
I don't get it working.

My code is like this

Code:
~ctrl::
keywait, Ctrl
numpad1
return


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: January 6th, 2010, 9:46 pm 
Offline

Joined: September 28th, 2007, 3:56 am
Posts: 279
Location: New York
You need to use the Keyword Send

Code:
~Ctrl::
  KeyWait, Ctrl
  Send, {NumPad1}
  return


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Leef_me, WillTroll and 27 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group