473,413 Members | 1,854 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

how to control the mouse pointer with python?

Hi.
Anybody know a way to control the mouse pointer
(move it around and click on things) using python?
Thanks.

Jul 18 '05 #1
5 2597
og******@yahoo.com wrote:
Anybody know a way to control the mouse pointer
(move it around and click on things) using python?


It depends on your operating system. For Windows, you'll want to use a
Python module to access the Win32 API. The relevant API function is
documented at <URL:http://tinyurl.com/jrxm>.
Jul 18 '05 #2
Sorry, I should have mentioned it's linux (debian).
Thanks.
It depends on your operating system.


Jul 18 '05 #3
On 2005-01-13, og******@yahoo.com <og******@yahoo.com> wrote:
Sorry, I should have mentioned it's linux (debian).
Thanks.


What environment?

Console?
X11?
MGR?
???

--
Grant Edwards grante Yow! My ELBOW is a remote
at FRENCH OUTPOST!!
visi.com
Jul 18 '05 #4
>What environment?

It's X.

Jul 18 '05 #5
On Thu, Jan 13, 2005 at 01:07:18PM -0800, og******@yahoo.com wrote:
Hi.
Anybody know a way to control the mouse pointer
(move it around and click on things) using python?


in X11, you could use Xlib to do so. In debian unstable, that's
"apt-get install python-xlib{,-doc}", and start reading.

--
John Lenton (jo**@grulic.org.ar) -- Random fortune:
Obviously I was either onto something, or on something.
-- Larry Wall on the creation of Perl

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)

iD8DBQFB5w79gPqu395ykGsRAkQ7AJ9HKiTw9IcrttTmz7VwEM yk1VOOrwCgo0MQ
KSbjWGqqgN7ck1axYhUEHDk=
=LUup
-----END PGP SIGNATURE-----

Jul 18 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ken Favrow | last post by:
Is there a way I can control the mouse with python? I need to be able to navigate and click in other applications based on vectors sent from my program. Basically a mouse macro type thing. any...
3
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
8
by: Tom | last post by:
Hi I am having problems working out if the mouse pointer is within the control bounds within the OnMouseMove method: Protected Overrides Sub OnMouseMove(ByVal e As MouseEventArgs) ...
5
by: BrianW | last post by:
I am working on a program that has multiple picturebox controls that a user is allowed to move around which are contained within a panel control for visual placement. In my mousedown event, I set...
0
by: Lucky | last post by:
hi guys, i'm looking for a soultion that helps me to show the subitem text of the listview control in the tooltip when the mouse pointer hovers on the subitem. i've found on solution, according to...
1
by: (PeteCresswell) | last post by:
Got a text control that where .Locked = True. I have the text blue and underlined to simulate a clickable link on a web page. If the user clicks on that field, I open up a window that shows the...
16
by: dfaber | last post by:
Hi all, I have been searching for a keyboard and mouse tracker on linux. I've read solutions (watch at sourceforge) which look at /proc/interrupts to check keyboard or mouse activity. I also read...
4
by: Johnny Jensen | last post by:
Hello Group In the old days i'ev created a VB6 appl. that was able to obtain the underlaying control under the mouse pointer. I would very much like to do that in a C# application. I'll use...
1
by: celoftis | last post by:
BACKGROUND: I have some PPT slides that have been converted to HTM (ensuring that the show slide animations while browsing checkbox is checked). The original HTM slides have custom animations to...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.