in reply to Sending keystrokes (linux) ?!?

It's really a complex question, because in X, your window manager will be intercepting many keystrokes. I'm using ICEWM on linux, and CTRL+ALT+RIGHT will cause my virtual desktops to cycle thru. If that is what you are trying to accomplish, look at this pseudocode
use X11::WMCtrl; foreach my $wrksp (0..9){ $wmctrl->switch($wrksp);

I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Sending keystrokes (linux) ?!?
by behd (Initiate) on Aug 09, 2006 at 16:26 UTC
    Hey that's the point, I want my wm to intercept the keystrokes :)
    I use XGL/Compiz and it's the combination of keys to switch between the faces of the cube.

    In fact, I have an IBM T42 laptop with HDAPS, a perlscript allow to record knock and then can be set in listen mode.
    (see: http://www-128.ibm.com/developerworks/linux/library/l-knockage.html )

    The listen mode allow to execute command -> I would like to write a perl script as command (ie. "sendkey.pl left" would rotate my cube left).

    Well I'll try what you said but I doubt that it's working with any wm...

    Thanks both for your fast replies :)
      Hehe thanks for X11::Protocol, I didn't use it (was kinda low level, for the stupid thing that I wanted to do) but it pointed me to: X11::GUITest

      which have a ready made SendKeys :p