Sending Keystrokes to a window

Stephen Isard S.IsardDeleteThis at ed.ac.uk
Tue Aug 7 05:14:09 CDT 2001


Andreas Mohr Usenet 08/01 wrote:
> 
> Rasjid <rasjidw at bigpond.com> wrote:
> > Is there any way of sending a set of keystrokes to a window, from a
> > command line function.
> 
> > Eg.
> > $ wine "c:\MyApplication.exe" &> logfile.log &
> > $ send.key.shell/perl.script
> 
> > where send.key.shell/perl.scrip will send keystorkes to the wine program
> > depending on the results of the log file.
> Umm, err, no, not yet.
> 
> This would be very helpful sometimes, though.
> 
> You'd have to do some process communication with a certain Wine
> process, though, if you intended to implement this kind of stuff.

I don't know whether this is what you had in mind, but you might want to
have a look at the xse command line interface to XSendEvent.  It's not
specific to wine.  It sends a keyboard event to the X window that you
specify.

Stephen Isard



More information about the wine-users mailing list