Re: How can I emulate a mouse click event at a specific location in my code?
- From: jcupitt gmail com
- To: "ying lcs" <yinglcs gmail com>
- Cc: gtk-list gnome org
- Subject: Re: How can I emulate a mouse click event at a specific location in my code?
- Date: Thu, 8 Nov 2007 17:24:15 +0000
Hi,
On 11/8/07, ying lcs <yinglcs gmail com> wrote:
> How can I emulate a mouse click event at a specific location (x,y)in
> my code so that my GTK application will response to it as if a user
> has clicked at the same location?
You can use the XTest extension to do this. Here's a bot that plays
the flash game "zookeeper" by grabbing the screen, analysing the
board, and generating click events:
http://cima.ng-london.org.uk/~john/zoobot.c
search for send_click().
John
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]