Expanding Python as a macro language

Mike Meyer mwm at mired.org
Sat Oct 29 13:24:19 EDT 2005


aleaxit at yahoo.com (Alex Martelli) writes:

>    ...
>> But the problem is that in Linux you can't even send a keystroke to
>> a running GUI application!
> Actually, if the app is running under X11 you may try to fake out a
> keystroke event (with low level calls, but ctypes might let you use it
> from Python).  Of course, the app WILL be told that the keystroke is
> fake, through a special flag if it cares to check for it, for security
> reasons; but if the app doesn't specifically defend itself in this way.

I'm pretty sure that python-xlib can do this without having to go to
low level calls.

    <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list