Scheduled Macro / Repeat Loop

 

This tutorial demonstrates how to create a Scheduled Macro and use a Repeat Loop

 

Setting the Schedule

1.Run Keyboard Express. (If running in hidden mode press the Activation Key sequence. By default, hold down the CTRL + Up Arrow keys).

2.From the Keyboard Express - Explorer window click on the New Macro icon in the Actions column to open the Create New Macro window.

3.Select the Schedule activation to view the scheduling options.

4.From the Run the Macro drop down menu, select the When a Specified Time has Elapsed option.

5.Change the Minutes option to every two minutes. Leave the Hours and Seconds fields at zero.

6.Click on the Range tab. The Play Macro Indefinitely option should already be selected. If not, select this option now.

7.Enter "Hello World" in the Nickname field. The nickname is used as a quick and easy identifier of what the macro is supposed to do.

8.Click OK to save the schedule and open the Editor window to start creating the macro.
 

Creating the Macro

1.Select the Global option if it is not already selected.

2.At the bottom of the screen, leave the Use Clipboard option unchecked.

3.Double click on the Activate/Launch command to load the Activate/Launch Programs window.

4.From the drop down list, select Activate Program if Running Otherwise Launch Program.

5.Enter notepad as the Window Title.

6.Enter c:\windows\notepad.exe for Program Path/Name in the Launch Program section.

7.Run should be set to Normal and leave the Program Parameters field blank.

8.Click the OK button to return to the Keyboard Express - Editor. Note: If an error appears indicating that notepad.exe cannot be found, then use the Browse button to locate the notepad.exe program. It should be located in the Windows folder. 

9.Double click on the Repeat command in the list of commands.

10.From the Repeat window select Start Repeat and enter 5 in the Number of Times to Repeat field.

11.Press the OK button to save the changes and return to the Editor.

12.Type Hello World in the Enter Keystrokes area at the end of the text already in this field.

13.Click on Enter in the yellow area of the window to insert <ENTER> at the end of the script.

14.Double click on the Repeat command to open the Repeat window and select the End Repeat option. Click OK to save.

15.The macro has now been set up to open Notepad and type Hello World five times. This will repeat every 2 minutes.

16.Click on Save and Close button to save the macro and return to the Keyboard Express - Explorer window.

 

Run the macro / Disable the macro

1.As long as Keyboard Express is running, Hello World will be typed into Notepad every 2 minutes. When this occurs, Notepad will be brought to the front and Hello World is inserted.

2.After watching the macro to see that it works, the next step is to either remove or disable the macro.

3.To remove the macro, highlight it in the Keyboard Express - Explorer and click on Macro > Delete Macro(s) from the menu or press the Delete key on the keyboard.

4.To disable the macro, highlight it in the Keyboard Express - Explorer and click on Macro > Disable Macro from the menu.