LockKeyboard Method

Action2 Example

 

Encapsulates the AutoMate™ action in the “Security” group, “Lock Keyboard.” The method locks the keyboard.

 

Declaration

function LockKeyboard () As Integer

 

Parameters

 None

 

Description

Use the LockKeyboard method to lock the keyboard from user input. Once the method is executed, any keypress caught by the keyboard are discarded and not echoed to the system, effectively blocking any user interaction with the system.

 

To re-enable the keyboard, use the UnlockKeyboard method.

 

The keyboard automatically unlocks itself at the end of the task to prevent accidentally locking the keyboard until the next reboot.