how can we send keys to keyboard

Mike Driscoll kyosohma at gmail.com
Tue Oct 7 11:34:51 EDT 2008


On Oct 7, 10:13 am, mhangman <ceyhunalye... at gmail.com> wrote:
> how can we send keys to keyboard? i want to write a script that will
> push keyboard buttons and do what i want. its for a macro prog. there
> are some kinds at c++ and at java. for example actools prog. but i
> want to this in python...
>
> note:im not talking about print a key im talking about use it from its
> device
> please help


If I understand you correctly, you're probably wanting something like
SendKeys:

http://pypi.python.org/pypi/SendKeys/0.3

Unfortunately, this is for Windows only (as far as I can tell). But
you didn't say what OS you were using, so maybe this will work.

Mike



More information about the Python-list mailing list