472,353 Members | 1,469 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

intercepting keypresses, mouse movements, joystick movements.

Hi,

I've been looking at autohotkey to do some different usability hacks
for windows http://www.autohotkey.com/
one of the benefits of this language is it allows one to catch
keyboard usage, joystick usage, and mouse usage inputs very easily at
a global level or at application levels by watching applications for
events within the applications.

I was wondering if there were any python libraries that provided
similar functionality before I went ahead with the project though.

Cheers,
Bryan Rasmussen
Oct 9 '06 #1
2 4639

bryan rasmussen wrote:
Hi,

I've been looking at autohotkey to do some different usability hacks
for windows http://www.autohotkey.com/
one of the benefits of this language is it allows one to catch
keyboard usage, joystick usage, and mouse usage inputs very easily at
a global level or at application levels by watching applications for
events within the applications.

I was wondering if there were any python libraries that provided
similar functionality before I went ahead with the project though.

Cheers,
Bryan Rasmussen
You might take a look at pyHook:
http://sourceforge.net/project/showf...ckage_id=92632

Oct 9 '06 #2
Another option is to look at pywin32, which I believe has the
SetWindowsHook[Ex] commands, or to use ctypes (which is built in if
you're using python2.5) to load the neccessary dll's to use that
function. However, pyHook should be good unless you need something for
the joystick (don't think that's covered), or for detecting system or
dead keys (unless pyHook has been updated recently, the last time I
checked the docs said it didn't capture those keys).

Good Luck,
Jordan

TheSeeker wrote:
bryan rasmussen wrote:
Hi,

I've been looking at autohotkey to do some different usability hacks
for windows http://www.autohotkey.com/
one of the benefits of this language is it allows one to catch
keyboard usage, joystick usage, and mouse usage inputs very easily at
a global level or at application levels by watching applications for
events within the applications.

I was wondering if there were any python libraries that provided
similar functionality before I went ahead with the project though.

Cheers,
Bryan Rasmussen

You might take a look at pyHook:
http://sourceforge.net/project/showf...ckage_id=92632
Oct 9 '06 #3

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

Similar topics

4
by: simo | last post by:
I'm looking to make an app to record my mouse movements and play them back. It will essentially be for unit testing websites, so I suppose it...
1
by: Jonny | last post by:
Hi all, Does anyone know how to capture the Windows Keys (I know that they are out of the ascii key range) and how to capture and record Mouse...
1
by: Bleedledeep | last post by:
I am new to C#/.NET/DirectX, and could not find a simple example of how to read the X/Y location of the joystick. < YIKES!!! The...
1
by: John | last post by:
Hi all: I have an application that hides itself and displays an icon in the system tray. Is it possible for this application to detect keystrokes...
1
by: Benny Raymond | last post by:
In my attempt to make a macro recording program where i can then playback mouse movements i'm running into a big problem: I'm trying to simulate...
2
by: Klaus Jensen | last post by:
Hi! I need an ASP.net control, which makes it possible for the user to define imagemaps. I show an image, the user can define areas (polygons...
3
by: madhuri.eerupula | last post by:
Hi. How to simulate(automatic) mouse movements and click operation using c#. Actually, i got pixels in the face (face tracking) right now and i...
1
by: mflll | last post by:
I am having trouble responding writing a Javascript Program respond to keypresses on top of a paragraph. Here is the code I tried: <HTML>...
2
by: DanAusitn | last post by:
Good morning folk, a quick question to anyone who can help. i am working on a program and i am using the below code to simulate mouse...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python...

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.