How do I create a mouse or keyboard event and send it to the
underlying OS? I am developing a virtual mouse/keyboard program which
uses a special device to detect the user's hand motion and then sends
a mouse/keyboard event to the underlying OS.
In 2.9.2 there is the wx.UIActionSimulator that will help you send events to wx windows in the same application. If you need to be able to send events to whatever window is in the foreground and has the focus (including in other applications) then you'll need to use platform specific APIs or 3rd-party tools.
···
On 5/16/11 4:09 AM, yltang wrote:
How do I create a mouse or keyboard event and send it to the
underlying OS? I am developing a virtual mouse/keyboard program which
uses a special device to detect the user's hand motion and then sends
a mouse/keyboard event to the underlying OS.
--
Robin Dunn
Software Craftsman
For MS Windows platforms:
Keyboard: Sendkeys
Mouse clicks: Simulating a mouseclick?
I’m sure there are equivalents for all other platforms. Google search is your friend…
Ray Pasco
Hi,
Maybe you can use robotframework-autoitlibrary - works only for mswin
32 & 64 bit platforms.
Can be installed apart from robotframework and it have a pretty nice
programming interface.
It is a python binding to a well known Autoit (written in C++)
automation tool & library.
Check these links:
http://www.autoitscript.com/wiki/Main_Page
and the python module:
http://code.google.com/p/robotframework-autoitlibrary/downloads/list
http://robotframework-autoitlibrary.googlecode.com/svn/tags/robotframework-AutoItLibrary-1.0/doc/AutoItLibrary.html
I have played a little with this module (only with 32 bit version) and
it seems easy to use. You can automate mouse, keyboard, windows,
controls within windows,...
Autoit have a very usefull tool with you can identify a lot of
parameters for these items: "AutoIt Window Information Tool" check the
following link:
http://www.autoitscript.com/autoit3/docs/intro/au3spy.htm
I hope you will find it usefull.
F.J.
···
On 16 mai, 14:09, yltang <yltang0...@gmail.com> wrote:
How do I create a mouse or keyboard event and send it to the
underlying OS? I am developing a virtual mouse/keyboard program which
uses a special device to detect the user's hand motion and then sends
a mouse/keyboard event to the underlying OS.
Thanks a lot for all the suggestions. I'll give it a try.
···
On 5月16日, 下午7時09分, yltang <yltang0...@gmail.com> wrote:
How do I create a mouse or keyboard event and send it to the
underlying OS? I am developing a virtual mouse/keyboard program which
uses a special device to detect the user's hand motion and then sends
a mouse/keyboard event to the underlying OS.