Jump to content


Photo

JoyNum RapidFire is possible?


  • Please log in to reply
10 replies to this topic

#1 m0o0z

m0o0z
  • Members
  • 7 posts

Posted 18 July 2012 - 11:06 PM

Hi all. Sorry for my bad english :p

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.

#2 Wingfat

Wingfat
  • Members
  • 932 posts

Posted 19 July 2012 - 05:11 PM

cheers and Welcome to AHK
this may work.. i havent done any scripts with my Joy Sticks, try and let me know

#Persistent

$Joy1::
Loop, 1000
{
Sendinput {joy1}
}
return


#3 m0o0z

m0o0z
  • Members
  • 7 posts

Posted 19 July 2012 - 07:13 PM

Thanks for the interest friend, but doesn't work.
More ideas?

#4 tidbit

tidbit
  • Moderators
  • 2288 posts

Posted 19 July 2012 - 07:41 PM

If I recall correctly, you CANNOT SEND Joystick keys. you can only use them as hotkeys.

#5 m0o0z

m0o0z
  • Members
  • 7 posts

Posted 19 July 2012 - 10:20 PM

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.

#6 Wingfat

Wingfat
  • Members
  • 932 posts

Posted 20 July 2012 - 07:15 PM

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.

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.

#7 Pulover

Pulover
  • Members
  • 1251 posts

Posted 20 July 2012 - 07:23 PM

You could set the game to Keyboard and remap your joystick to the corresponding keys, then use rapidfire for the key you need.

#8 Wingfat

Wingfat
  • Members
  • 932 posts

Posted 20 July 2012 - 08:00 PM

can you try this one?
#Persistent

Joy1::
Loop, 500
{
   GetKeyState, JoyPad1, Joy1, P
If JoyPad1 = D
   Send, {Joy1}
Else
 Break
}



#9 m0o0z

m0o0z
  • Members
  • 7 posts

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
}


Sure friend.
The game i'm playing is compatible with the gamepad, keyboard and mouse, if you mix the two (click on the mouse and gamepad direcction for example) the game slows down, I do not know why this happens and the script does not makes the repetitions... :(

Thank you very much for your interest.

Edit: Let me try another game to see if it works and I tell you something.
Edit2: Confirmed, does not work, the repetition don't work. :cry:

#10 Wingfat

Wingfat
  • Members
  • 932 posts

Posted 23 July 2012 - 02:45 PM

hmmm i was able to get this one to work for another user for his World of Warcraft game

In the Help file of AHK there is a script for JoyStick test to determin your correct Joy#

$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.



#11 m0o0z

m0o0z
  • Members
  • 7 posts

Posted 24 July 2012 - 11:21 PM

Dont work :(
I give up.
Thanks for your help Wingfat.