mGBA Forums
script for key press inconsistent - Printable Version

+- mGBA Forums (
+-- Forum: mGBA (
+--- Forum: General (
+--- Thread: script for key press inconsistent (/showthread.php?tid=5628)

script for key press inconsistent - sweoyithaetga - 09-20-2023

I'm having an issue with creating a script that simulates a press of the X key (where I use my A button) to work consistently with mGBA.
I need it to be an external script that activates the mGBA window and presses X. The window activation part works everytime, but the key press only works around 1/5 of the time.

This key press works everywhere else such as chat boxes, so I know it's solid. It's only inconsistent with the emulator. I have tried multiple scripts, and used python, AutoIt and autohotkey. The result is always the same - the key press works only sometimes.

Any idea why this might happen? Thanks in advance.