Download PDF manual - Macro Scheduler
Transcript
Command Reference 250 SetFocus>window_title* First performs an exact case-sensitive match as above and if nothing found does a case-insensitive substring search where window_title can be anywhere within the matching window title. For more control regular expressions can be used if WIN_REGEX is first set to 1. To set focus to child windows, such as MDI children, first use SetFocus to focus the application, and then issue a second SetFocus for the child window. In most cases it is necessary to add the * symbol for child windows. It is possible to limit the type of windows this command affects using the WF_TYPE variable: Let>WF_TYPE=0 - No Child Windows Let>WF_TYPE=1 - ALL Windows (Default) Let>WF_TYPE=2 - Visible Windows Only Let>WF_TYPE=3 - Child Windows Only Abbreviation : Set Example SetFocus>notepad* Child Window Example: SetFocus>Opera* SetFocus>google* RegEx Example: //find first matching window that starts with 1 or more printable characters and ends with "Not Let>WIN_REGEX=1 SetFocus>.+Notepad$ 4.26.18 ShutDownWindows ShutDownWindows>shutdown_type Use this command to shutdown or reboot the machine. Set shutdown_type appropriatly as follows: 0: 1: 2: 3: 4: 5: Shutdown Reboot Logoff Forced Shutdown Forced Reboot Forced Logoff The last three options should be used with care as they will force running processes to terminate and this can cause applications to lose data as they are not being allowed to close down gracefully. Abbreviation : SDW Example //Reboot Server ShutDownWindows>1 © 2015 MJT Net Ltd
Related documents