| View previous topic :: View next topic |
| Author |
Message |
alexisfch
Joined: 09 Nov 2009 Posts: 92
|
Posted: Wed Dec 23, 2009 6:52 pm Post subject: Press joypad button when I press a specific key (keyboard) |
|
|
Im trying to press a specific joystick button (joy7) when I press a specific key (example: "a" key)
For example If I press joy7 send "b" key
If I press "a" key send joy7
So, if I press "a" key send "b" key
I tried with this:
| Code: | a::
send {joy7}
return
joy7::
send b
return |
but it doesn't work,  |
|
| Back to top |
|
 |
ruespe
Joined: 17 Jun 2008 Posts: 243
|
Posted: Wed Dec 23, 2009 7:42 pm Post subject: |
|
|
It's not possible, to send a joystick-button | Quote: | | Although a joystick button or axis can be remapped to become a key or mouse button, it cannot be remapped to some other joystick button or axis. That would be possible only with the help of a joystick emulator such as PPJoy. |
_________________ Greetings
Rog |
|
| Back to top |
|
 |
alexisfch
Joined: 09 Nov 2009 Posts: 92
|
Posted: Thu Dec 24, 2009 3:05 am Post subject: |
|
|
| maybe you didn't read my problem, I just want to remap a key as joystick. |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Thu Dec 24, 2009 4:02 am Post subject: |
|
|
| ruespe wrote: | | It's not possible, to send a joystick-button |
|
|
| Back to top |
|
 |
alexisfch
Joined: 09 Nov 2009 Posts: 92
|
Posted: Thu Dec 24, 2009 4:05 am Post subject: |
|
|
| so any idea? |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
|
| Back to top |
|
 |
jshafer817
Joined: 10 Nov 2010 Posts: 8
|
Posted: Wed Nov 10, 2010 8:43 pm Post subject: Send a joystick button? |
|
|
| So we still cannot Send a joystick-button? |
|
| Back to top |
|
 |
None
Joined: 28 Nov 2009 Posts: 3086
|
Posted: Wed Nov 10, 2010 9:05 pm Post subject: |
|
|
ninjabob7 has made the PPJoy Library which make it easier to work with PPJoy but you still need a second program  |
|
| Back to top |
|
 |
jshafer817
Joined: 10 Nov 2010 Posts: 8
|
Posted: Wed Nov 10, 2010 11:43 pm Post subject: Bummer |
|
|
RegRead,test, HKEY_LOCAL_MACHINE, SOFTWARE\TEST, test
if ErrorLevel {
PPJ_SetButton(1,1)
return
}
I guess that wont work then.... Cuz it aint workin =)
It was working with a MsgBox just so I know its reading the right key...
I added that to the PPJ.ahk and no dice.. Wonder if Visual Studio can do any of this... though I suck at that. |
|
| Back to top |
|
 |
|