Commands & Syntax > Commands > Macro File >

Macro execution: STATUS UPDATE - < me_status_set >() ... [Pro]

www.perfectkeyboard.com

 

Macro execution: STATUS UPDATE
<me_status_set>(Item identifier,"Item name",Status icon)
Available in: Professional edition

This command adds or modifies row in the status window ("me_status_window" command). Each row is identified using numeric ID. If there is not a row with the given ID in the window yet, then new row is added. If a row with the given ID exists, then it is updated using parameters passed (status and text - if the text is not supplied then old text remains displayed). Each row consists of status icon (none, "in progress", "OK", "Failed") and text.

 

#

Parameter name

Parameter description

1

Item identifier

Unique numeric identifier of the row in the status window.

2

Item name

Text showing on the row.

3

Status icon

0 - none icon
1 - "in progress" icon
2 - "OK" icon
3 - "Failed" icon
4 - "Info" icon

 

Example (Macro Steps):

 

1

<#> <#> This sample shows how to us the status window

2

Macro execution: ONLY COMMANDS

3

Macro execution STATUS WINDOW "Macro in progres" (Operation = OPEN, x = 100, y = 100, Width = 350, Height = 150)

4

Macro execution: STATUS UPDATE Item identifier=0, Item name=Three steps needs to be done, please wait:, Status icon=None

5

Macro execution: STATUS UPDATE Item identifier=1, Item name=Step 1, Status icon=In progress

6

WAIT wait "2000" ms (time is constant: "")

7

Macro execution: STATUS UPDATE Item identifier=1, Item name=Step 1: OK, Status icon=OK

8

Macro execution: STATUS UPDATE Item identifier=2, Item name=Step 2, Status icon=In progress

9

WAIT wait "2000" ms (time is constant: "")

10

Macro execution: STATUS UPDATE Item identifier=2, Item name=Step 2: Failed, Status icon=Failure

11

Macro execution: STATUS UPDATE Item identifier=3, Item name=Step 3, Status icon=In progress

12

WAIT wait "2000" ms (time is constant: "")

13

Macro execution: STATUS UPDATE Item identifier=3, Item name=Step 3: OK, Status icon=OK

14

WAIT wait "2000" ms (time is constant: "")

Example (Plain Text):

 

<#> This sample shows how to us the status window

<cmds>

 

<me_status_window>("Macro in progres",0,1,100,100,350,150)

<me_status_set>(0,"Three steps needs to be done, please wait:",0)

 

<me_status_set>(1,"Step 1",1)

<wx>(2000)

<me_status_set>(1,"Step 1: OK",2)

 

<me_status_set>(2,"Step 2",1)

<wx>(2000)

<me_status_set>(2,"Step 2: Failed",3)

 

<me_status_set>(3,"Step 3",1)

<wx>(2000)

<me_status_set>(3,"Step 3: OK",2)

 

<wx>(2000)