windows system wide keyboard input emulation in python -


i'm sending keyboard signals os (windows) via python. problem specific application (project 64, nintendo 64 emulator) not receiving signals, i'm not sure why. keys registered in word , browser example.

shell = win32com.client.dispatch("wscript.shell")   ser=serial.serial('com10',115200)  while 1:     datain=ser.read(1)     if datain=='':         continue     datain_int=int(binascii.hexlify(datain), 16)     datain_bin=bin(datain_int)     if datain_int==0:         continue     print(datain_int)     if datain_int==128:         shell.sendkeys("a") 

since other applications receiving keystrokes entirely possible application, being emulator, scanning keyboard directly rather having keystrokes passed operating system.

if case better off downloading source code , patching use input serial port directly. have @ source code see how receiving keyboard events.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -