Key events by python program
Posted: Sat Aug 18, 2018 9:16 am
Hi,
I am using an ordered GIMX adapter to use an OSW wheel on the PS4 and it works so good and stable that I am going to take part in a 24h online race soon. In that I would like to make the KERS button automatic as this is how it is in real life and would like to do this via python (only language I can code in properly) using UDP data to get the position on track, velocity, KERS level etc.
Now I tried to past keyevents to GIMX and I tried about 10 different libraries in python for that with no success. They all work in other windows programs like notepad or a browser and also in GIMX (in the GUI for shortkeys or selecting) but not when I press the Auto-Detect button...
Possible problems are that I use the 6.11 version of Gimx as any more recent version does not give me any FFB on my OSW (I tried all of them). Apart from that, the activation of the "Advanced" - "Window events" gets deactivated every time I reopen the config window also when I save the file.
Is there any other way to send commands to GIMX for button presses? It should also provide the possibility to keep the button pressed for as long as I do not send a keyup command.
Thanks a lot!
I am using an ordered GIMX adapter to use an OSW wheel on the PS4 and it works so good and stable that I am going to take part in a 24h online race soon. In that I would like to make the KERS button automatic as this is how it is in real life and would like to do this via python (only language I can code in properly) using UDP data to get the position on track, velocity, KERS level etc.
Now I tried to past keyevents to GIMX and I tried about 10 different libraries in python for that with no success. They all work in other windows programs like notepad or a browser and also in GIMX (in the GUI for shortkeys or selecting) but not when I press the Auto-Detect button...
Possible problems are that I use the 6.11 version of Gimx as any more recent version does not give me any FFB on my OSW (I tried all of them). Apart from that, the activation of the "Advanced" - "Window events" gets deactivated every time I reopen the config window also when I save the file.
Is there any other way to send commands to GIMX for button presses? It should also provide the possibility to keep the button pressed for as long as I do not send a keyup command.
Thanks a lot!