| View previous topic :: View next topic |
| Author |
Message |
galimoth Guest
|
Posted: Sat Aug 29, 2009 3:14 pm Post subject: Autofire Number Pad? |
|
|
I'm trying to make an autofire type function for my number pad keys. It's based off a modified script that I found somewhere on these forums a long while back. It's below.
| Code: |
Ins::Suspend
Numpad3::
Loop
{
SetKeyDelay 30
Send {Numpad3}
If (GetKeyState("Numpad3","P")=0)
Break
}
|
For some reason, this script doesn't do anything at all, and I'm not sure why. The script it was modified from used LButton instead of Numpad3 and SetMouseDelay instead of SetKeyDelay. Other than that, they are identical. Any clues as to why the above script wouldn't work? Eventually, I want to map my entire number pad like this, but I need somewhere to start  |
|
| Back to top |
|
 |
Misc
Joined: 29 Aug 2009 Posts: 15
|
Posted: Sat Aug 29, 2009 3:22 pm Post subject: |
|
|
~Numpad3::
Loop
{
Sleep 25
Send, {Numpad3}
if !GetKeyState("Numpad3","P")
break
}
Return
Sleep: The higher the slower the lower the faster |
|
| Back to top |
|
 |
galimoth Guest
|
Posted: Sat Aug 29, 2009 6:33 pm Post subject: |
|
|
Works perfectly, thanks.  |
|
| Back to top |
|
 |
Misc
Joined: 29 Aug 2009 Posts: 15
|
Posted: Mon Aug 31, 2009 6:59 am Post subject: |
|
|
| No probelm |
|
| Back to top |
|
 |
|