Disable/enable the mouse and keyboard.
BlockInput ( flag )
Parameters
| flag | 1 = Disable user input 0 = Enable user input |
Return Value
| Success: | Returns 1. |
| Failure: | Returns 0. Already Enable or #requireAdmin not used. |
Remarks
If BlockInput is enabled, the Alt keypress cannot be sent!| Operating System | "BlockInput" Results |
| Windows 2000 | User input is blocked and AutoIt can simulate most input. |
| Windows XP | User input is blocked and AutoIt can simulate most input. See exceptions below. |
| Windows Vista | User input is blocked and AutoIt can simulate most input if #requireAdmin is used. See exceptions below. |
Related
Send
Example
BlockInput(1)
Run("notepad")
WinWaitActive("[CLASS:Notepad]")
Send("{F5}") ;pastes time and date
BlockInput(0)