Re: How move the mouse pointer using GTK ?
- From: Tobias Werth <sitowert informatik stud uni-erlangen de>
- To: Marc Santhoff <M Santhoff t-online de>
- Cc: GTK+ application development mail list <gtk-app-devel-list gnome org>
- Subject: Re: How move the mouse pointer using GTK ?
- Date: Thu, 9 Sep 2004 13:38:57 +0200
Hi,
Did you or anybody else solve this problem? I want to move the mouse pointer
to a definite position and found nothing about mouse movements in gtk API.
You can use the XTest-Extension for this task:
{ move mouse pointer off screen }
XTestFakeRelativeMotionEvent(screen, -240, -170, 0);
XFlush(screen);
Thank you for your fast reply. But I thought of a gtk/gdk solution, because I
wrote a program which should run under CYGWIN and Linux and I want to minimize
code differences between these two versions.
But if there's no such solution I will try your's for Linux and search for
another solution for windows.
Thanks,
Tobi
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]