Re: Simulating a mouse click
- From: Bosko Andjelkovic <b andjelkovic planet nl>
- To: gtk-list gnome org
- Subject: Re: Simulating a mouse click
- Date: Mon, 19 May 2003 19:08:57 +0200
Well, I need to send a mouse signal to a specific location on the screen (the position of the cursor) so that the user doesnt have to click. Can someone tell me how that is done?
Bosko
Why do you need to simulate a mouse click? You can detect when a pointer
enters and leaves a window - perhaps you'd rather use that signal instead?
I don't know the string equivlanets, but here are the values for that:
GDK_ENTER_NOTIFY
GDK_LEAVE_NOTIFY
-Rich
On Tuesday 13 May 2003 09:29, Bosko Andjelkovic wrote:
> I am creating an application that uses gtk+ and creating the interface
> was easy, but what I need to code now is 'simulating' n mouse click at
> the cursors current position (e.g. if the cursor happens to be hovering
> over a menu and my applications fakes a mouse click, the menu would
> open). I know that I can send mouse signals to widgets inside my
> application's interface, but I need this for the whole screen (i.e.
> detect the cursors position and then send a mouse signal to the object
> on that position).
> Someone told me that GDK can do this, so I took a look at the GDK API,
> but I still don't know how to do this. I did find a function called
> gdk_display_get_pointer(), which may be what I need to detect the
> cursors position, but I am not sure since I can't get it to work. Can
> anyone help me further with this?
> Thanks in advance.
>
> _______________________________________________
> gtk-list mailing list
> gtk-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-list
_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]