Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending virtual keys

Status
Not open for further replies.

PhilBreau

Technical User
Dec 14, 2001
108
CA
Is there a way of sending mouse clicks? Sendvkey 0x01 is supposed to be for left mouse click. It doesn't work.

Thank you
 
Here is a little snippet from the ASPECT help file that explains why this isn't working:

"Only keycodes which have an actual keyboard equivalent can be used in a key-sending command. The mouse-related keycodes, for example, cannot be sent. Likewise, you cannot use the keyget command to see a mouse button event. However, you can use the mouse keycodes in a command such as keystate to determine the state of a mouse button."

If you are setting focus to a dialog of similar UI, you can likely send a space instead and activate the button (that's what I assume you are doing) in that manner.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top