LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 12-02-2003, 03:54 PM   #1
nonconformative
LQ Newbie
 
Registered: Nov 2003
Posts: 3

Rep: Reputation: 0
Help moving mouse with code.


How can I (which function and library) tell Xwindows where to place the mouse cursor? At the moment I'm using XSelectInput() to read the mouse position, now when a user clicks on one of the buttons, I want to move the mouse with code. Any help greatly appreciated.
 
Old 12-02-2003, 06:44 PM   #2
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
Check out:
#include <X11/extensions/XTest.h>

Specifically the functions:
XTestQueryExtension
XTestGrabControl
XTestFakeButtonEvent
XTestFakeMotionEvent
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
please help!my mouse is not moving! simon_qwl Linux - Newbie 2 07-18-2005 11:21 AM
(STRANGE) Mouse get's crazy when holding a key and moving mouse(Update to 2.6.10) the-copy Linux - Hardware 2 02-08-2005 12:07 PM
Why is my mouse not moving DrFrac Linux - Hardware 1 09-26-2004 12:22 AM
Mouse is moving on its own! 95se Linux - Laptop and Netbook 22 09-11-2004 11:42 AM
Mouse moving only up and down alanshrimpton Linux - Hardware 4 06-03-2003 02:35 AM


All times are GMT -5. The time now is 03:27 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration