By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,908 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,908 IT Pros & Developers. It's quick & easy.

intercepting keypresses, mouse movements, joystick movements.

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a

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

P: n/a
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.