Re: Expanding Python as a macro language
- From: Mike Meyer <mwm@xxxxxxxxx>
- Date: Sat, 29 Oct 2005 13:24:19 -0400
aleaxit@xxxxxxxxx (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@xxxxxxxxx> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.
.
- References:
- Re: Expanding Python as a macro language
- From: Alex Martelli
- Re: Expanding Python as a macro language
- Prev by Date: py.log using decorators for DRY
- Next by Date: Any Pythonic GTK Undo library?
- Previous by thread: Re: Expanding Python as a macro language
- Next by thread: Re: Expanding Python as a macro language
- Index(es):
Relevant Pages
|