Commands & Syntax > Commands > Macro File >

Macro execution STATUS WINDOW - < me_status_window >() ... [Pro]

www.perfectkeyboard.com

 

Macro execution STATUS WINDOW
<me_status_window>("Window title",Operation,Not always on top,x,y,Width,Height)
Available in: Professional edition

This command allows to show/close a window that displays macro execution status. There can be only one status window shown at the same time. The window can contain multiple rows containing icon (none, "in progress", "OK" "Failed") and status text. The "me_status_set" command allows to add/modify content of the status window - it either adds new row or modifies existing row.

 

#

Parameter name

Parameter description

1

Window title

Title of the status window.

2

Operation

0 - the status window is to be opened
1 - the status window is to be closed

3

Not always on top

0 - normal window that can be overlapped by other windows
1 - always on top window that is never overlapped by other windows

4

x

X - position of the window on the screen (absolute screen coordinates).

5

y

Y - position of the window on the screen (absolute screen coordinates).

6

Width

Width of the window.

7

Height

Height of the window.

 

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 = EXPR(%_vMonitorWorkAreaX_1%+%_vMonitorWorkAreaCX_1%-350), y = EXPR(%_vMonitorWorkAreaY_1%+%_vMonitorWorkAreaCY_1%-150), 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,EXPR(%_vMonitorWorkAreaX_1%+%_vMonitorWorkAreaCX_1%-350),EXPR(%_vMonitorWorkAreaY_1%+%_vMonitorWorkAreaCY_1%-150),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)