Commands & Syntax > Commands > Macro Flow Control >

www.perfectkeyboard.com

 

Error message DISABLED - < me_error_nodisplay > ... [Pro]

 

Error message DISABLED
<me_error_nodisplay>
Available in: Professional edition

This command causes that if a command during macro execution fails then error message is not shown and macro execution continues.

 

 

Example (Macro Steps):

 

1

<#> <#> This macro shows how to use 'me_error_nodisplay'

2

Macro execution: ONLY COMMANDS

3

Error message DISABLED

4

<#> <#> Try to get file size of non-existing file. Error

5

<#> <#> occurs but default (automatic) error message is replaced by the user defined one.

6

File INFO : save "Size" information of file "c:\notexistingfile.none" to variable "v1"

7

IF STRING _vErr != NO

8

Message SHOW "" : "Error! This is custom error message. The automatic error message was disabled by 'me_err_nodisplay' command." (other parameters: x = -100, y = -100, Window title = Message, Buttons = OK, Timeout (seconds) = , Always on top = ).

9

ENDIF

Example (Plain Text):

 

<#> This macro shows how to use 'me_error_nodisplay'

<#>

<cmds>

<me_error_nodisplay>

<#> Try to get file size of non-existing file. Error

<#> occurs but default (automatic) error message is replaced by the user defined one.

<fileinfo>("c:\notexistingfile.none","SIZE","v1")

<if_str>("_vErr != NO")

   <msg>(-100,-100,"Error!  This is custom error message.  The automatic error message was disabled by 'me_err_nodisplay' command.","Message",1)

<endif>