Turns off hardware input to Windows.
IgnoreInput (mode)
(i) mode @TRUE or @FALSE. Specify -1 to retrieve the current state
(i) previous IgnoreInput mode, or -1 if this function is not supported.
Note: If you explicity request input, using any WIL function that displays a dialog/window, while in IgnoreInput(@TRUE) mode, input will be enabled as the program awaits user input, and the re-disabled afterwards.
If IgnoreInput is enabled, it will be temporarily disabled when using SendKey ( SendKeysTo and SendKeysChild ) to send an Alt key combination in Windows 2000 or newer.
Only the thread that blocked input can successfully unblock input.
Important: Only processes with full administrator or system privileges can block user input. The Windows operation system effectively ignores this function when it is called from a process with standard user or restricted administrator account privileges.
Message("IgnoreInput","Turns off Keyboard/Mouse input for 10 seconds") IgnoreInput(@TRUE) Run("notepad.exe", "") TimeDelay(10) IgnoreInput(@FALSE) Message("IgnoreInput","Keyboard/Mouse input restored")