| View previous topic :: View next topic |
| Author |
Message |
albe99
Joined: 16 Nov 2008 Posts: 2
|
Posted: Sun Nov 16, 2008 7:46 pm Post subject: number 2 key |
|
|
Hello, sorry im noob and also dont speak eng very well..
i need a script for a PC game that need to press the "2" key every second, but if i use the numpad2 doesnt work on this game (it recognise only the "2" key over the Q-W keys)
can someone show me a quick sample, or existing tutorial?
Thanks,
Alberto |
|
| Back to top |
|
 |
Frankie
Joined: 02 Nov 2008 Posts: 2850
|
Posted: Sun Nov 16, 2008 7:55 pm Post subject: |
|
|
send {2} should work
| Code: |
loop
{
ifwinactive, name of window
send {2}
}
|
untested |
|
| Back to top |
|
 |
albe99
Joined: 16 Nov 2008 Posts: 2
|
Posted: Sun Nov 16, 2008 8:20 pm Post subject: |
|
|
work!
thanks very much Frankie |
|
| Back to top |
|
 |
hassoun
Joined: 01 Apr 2008 Posts: 12
|
Posted: Mon Nov 17, 2008 4:12 am Post subject: |
|
|
| Code: | $F2::
loop
{
ifwinactive, AutoHotkey - Notepad
send {2}
if #F2
break
} |
How do I make F2 toggle the function? |
|
| Back to top |
|
 |
Frankie
Joined: 02 Nov 2008 Posts: 2850
|
Posted: Mon Nov 17, 2008 12:02 pm Post subject: |
|
|
| Code: |
$F2::
loop
{
ifwinactive, AutoHotkey - Notepad
{
send {2}
sending = true
}
if(sending)
break
}
|
|
|
| Back to top |
|
 |
|