D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] Injecting KB and Mouse events

 

On 3/26/07, Simon Waters <simon@xxxxxxxxxxxxxx> wrote:
> Robin Cornelius wrote:
> >
> > Anybody know how i can inject keyboard and mouse events directly into
> > the (active) Xserver/display. So what ever window has current focus will
> > receive the events as if i had pressed the keyboard/moved the mouse myself.
>
> Xlib ?
>
> > Had a bit of a search but could not find any tools that would do this
> > but i am sure there are some.
>
> The Windows Manager may have a feature of use here i.e. DCOP/DBUS/Bonobo
>
> xautomation, and "regression testing" software for X Windows
> applications might be good as well.
>
> What are you trying to achieve? i.e. Do you really want raw events (ala
> Xlib) or do you want to drive a GUI from the command line, and if so in
> what Window manager, which GUI etc.
>

Thanks,

I just need to inject keboard and mouse as if i had just pressed the
button/moved the mouse myself. The App involved dosn't support DCOP or
other window manager extensions so have to go to xserver level. The
Link provided by Michael Moritmore shows perfect examples of what i
need to do.


-- 
Robin Cornelius
http://www.byteme.org.uk

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html