Block Input Action Icon

Block Input


<AMBLOCKINPUT ACTION="text [options]">

See Also

Block Input | Generate Password | Lock Workstation | Log Off | Restart | Shut Down | Suspend/Hibernate | Empty Recycle Bin | End Process | Change Printer | Print | Set Date and Time | Run


Blocks user input from the keyboard and mouse. Also used to unblock input that was previously blocked.

Practical Usage

Useful for preventing user interference during task execution. This action is typically set to Block Input in the beginning of an interactive task (i.e. Send Keystrokes, Move Mouse, Click Mouse actions) and again used at the end of the task to Unblock Input.


  • Input is automatically unblocked/restored upon completion of a task. However, a step to unblock input can be added to the task if input needs to be unblocked before task completion.

  • A blocked input can be manually unblocked at any time by entering CTRL-ALT-DEL.


General Properties











Block Input


Specifies whether keyboard and mouse input should be blocked or unblocked. The available options are:

  • Block Input - Keyboard and mouse input will be blocked.

  • Unblock Input - Keyboard and mouse input will be unblocked.

Description Properties

The Description tab allows you to customize the text description of any step as it appears in the Task Builder's Steps Pane.

More on setting custom step description

Error Causes Properties

The Error Causes tab properties lets you instruct a task step to react only to specific errors or ignore certain errors that should cause it to fail.

More on Error Causes properties

On Error Properties

The On Error tab properties lets you determine what the task should do if a particular step encounters an error as defined in the Error Causes properties.

More about On Error properties

Additional Notes

Expressions, Variables & Functions

A percent sign is used as a special character in AutoMate to indicate the beginning and end of an expression. This allows variables, functions and other expressions to be entered in any text parameter of a task's properties. For example: %1+1% inside a task will resolve to 2 at runtime. A more elaborate example is %FileDateTime(myFile)% which results to the date/time of myFile. To help construct expressions, you can open Expression Builder by clicking the Insert Expression (%) button or by pressing F2.

More on expressions

More on variables

More on functions

More on extended functions
More on the expression builder


NOTE: The code below can be copied and pasted directly into the Steps pane of the Task Builder.


Description: This task blocks input in order to prevent user interference while sending keystrokes to Notepad, and unblocks input thereafter.



<AMRUN FILE="Notepad" />

<AMSENDKEY>The keyboard and mouse is now blocked. The next step will unblock the input. To manually unblock input, press CTRL-ALT-DEL.</AMSENDKEY>



↑ Top of Page