471,316 Members | 1,674 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

keyboard and mouse event

can python send keyboard and mouse events?


like, i want to type hello 10 times in my text editor.



i am on this only:

windows vanilla version from python.org, and only that.
Jun 29 '07 #1
1 3101
bartonc
6,596 Expert 4TB
can python send keyboard and mouse events?


like, i want to type hello 10 times in my text editor.



i am on this only:

windows vanilla version from python.org, and only that.
Yes. It is possible. AFAIK, the Windows installation of Python form python.org comes with the python win32 package. So you should already have most of the pieces. I've seen pyHook used successfully. You can read about that package here.

Also, if your text editor is COM aware (like MS Word) that you can do anything that VB can do with the win23 comClient sub package.
Jun 29 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Nolan Martin | last post: by
reply views Thread by George Hartas | last post: by
16 posts views Thread by dfaber | last post: by
6 posts views Thread by Claire | last post: by
2 posts views Thread by Doug | last post: by
reply views Thread by rosydwin | last post: by

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.