| View previous topic :: View next topic |
| Author |
Message |
Skjoff2
Joined: 06 Jan 2010 Posts: 5 Location: ag
|
Posted: Wed Jan 06, 2010 7:39 pm Post subject: Release key |
|
|
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 |
|
 |
ribbs2521
Joined: 28 Sep 2007 Posts: 273 Location: New York
|
Posted: Wed Jan 06, 2010 7:48 pm Post subject: |
|
|
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 |
|
 |
Skjoff2
Joined: 06 Jan 2010 Posts: 5 Location: ag
|
Posted: Wed Jan 06, 2010 8:31 pm Post subject: |
|
|
I don't get it working.
My code is like this
| Code: | ~ctrl::
keywait, Ctrl
numpad1
return |
|
|
| Back to top |
|
 |
ribbs2521
Joined: 28 Sep 2007 Posts: 273 Location: New York
|
Posted: Wed Jan 06, 2010 8:46 pm Post subject: |
|
|
You need to use the Keyword Send
| Code: | ~Ctrl::
KeyWait, Ctrl
Send, {NumPad1}
return |
|
|
| Back to top |
|
 |
|