LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 03-15-2009, 08:22 PM   #1
luismanson
LQ Newbie
 
Registered: Feb 2008
Posts: 8

Rep: Reputation: 0
[Python] moving the mouse?


Hi, im doing a bit of (rookie) coding in python and im stuck with this....
how can i move the mouse to an X Y position from python? im taking the coordinates from an accelerometer... so y already have the X,Y values...
 
Old 03-17-2009, 06:06 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
I have next to no experience coding in python, but I'm pretty sure you'll be wanting to use the python xlib for this.

By the way, you don't move the mouse, you move the pointer.
 
  


Reply

Tags
mouse, move, python


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
Stopping mouse moving to or disable mouse on other displays akyu2000 Linux - Software 1 01-22-2009 04:48 PM
Mouse interrupting keyboard events, can't type while mouse is moving sandaili Linux - Hardware 0 08-04-2008 06:56 PM
C, C++, moving from Python b0uncer Programming 38 07-31-2007 11:13 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
Python Question - moving file across filesystems drj000 Programming 3 01-26-2005 11:36 AM


All times are GMT -5. The time now is 03:11 PM.

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