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 

Joypad stroke?

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Kastro
Guest





PostPosted: Sat Aug 23, 2008 10:26 am    Post subject: Joypad stroke? Reply with quote

I'm trying to get AutoHotkey to function where when I press a key on my keyboard it sends a "joypad stroke".

This was simple enough(Joy to Keyboard):
Code:
Joy3::Send {a}


However, the reverse doesn't seem to function(Keyboard to Joy):
Code:
a::Send {Joy3}



Some help?
Back to top
[VxE]



Joined: 07 Oct 2006
Posts: 1496

PostPosted: Sat Aug 23, 2008 10:29 am    Post subject: Reply with quote

The Manual wrote:
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.

_________________
My Home Thread
More Common Answers: [1]. It's in the FAQ [2]. Ternary ( a ? b : c ) guide [3]. Post code inside [code][/code] tags !
Back to top
View user's profile Send private message
Kastro
Guest





PostPosted: Sat Aug 23, 2008 10:34 am    Post subject: Reply with quote

Woah, swift reply.

I'll look into this PPJoy.
Back to top
Kastro
Guest





PostPosted: Sat Aug 23, 2008 10:40 am    Post subject: Reply with quote

Okay, downloaded it.
Now, how does this correspond to AutoHotkey?

How would I set something like this up?
Back to top
n-l-i-d
Guest





PostPosted: Sat Aug 23, 2008 11:32 am    Post subject: Reply with quote

PPJoy is a generic joystick driver, which can read and remap joystick signals, so very useful, but to invoke a signal to the joystick is something different and I found nothing in PPJoy's documentation pointing to that possibility.

PPJoy manual -> Remapping buttons and axes wrote:
If you choose a Set (Create) or Modify option and click on Next you will see the screen below.

This screen will show you the number of buttons, axes and hats that PPJoy will report to Windows for this device. It will also show you the HID types reported for the axes.


Which reminds me of DLLCall: Support for Human Interface devices. But Micha's dll can too only read, not invoke...

So, either way, you are left with remapping input I guess.

HTH
________________________________________________________
New here? Please, before you post...
1. Read the tutorial and try the examples. -> 2. Take a look at the command list to get an idea of what you could do. -> 3. Create your script. Consult the documentation and the FAQ if you get stuck. -> 4. Search the forum if you need help or examples, method 1 (forum), method 2 (site), method 3 (Google). -> 5. Post your code on the forum in the "Ask for Help" section if you still run into problems (but read this first). -> 6. There is more AHK on autohotkey.net and the Wiki and there is an AHK IRC chat.
Back to top
Display posts from previous:   
Post new topic   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