Incode Systems Home Page Incode Systems, Inc.


(Windows 95 or higher)

KeyState - Copyright (C) 2009-2011, Incode Systems, Inc.
Version 1.0.0 sales1Usage: [options] VirtualKeyCode

Sets the ERRORLEVEL to 1 if the key or mouse button corresponding
to the given VirtualKeyCode is down.

VirtualKeyCode may be a hex number or one of the following symbols:

Shift,Control,Menu (or Alt),

LShift,RShift,LControl,RControl,LMenu (or LAlt),RMenu (or RAlt)


The following are toggle keys. KeyState sets ERRORLEVEL 1 if
the key is down, 2 if toggled on, 3 if toggled on and down:

Capital (or CapsLock),NumLock,Scroll (or ScrollLock)

-is_toggle Indicates the VirtualKeyCode is a toggle key.
Needed for hex number, automatic for CAPITAL,NUMLOCK,SCROLL
May be used to treat Shift, Control, or Menu as a toggle
-off Set a toggle to off.
-on Set a toggle to on.
-toggle Toggles the give key.
-verbose (or -v) writes message to standard output.

ERRORLEVEL is 255 if syntax error.

KeyState - Copyright (C) 2009-2011, Incode Systems, Inc.
To see complete usage, type: KeyState /? | MORE
Invalid VirtualKeyCode: