AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Press joypad button when I press a specific key (keyboard)

 
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
alexisfch



Joined: 09 Nov 2009
Posts: 92

PostPosted: Wed Dec 23, 2009 6:52 pm    Post subject: Press joypad button when I press a specific key (keyboard) Reply with quote

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, Shocked
Back to top
View user's profile Send private message
ruespe



Joined: 17 Jun 2008
Posts: 243

PostPosted: Wed Dec 23, 2009 7:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
alexisfch



Joined: 09 Nov 2009
Posts: 92

PostPosted: Thu Dec 24, 2009 3:05 am    Post subject: Reply with quote

maybe you didn't read my problem, I just want to remap a key as joystick.
Back to top
View user's profile Send private message
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Thu Dec 24, 2009 4:02 am    Post subject: Reply with quote

ruespe wrote:
It's not possible, to send a joystick-button
Back to top
View user's profile Send private message
alexisfch



Joined: 09 Nov 2009
Posts: 92

PostPosted: Thu Dec 24, 2009 4:05 am    Post subject: Reply with quote

so any idea?
Back to top
View user's profile Send private message
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Thu Dec 24, 2009 4:34 am    Post subject: Reply with quote

Download the PPJoy program that the help file recommends?
http://ppjoy.bossstation.dnsalias.org/
Back to top
View user's profile Send private message
jshafer817



Joined: 10 Nov 2010
Posts: 8

PostPosted: Wed Nov 10, 2010 8:43 pm    Post subject: Send a joystick button? Reply with quote

So we still cannot Send a joystick-button?
Back to top
View user's profile Send private message
None



Joined: 28 Nov 2009
Posts: 3086

PostPosted: Wed Nov 10, 2010 9:05 pm    Post subject: Reply with quote

ninjabob7 has made the PPJoy Library which make it easier to work with PPJoy but you still need a second program Sad
Back to top
View user's profile Send private message
jshafer817



Joined: 10 Nov 2010
Posts: 8

PostPosted: Wed Nov 10, 2010 11:43 pm    Post subject: Bummer Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group