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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I send a keystroke to another app (it has to be a numeric key)

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
It definetly has to be a numeric key, since the app. I want to send a keystroke only takes that key. I have no problems sending a "normal" 1 key, but a numeric 1 is a problem. I would probably have to send a scan code of num1, but I don't know how to do it.

ThanX, OD
 
Have you tried using sendkeys in combination with the vbKeyCodeConstants? ie 1 would be vbKey1, or a long value of 49 (&H31), in other words the Char code.
Use the objectbrowser for a list of all constants.

Have Fun,
CookieMonster.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top