Check Macros Commands
Check-Macros support additional commands that can be added manually to the macro source. All fields are supported by Chromium-based Macros and Edge-based Macros.
As an alternative to recording a macro, you can, for example, use these commands to send keystrokes to a webpage when a page is checked.
Macro lines that do not begin with a supported command are treated as comments, for example, lines that start with ; or //.
|
Command |
Description |
|
WAIT: seconds=XXX |
Waits for the specified number of seconds Valid values are from 5 to 60 Example, to wait 10 seconds: WAIT: seconds=10 |
|
SCROLLPAGEDOWN: |
Scrolls the page down. To scroll multiple times, add one command for each scroll operation. Example, to scroll down two pages: SCROLLPAGEDOWN: |
|
RELOAD: |
Reloads the currently open page. |
|
LOGOUT: |
Use this command before WebSite-Watcher performs a logout. WebSite-Watcher monitors the page that is loaded immediately before this command is executed. All steps after this command are used only to log out of the account and are not included in content monitoring. |
|
SendKey: <key> |
Sends a keyboard key to the page. Use this command to automate Macro processing with keyboard shortcuts. Supported keys:
Use tab to move the focus to the next element on a web page. To press a button or link, use space or enter. Depending on the type of link or button, either space or enter may work. You must test which key works in each case. Example: SendKey: tab |
|
SendText: <text> |
Sends the specified text to the page. Use this command to enter text into input fields, for example, a search term or a username. Example: SendKey: tab |
|
SelectItem: <text> |
Sends the tab key to the page until the element with the specified text is selected. The text must match the full text of the element to select, or it can be a wildcard text with one or two wildcards (*). The specified text is not case-sensitive.
SelectItem: Login |
Example 1
Macro that performs a search query, then selects the first link that contains the text "grid", and presses space to open the link.
CMacroVersion=1
URL: https://www.domain.com/search
WAIT: seconds=3
SendText: weather today
SendKey: enter
SelectItem: *grid*
SendKey: Space
Example 2
Macro that performs a login and a logout.
EdgeMacroVersion=1
Incognito: 1
URL: https://www.domain.com/login.php
;-- press 2 x TAB to jump to the username input field
SendKey: tab
SendKey: tab
;-- enter username and password
SendText: myusername
SendKey: tab
SendText: mypassword
SendKey: tab
;-- press Login button
SendKey: space
WAIT: seconds=3
;-- perform LOGOUT
LOGOUT:
SelectItem: logout
SendKey: enter