attaching to a process and injecting events



Hi all:
Is it possible (relatively easy) to write a tool which can attach to a
running GTK process and inject events into its event handler?


I am interested in automating the import of OFX/QFX files into GNUCash
and can't see an easy way other than driving the GUI.

To do this there would need to be a way of:

a) given a process id, find out what windows are visible and/or have focus.

b) given a process id, send events to the event handler.


Any pointers would be appreciated.
Thanks, Chris.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]