script for key press inconsistent - Printable Version +- mGBA Forums (https://forums.mgba.io) +-- Forum: mGBA (https://forums.mgba.io/forumdisplay.php?fid=1) +--- Forum: General (https://forums.mgba.io/forumdisplay.php?fid=3) +--- 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. |