AutoHotkey Community

It is currently May 27th, 2012, 12:47 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: December 23rd, 2009, 7:52 pm 
Offline

Joined: November 9th, 2009, 4:24 pm
Posts: 94
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, :shock:


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 23rd, 2009, 8:42 pm 
Offline

Joined: June 17th, 2008, 7:51 am
Posts: 243
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2009, 4:05 am 
Offline

Joined: November 9th, 2009, 4:24 pm
Posts: 94
maybe you didn't read my problem, I just want to remap a key as joystick.


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2009, 5:02 am 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
ruespe wrote:
It's not possible, to send a joystick-button


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2009, 5:05 am 
Offline

Joined: November 9th, 2009, 4:24 pm
Posts: 94
so any idea?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: December 24th, 2009, 5:34 am 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
Download the PPJoy program that the help file recommends?
http://ppjoy.bossstation.dnsalias.org/


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Send a joystick button?
PostPosted: November 10th, 2010, 9:43 pm 
Offline

Joined: November 10th, 2010, 10:22 am
Posts: 8
So we still cannot Send a joystick-button?


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: November 10th, 2010, 10:05 pm 
Offline

Joined: November 28th, 2009, 4:45 am
Posts: 3089
ninjabob7 has made the PPJoy Library which make it easier to work with PPJoy but you still need a second program :(


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Bummer
PostPosted: November 11th, 2010, 12:43 am 
Offline

Joined: November 10th, 2010, 10:22 am
Posts: 8
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Exabot [Bot], Leef_me, Ohnitiel, XstatyK, Yahoo [Bot] and 17 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group