469,929 Members | 1,674 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,929 developers. It's quick & easy.

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 4488

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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by simo | last post: by
1 post views Thread by Bleedledeep | last post: by
1 post views Thread by John | last post: by
1 post views Thread by Benny Raymond | last post: by
2 posts views Thread by Klaus Jensen | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.