Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Python emulating keystrokes

Name: Anonymous 2014-02-22 5:22

Want to send key to Gameboy Emulator with python. Sendkeys() doen't work nor does win32api.keybd_event. Wat do

Name: Anonymous 2014-02-22 5:32

it doesn't work or it's sending keys to the wrong window?

Name: Anonymous 2014-02-22 5:42

Install BDS/Gentoo.

Name: Anonymous 2014-02-22 5:42

Sorry, forgot to specify.
It does work in text fields like skype etc. when sending to the active window. However the emulator doesn't recognize the input even though the key is sent to it.

Name: Anonymous 2014-02-22 5:50

>>3
>

Name: Anonymous 2014-02-22 6:00

Is there maybe an already written programm that takes text imput and exports the text as "real keystrokes"?

Name: Cudder !MhMRSATORI!fR8duoqGZdD/iE5 2014-02-22 6:11

PostThreadMessage(target, WM_KEYDOWN, 'K', 1);

Name: Anonymous 2014-02-22 7:13

>>7
I'll never get that to run

Name: Anonymous 2014-02-22 9:03

What emulator is it? Find out how it reads the keyboard before you ask this. It's probably using GetAsyncKeyState which ignores the windows messages you are sending it.

Name: Anonymous 2014-02-22 10:21

wow! /anus/ got a thread with useful anwsers!

>>9
which ignores the windows messages you are sending it
why is that?

Name: Anonymous 2014-02-23 1:30

have you tried autopy?

Don't change these.
Name: Email:
Entire Thread Thread List