baykovr / AVPI

an open source voice command macro software
https://baykovr.github.io/gavpi.html
GNU General Public License v3.0
198 stars 42 forks source link

DirectX input support #3

Closed jjonj closed 10 years ago

jjonj commented 10 years ago

Star Citizen is not accepting any mouse or keyboard input provided by GAVPI, which I believe will require a special handling for DirectX input. I remember voiceattack having an option for DirectX input to affirm my belief.

The first reply to this rather old thread might be helpful: http://www.ownedcore.com/forums/world-of-warcraft/world-of-warcraft-bots-programs/wow-memory-editing/174064-how-send-keystrokes-directx-game-c.html

baykovr commented 10 years ago

Interesting, since the currently used InputManger lib supports DirextX input http://www.codeproject.com/Articles/117657/InputManager-library-Track-user-input-and-simulate

Looking into it.

btw if you would like to be added to the project instead of using pulls let me know(baykovr@gmail.com). I have no other way to message you so this is it.

baykovr commented 10 years ago

08/08/2014 20:56 UTC StarCitizen Build 1553.50455 Patch 15.5.2 Win7x64

Works in above test, can I have more info regarding your test parameters?

jjonj commented 10 years ago

Interesting, I did a couple of tests, but I'll try again¨and gather some more info if it still doesn't work, hold on.

jjonj commented 10 years ago

Yep, I tried setting up a test that simply sends an X as keypress, tried using it for in-game chat and for respawning in freeflight mode with no reaction. I'm using windows 8.1x64 with directX 11, newest star citizen patch both with and without windowed mode. Command works perfectly outside Star Citizen. I tried other simple keystrokes and mouse presses as well. Here is my profile: http://pastebin.com/vwBn6KJD

EDIT: Using latest master branch of GAVPI EDIT2: I tried a couple of other games and it seems to work fine in those, wierd.

baykovr commented 10 years ago

Strange, perhaps something to do with cry engine?

jjonj commented 10 years ago

Possibly, I don't have any other cryengine games, but you say that it works for you? Can you confirm that it works both in hangar and in flight?

jjonj commented 10 years ago

Also btw. If you want to add me as developer I wouldn't mind, but I can't promise much in terms of activity!

baykovr commented 10 years ago

Just tested in both hangar and free flight using key press F , mouse press middle and left.

Works.

Ok no problem, wasn't how many pulls you had planned. If you would like to be added in the future just let me know, I wont impose on you.

jjonj commented 10 years ago

I think I've got it figured out, hold on

jjonj commented 10 years ago

Yep! The issue was one of windows preventing application interacting if they have different security levels, so running GAVPI as administrator solved the issue. I managed to circumvent my VA trial period and tried to see if VA would work, and surprisingly it did not, so I searched for issues with star citizen for VA and found: https://groups.google.com/forum/#!searchin/voiceattack/star$20citizen/voiceattack/ZVhERVdfnyI/jsfTPUyT2KoJ Gary's third comment explained the issue! Feel free to close this issue and perhaps add to the readme that people can try to run as admin if they're having issues!

baykovr commented 10 years ago

Good to know, thanks!

Updated readme.