Macro Recorder allows adding conditional statements to a macro. A conditional statement (or "an IF statement") is a statement that can be expressed in "if...then..." form. The IF statement controls the execution of a block of commands (or a single command) depending on whether the condition is TRUE.
If the condition is TRUE, Macro Player executes the subsequent commands that follow the IF statement.
If the condition is FALSE, flow control skips to the ENDIF statement.
A conditional statement example of use (in human language):
[IF] the File Exists
Delete the file
[ENDIF]
Macro Recorder offers various IF statements:
Macro Recorder can be used to "wait for" something using the built-in IF statements. With this feature, for instance, you can make Macro Recorder "watch" the hard disk, and perform some actions, when a particular file appears in a folder. Another example: with the following script Macro Recorder will wait until some particular text appears in the clipboard, and then exit:
LABEL : start IF CLIPBOARD EQUALS : test GOTO : end ENDIF DELAY : 5000 GOTO : start LABEL : endAs you can see, this macro checks the clipboard every 5 seconds, and if the text in the clipboard is "test", the macro exits.
© JitBit Software Macro Recorder homepage