{NUM LOCK} and {END} keys reference

GRose

Registered User.
Local time
Today, 11:25
Joined
Mar 4, 2004
Messages
21
Is there any other way to refer to the NUM LOCK and END key in the sendkeys statement? I have tried using {NUM LOCK} and {END} but it is not doing what I want (NUM LOCK needs to act like a shift key and END brings up a menu in the application is it using. I have seen references such as PF1 and Select that relate to these keys. Can anyone shed any light on the situation :confused: .
When I use the {END} all it does is type a 1 in (due to END = 1 on the num part of the keyboard).

Thank you
 
Have you tried the KeyCode constants. i.e. Num lock is VBKeyNumLock and the end key is VBKeyEnd.

The help file suggests this course of action.

"When you use the SendKeys statement to carry out an action, consider referencing the built in key-code constants or declaring constants for the values in your SendKeys statement. Defining your keystrokes as constants makes updating your code easier in the future."


Hope this helps.

David
 

Users who are viewing this thread

Back
Top Bottom