I\'m using windows 8 and have the windows api module
I am trying to create a method:
TypeInput(argument) #argument is a string
with the
You want to use SendInput, rather than keybd_event, and make sure that the KEYBDINPUT.dwFlags field has the KEYEVENTF_UNICODE
flag set. If you're not using KEYEVENTF_UNICODE
, then you have to make sure to set both the scan code and the key code; otherwise you will get app-specific failures.
There is a Python wrapper for SendInput, so that will help too.