开发者

Controlling USB keyboard and mouse

We have a hardware device, with an LCD display. It supports an USB interface to connect keyboard and mose. Using these keyboard and mouse, we can navigate to varios menu items and edit entries.

We have couple of test cases written to verify that mouse click and keyboard input events are working when pressed respective key.

My task is to automate these test cases.

I donot have any control to the hardware device, as I can not access the o/s kernel or any application running there. There is one way to verify what is currently displayed on the UI. So I have to use that and verify whether the mouse/keyboard has performed the appropriate events.

As I have gone through couple of previous posts, it seems like that one of the way to achieve this is through virual HID device driver rather than actual keyboard and mosue. But I am not sure how to achieve it.

Please do help me for it. I am fine with any programming language.

I am more interested to simulate开发者_Python百科 the mouse and keyboard events.


You probably don't need to write your own driver. AutoHotKey does pretty much anything you can think of, and the scripting language is quite easy to learn.

You can get it here:

http://www.autohotkey.com/

Since you're using linux, here's a similar project that will run on linux:

http://sikuli.org/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜