Macro Syntax Reference

 

Macro keywords:

 

<back> "Back space"

<enter> "Enter"

<shift> "Shift"

<ctrl>  "Control"

<alt>  'Alt"

<capslock> "Caps lock"

<esc>  "Escape"

<pgup> "Page up"

<pgdn> "Page down"

<end>  "End"

<home> "Home"

<left>  "Left"

<up>  "Up"

<right> "Right"

<down> "Down"

<insert> "Insert"

<delete> "Delete"

<tab>  "Tab"

<F1>  "F1"

<F2>  "F2"

<F3>  "F3"

<F4>  "F4"

<F5>  "F5"

<F6>  "F6"

<F7>  "F7"

<F8>  "F8"

<F9>  "F9"

<F10>  "F10"

<F11>  "F11"

<F12>  "F12"

 

Time and date commands:

 

<td:d>(X) "Today: Day"

<td:m>(X) "Today: Month"

<td:dlz>(X) "Today: Day (leading zero)"

<td:mlz>(X) "Today: Month (leading zero)"

<td:y>(X) "Today: Year"

<ct:h24>(Y) "Current time: Hour (24)"

<ct:h12>(Y) "Current time: Hour (12)"

<ct:m>(Y) "Current time: Minute"

<ct:h24lz>(Y) "Current time: Hour (24) (leading zero)"

<ct:h12lz>(Y) "Current time: Hour (12) (leading zero)"

<ct:mlz>(Y) "Current time: Minute (leading zero)"

<ct:ampm>(Y) "Current time: a.m./p.m."

 

<ct:AMPM>(Y) "Current time: AM/PM"

 

The X value is the shift of the current (system) time in days. X can be greater or less than zero.

 

Example 1: <td:d>(-1)

 Will generate yesterday's day

 

(if today is March 27 then output will be 26).

 

Example 2: <td:d>(1)/<td:m>(1)/<td:y>(1)

 

Will display tomorrow's date in form DD/MM/YYYY. Note (1) must be after each <td:?> command because these commands are independent of each other!!!

 

The Y value is the shift of the current time in minutes. Y can be greater or less than zero.

 

Example: <ct:m>(30)

 

Will display the number that has this meaning: if it is now 4:15 then the number 45 is to be generated.

 

Other commands:

 

<w50>  "Wait 50ms"

<w100> "Wait 100ms"

<w500> "Wait 500ms"

<dnds> "Do not delete shortcut"

<pause> "Pause for user input"

<wx>(Z) "Wait Z milliseconds"

<mm>(X,Y)  "Mouse move"

<mlbd> "Mouse left button down"

<mlbu> "Mouse left button up"

<mrbd> "Mouse right button down"

<mrbu> "Mouse right button up"

<mmbd> "Mouse middle button down"

<mmbu> "Mouse middle button up"

 

X,Y are cursor position coordinates (integer numbers)

 

<execapp>("FILE") Executes the designated file, URL (exp: http://www.aimsoft.com) or Email (mailto:sales@aimsoft.com)

FILE is either full path name to the application file (c:\win95\calc.exe) or just file name (calc.exe).

Note: If manually editing do not forget to enclose FILE in quotes “” !!!

 

<beep> (“*.wav, x) Play sound x times

 

<actwin> (“window title”,x,y) Activates the designated Window. Use exact or partial matching. Specify state of activation.

 

<msg>(100,100,"Message","Title",1)  Inserts a message box with user-defined position and title. Choose with or without Ok button.

 

<msgoff> Removes existing message box from screen without user intervention.