Re: send keys to focused window

2009-07-13 Thread Lawrence D'Oliveiro
In message , Broken wrote: > I am new to Python, and I'm miserably failing to send specific keys to > (say) notepad. I don't understand why you need to automate a GUI front-end, meant for human use, to a function that can be directly performed without that front-end anyway. -- http://mail.pytho

send keys to focused window

2009-07-09 Thread Broken
Hi, I am new to Python, and I'm miserably failing to send specific keys to (say) notepad. Here is the scenario: I have notepad open. My python script is running in the background. When I press ALT+a I want to intercept the keys and send "รค"(ASCII code: ALT+0228) instead. OS: Windows 7 Libraries