[svlug] sending fake UI events to a window in X

Robert Hajime Lanning lanning at lanning.cc
Wed Sep 15 18:24:19 PDT 2010


Florin Andrei wrote:
> I've an XP virtual machine in VirtualBox on my Linux laptop. For a 
> number of reasons, I can't change the screensaver config within XP, so 
> it keeps popping up after XX minutes of inactivity.
> 
> I'm currently trying to figure out if there's a way to send trivial 
> no-op user interface events ("mouse has moved 1 px up and back", "CTRL 
> key has been pressed/depressed") through VirtualBox to the guest, but in 
> case that doesn't work they way I hope it does - is there a way to 
> programatically generate such events and attach them to a window in X 
> Windows?
> 

The XTEST extension does that.
http://www.x.org/releases/X11R7.5/doc/Xext/xtestlib.pdf

-- 
END OF LINE
       --MCP




More information about the svlug mailing list