Jump to content

Simulate custom ultrasound machine keystrokes


Recommended Posts

I have a Windows XP based ultrasound machine that besides the keyboard has a console with custom controls such as zoom, pause, measure, caliper, etc. As far as I understand, these custom  keys "don't send key combinations; instead, they have their own usage IDs in the HID". So is there a way to simulate pressing these keys in AutoIt?

Edited by samozaparola
typo
Link to comment
Share on other sites

  • Moderators

What happens if you hover over the display with the AutoIt Window Info Tool (in the same directory where you installed AutoIt), what does it show you regarding the controls?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Yes Jfish, it is a physical type of interface, not an onscreen GUI. here is a short video of an older version of the same model:

One of the problems is that au3record.exe tracks only the keyboard and the mouse events and does not record the activity of these custom buttons.  I don't know in what way this physical interface communicates with the software application, but it may be something different than listening to a key press event. I found a document (HID usage tables, p.126 addresses such medical instruments)

http://www.usb.org/developers/hidpage/Hut1_12v2.pdf

that describes this type of interfaces, but the info is incomplete and I do not know what to do with it.

 

JLogan3o13,  the Window Info Tool works as expected, but I had no luck showing up the measurement menu (all I want is to be able to measure the previously acquired images, remotely from the machine, i.e. at my desk with the mouse). I used the ControlShow command but it works with some controls and not with others, may be my AutoIt scripting is wrong, may be the approach is incorrect. Anyway, even if I succeed in showing or activating the controls, my task may still be impossible this way as some controls forcibly contain the mouse cursor and a particular "cursor" button needs to be pressed to overcome this limitation. So the best way would be to be able to identify those custom input events and to send them to the application. Perhaps some other software tools are needed to accomplish this...

 

Edited by samozaparola
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...