Export (0) Print
Expand All
0 out of 1 rated this helpful - Rate this topic

My.Computer.Keyboard Object Members 

The My.Computer.Keyboard Object provides properties for accessing the current state of the keyboard, such as what keys are currently pressed, and provides a method to send keystrokes to the active window.

AltKeyDown

Gets a Boolean indicating if the ALT key is down.

This property is available only for non-server applications.

CapsLock

Gets a Boolean indicating if CAPS LOCK is turned on.

This property is available only for non-server applications.

CtrlKeyDown

Gets a Boolean indicating if a CTRL key is down.

This property is available only for non-server applications.

NumLock

Gets a Boolean indicating if NUM LOCK is turned on.

This property is available only for non-server applications.

ScrollLock

Gets a Boolean indicating if SCROLL LOCK is turned on.

This property is available only for non-server applications.

ShiftKeyDown

Gets a Boolean indicating if a SHIFT key is down.

This property is available only for non-server applications.

SendKeys

Sends one or more keystrokes to the active window, as if typed on the keyboard.

This method is available only for non-server applications.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.