Function Reference


_WinAPI_SetKeyboardState

Copies a 256-byte array of keyboard key states into the calling process's keyboard input-state table

#include <WinAPISys.au3>
_WinAPI_SetKeyboardState ( $tState )

Parameters

$tState "byte[256]" structure that contains keyboard key states.

Return Value

Success: True
Failure: False

Remarks

This function alters the input state of the calling process and not the global input state of the system.
You cannot use this function to set the NUM LOCK, CAPS LOCK, or SCROLL LOCK indicator lights on the
keyboard.

See Also

Search SetKeyboardState in MSDN Library.