[EM] Key injection not recognized *Fixed*

For help with SW3DG game related technical issues.
ellishawn
Ensign
Ensign
Posts: 2
Joined: Sat Jan 07, 2012 9:05 pm

[EM] Key injection not recognized *Fixed*

Post by ellishawn »

I have made a control panel for Evochron Mercs with a program called Touch-control and a iPad. It uses AutoHotKey scripts to inject keys into the host PC from the network. It works with several games I have just like typing keys on the keyboard.

When I'm at the Windows desktop, I can use it and see the keys appearing in a notepad program or whatever. However, in Evochron, it does not recognize the keys I press even in the "configure keys" screen if I go in there to set a key, it does not see the Touch-control keypresses.

Can anyone shed any light on how Evochron get's it's keypresses and how that might not be working with this or what I might do to get it to work? This works with every other game I have tried it with, so I'm surprised to see it breaking with Evochron Mercenaries.

If we can get it working, I will post some pics and the config files for others to use a cool iPad-based control panel with Evochron!

[Edited on 1-11-2012 by Vice]
User avatar
Vice
Administrator
Administrator
Posts: 12227
Joined: Fri Apr 25, 2003 1:38 am

[EM] Key injection not recognized *Fixed*

Post by Vice »

Interesting, I haven't used or tested the program myself, so I'm not sure how it feeds out signal data. The game uses the 'scancode' method of key input, a pretty standard DirectX/DInput input system. It'd be a bit surprising if such a program couldn't support scancodes (especially if it's geared toward supporting games on Windows), perhaps it has an option menu that lets you select different key input modes?
StarWraith 3D Games
www.starwraith.com | www.spacecombat.org
3D Space Flight and Combat Simulations
ellishawn
Ensign
Ensign
Posts: 2
Joined: Sat Jan 07, 2012 9:05 pm

[EM] Key injection not recognized *Fixed*

Post by ellishawn »

Actually, I just figured it out, it turns out I had to use "Send, {h down} Send, {h, up}" instead of just "Send, {h}" like my other games, I think it has to do with DirectInput because this is one of the methods suggested in the FAQ of AutoHotKey.

As promised, I will post my config and pics shortly as soon as I fix the rest of the commands on the touch interface.

[Edited on 1-8-2012 by ellishawn]
49rTbird
Captain
Captain
Posts: 2954
Joined: Sun Oct 28, 2007 10:57 pm
Location: Pinole,Ca,USA,Earth,Orion Spur,Milkyway, Etc.

[EM] Key injection not recognized *Fixed*

Post by 49rTbird »

ellishawn, Welcome to the forum and the Sim. Have fun and hope to see you in Multi-Player sometime.:)
Explore! Explore! Explore! \"There is no going back (Yet) so Make Today Count!