I tried make rapidfire button for a joypad, but does not work, can someone help?
I tried like this
$Joy1::
While GetKeyState("Joy1","p"){
Send {Joy1}
}
return
Any help is welcome.
Thanks.
Posted 18 July 2012 - 11:06 PM
Posted 19 July 2012 - 05:11 PM
#Persistent
$Joy1::
Loop, 1000
{
Sendinput {joy1}
}
return
Posted 19 July 2012 - 07:13 PM
Posted 19 July 2012 - 07:41 PM
Posted 19 July 2012 - 10:20 PM
If I recall correctly, you CANNOT SEND Joystick keys. you can only use them as hotkeys.
Posted 20 July 2012 - 07:15 PM
I do think there should be a way from the help file (Although the following Joystick control names cannot be used as hotkeys, they can be used with GetKeyState:) ... hmm. stuck at work with no JoyStick to test though.. i will when i get home.If I recall correctly, you CANNOT SEND Joystick keys. you can only use them as hotkeys.
Really?
That disappointment, but insurance is 100 x 100?
It should be possible, do not you think?
Thanks.
Posted 20 July 2012 - 07:23 PM
Posted 20 July 2012 - 08:00 PM
#Persistent
Joy1::
Loop, 500
{
GetKeyState, JoyPad1, Joy1, P
If JoyPad1 = D
Send, {Joy1}
Else
Break
}
Posted 21 July 2012 - 09:25 AM
can you try this one?
#Persistent Joy1:: Loop, 500 { GetKeyState, JoyPad1, Joy1, P If JoyPad1 = D Send, {Joy1} Else Break }
Posted 23 July 2012 - 02:45 PM
$Joy1::
Loop
{
if not GetKeyState("Joy1", "P")
break
Send Joy1
sleep 1
}
Return
F12::Suspend
}
Note: If you have trouble getting a script to recognize your joystick, one person reported needing to specify a joystick number other than 1 even though only a single joystick was present. It is unclear how this situation arises or whether it is normal, but experimenting with the joystick number in the joystick test script can help determine if this applies to your system.
Posted 24 July 2012 - 11:21 PM