Macro Express Help
Macro Express Help
Manual of Instruction
Table of Contents
Introduction
About Macro Express ........................................................................................................... 8
Program Overview............................................................................................................... 9
Program Navigation ............................................................................................................. 10
Tutorial
Tutorial - Introduction ......................................................................................................... 17
Creating a HotKey Macro ..................................................................................................... 18
Creating a Shortkey Macro ................................................................................................... 20
Creating a Scheduled Macro ................................................................................................. 23
Capture a Macro - HotKey First ............................................................................................ 27
Capture a Macro - HotKey Last............................................................................................. 30
Create a Popup Menu .......................................................................................................... 32
Quick Wizard Capture .......................................................................................................... 35
Macro Scopes...................................................................................................................... 41
Sample Macros.................................................................................................................... 44
Advanced - Using Controls ................................................................................................... 46
Advanced - Copy and Paste Routine ..................................................................................... 50
Advanced - Using Text String Variables ................................................................................ 52
Scheduled Macros
Schedule Activation ......................................................................................................... 60
Scheduling - At Startup .................................................................................................... 62
Scheduling - Once ........................................................................................................... 63
Scheduling - Hourly ......................................................................................................... 64
Scheduling - Daily ........................................................................................................... 65
Scheduling - Weekly ........................................................................................................ 66
Scheduling - Monthly ....................................................................................................... 67
Scheduling - Time Out ..................................................................................................... 68
Scheduling - Other .......................................................................................................... 70
Scheduling - At File Load ................................................................................................. 71
Window Title....................................................................................................................... 72
No Activation ...................................................................................................................... 73
Popup Menu ....................................................................................................................... 74
Mouse Activation ................................................................................................................. 75
Floating Menu ..................................................................................................................... 76
Control Activation ................................................................................................................ 77
Stopping a Macro ................................................................................................................ 79
Menu Commands
File
File Menu .................................................................................................................... 84
Import/Export Macros
Importing Macros .................................................................................................... 86
Import Text Files ..................................................................................................... 87
Import Playable Macro ............................................................................................. 88
Exporting Macros..................................................................................................... 89
Output Macro Information........................................................................................ 90
Export Playable Macro ............................................................................................. 91
Macros
Add Macros ................................................................................................................. 92
Copy Macro ................................................................................................................. 97
Run Macro Now ........................................................................................................... 98
Recapture Macro ......................................................................................................... 99
Enable or Disable Macro .............................................................................................. 100
Search Explorer ........................................................................................................... 101
Delete Macro............................................................................................................... 102
Place on Desktop......................................................................................................... 103
Macro Properties ......................................................................................................... 104
Category
Categories .................................................................................................................. 106
Options
Sort Macros ................................................................................................................ 108
View ........................................................................................................................... 110
Preferences
Appearance ............................................................................................................. 111
Backup Preferences ................................................................................................. 113
Caching .................................................................................................................. 115
Capture .................................................................................................................. 116
Delays .................................................................................................................... 118
Dialogs ................................................................................................................... 119
Email Settings ......................................................................................................... 121
Email Recipients ...................................................................................................... 122
File Paths ................................................................................................................ 123
Miscellaneous .......................................................................................................... 124
Miscellaneous - Advanced ........................................................................................ 127
Network .................................................................................................................. 128
Passwords............................................................................................................... 129
Playback ................................................................................................................. 130
Scheduler ............................................................................................................... 132
Shortkeys................................................................................................................ 133
Startup ................................................................................................................... 136
Tools
Mouse Locator ............................................................................................................ 137
Remap Keyboard ......................................................................................................... 138
Remap - Select Character ............................................................................................ 140
Error Log Viewer ......................................................................................................... 141
Clipboard
Clipboard ........................................................................................................................ 173
Debug
Log Messages ................................................................................................................. 176
Desktop
Desktop .......................................................................................................................... 177
Dialogs
Multiple Choice................................................................................................................ 178
Text Box Display ............................................................................................................. 181
Explorer
Open Explorer To ............................................................................................................ 184
Open Folder in Explorer ................................................................................................... 185
Open Folder using My Computer ...................................................................................... 186
Files/Folders
Convert File Name ........................................................................................................... 187
File Manipulation ............................................................................................................. 188
Get File Version ............................................................................................................... 190
Process an ASCII Delimited Text File ................................................................................ 191
Process a Text File .......................................................................................................... 195
Set File Attributes ............................................................................................................ 197
Internet
Dial-Up Commands .......................................................................................................... 198
Get IP Address ................................................................................................................ 200
FTP ChMod Command ..................................................................................................... 201
FTP Connect ................................................................................................................... 202
Keyboard
Keys Up or Down ............................................................................................................ 216
Toggle Keys .................................................................................................................... 217
Logic
AND/OR/XOR Logic ......................................................................................................... 218
If Commands .................................................................................................................. 220
If Control ........................................................................................................................ 224
If Message ...................................................................................................................... 225
If OS Version .................................................................................................................. 227
If Ping Successful ............................................................................................................ 228
If Registry....................................................................................................................... 229
If Variable ....................................................................................................................... 230
Switch / Case Commands ................................................................................................ 231
Macro Control
Load Macro Text File ....................................................................................................... 234
Load New Macro File ....................................................................................................... 235
Macro Commands............................................................................................................ 236
Macro Control Commands ................................................................................................ 238
Password Protection ........................................................................................................ 239
Remarks ......................................................................................................................... 241
Macro Express
Macro Express Commands ............................................................................................... 242
Restart Macro Express ..................................................................................................... 243
Mouse
Mouse Click on Control .................................................................................................... 244
Mouse Commands ........................................................................................................... 245
Move Mouse to Tray Icon ................................................................................................ 249
Multimedia
Audio Controls ................................................................................................................ 250
Set Sound ....................................................................................................................... 251
Video Clip ....................................................................................................................... 252
Network
Map a Drive .................................................................................................................... 254
Registry
Create Registry Key ......................................................................................................... 256
Read/Write Registry ........................................................................................................ 257
Write to Registry ............................................................................................................. 229
Repeat
Break Command.............................................................................................................. 259
System
Control Panel .................................................................................................................. 263
Default Printer ................................................................................................................ 264
Empty Recycle Bin ........................................................................................................... 265
Get Pixel Color ................................................................................................................ 266
Hibernate ....................................................................................................................... 268
Lock Workstation ............................................................................................................ 269
Post Message .................................................................................................................. 270
Reboot or Shut Down ...................................................................................................... 272
Screen Display Settings ................................................................................................... 273
Set System Date/Time ..................................................................................................... 274
System Controls .............................................................................................................. 275
System Dialogs ............................................................................................................... 277
Terminal Services Session ID ........................................................................................... 278
Text
Date ............................................................................................................................... 279
Date and Time ................................................................................................................ 280
Encrypted Text ................................................................................................................ 282
Symbols.......................................................................................................................... 283
Text Type ....................................................................................................................... 284
Time............................................................................................................................... 286
Timing
Delay.............................................................................................................................. 288
Pause ............................................................................................................................. 289
Speed ............................................................................................................................. 291
Wait For Commands ........................................................................................................ 292
Variables
Variables Overview .......................................................................................................... 296
Clear Variables ................................................................................................................ 298
INI Files and Variables ..................................................................................................... 299
Modify Decimal Variable................................................................................................... 300
Modify Integer Variable ................................................................................................... 302
Modify String Variable...................................................................................................... 304
Run Macro in Variable...................................................................................................... 308
Save or Restore Variables ................................................................................................ 310
Set Decimal Variables ...................................................................................................... 311
Set String Variable........................................................................................................... 313
Set Variable Integer ........................................................................................................ 315
Variable Set From File...................................................................................................... 321
Variable Set from Miscellaneous ....................................................................................... 323
Variable Set to ASCII Character ........................................................................................ 324
Variable Set to ASCII Value .............................................................................................. 325
Window Controls
Controls .......................................................................................................................... 326
Using Controls................................................................................................................. 46
Capture Control ............................................................................................................... 331
Get Control ..................................................................................................................... 332
Post Message .................................................................................................................. 270
Set Focus........................................................................................................................ 336
Variable Get Control Class ................................................................................................ 337
Windows/Programs
Activate or Launch Programs............................................................................................ 342
Set Window Order ........................................................................................................... 344
Size or Position a Window ................................................................................................ 345
Terminate Process ........................................................................................................... 347
Window Commands ......................................................................................................... 348
Window Move and Size .................................................................................................... 350
What is a Macro?
A macro is a set of commands that can be played back at will to perform a given task. These tasks may be something
simple such as inserting your name and address into a word processor to something more complex such as launching a
program, copying data from it, activating another program, pasting the data into it and repeating the steps several times.
Tasks performed by macros are typically repetitive in nature allowing significant savings in time by executing the macro
instead of manually repeating the commands.
Creating a Macro
There are several ways to create macros with Macro Express. One method is to capture (record) your keystrokes and
mouse movements. Another method is to use the Quick Wizards. The Quick Wizards guide you through a series of
questions and build the macro for you. Or you can build your own macros with the easy to use Scripting Editor or Direct
Editor. The tutorial provides examples of creating macros through each of these methods.
Macro Scopes
Macro scopes allow you to place restrictions on your macros. You can assign macros to play back in all Windows
programs, in one specific window or program, or in every program except the one you define. The tutorial steps through
a few examples of how to do this.
Program Overview
Macro Express is a utility designed to help you automate repetitive computer tasks. This guide will explain a few basic
concepts of Macro Express that may help you better understand the program.
Macros
A macro is a script containing commands that automate computer tasks. Each command performs one step, such as
moving the mouse, launching a program or entering keystrokes.
There are several ways within the Macro Express Editor to create a macro. Using the Quick Wizards or Capture are the
simplest. The Quick Wizards ask a series of questions and build a macro for you. To Capture a macro, you start the
Capture, enter your keystrokes and mouse movements, and then stop the Capture process. You can use the Scripting
Editor or Direct Editor for more control in writing your macro.
Macro Activation
Once written, a macro needs an action to cause it to play back. The macro activation might be a combination of
keystrokes, a mouse click in a certain area of the screen or a macro may launch when a program starts up.
Files
Macro Express allows you to create multiple files of macros. When installing the program, two macro files are also
loaded. They are samples.mex and macex.mex. The samples.mex file contains a number of sample macros that you can
look at or use for reference. It is recommended that you not use this as your default file to create and store macros. The
other file, macex.mex, is where you can save macros that you create. Or you can create a new macro file for this purpose
by clicking on File | New Macro File from the Macro Explorer. The Macro Explorer displays the macro file name and path
of the file you currently have opened.
Program Navigation
Macro Express consists of several components. The major components of the program may be accessed by clicking on
the icons in the Actions column. You may also access these components through the menu commands. Each of these
components will be discussed briefly here. Links are provided for more detailed information about each component.
Macro Explorer
By default, the program opens to the Macro Explorer. This displays the list of macros in the file that you have open.
When saving macros in the editors or other options, the program will return to the Macro Explorer.
Scripting Editor
The Scripting Editor is one of two editors available for writing or editing macros. If you have highlighted a macro in the
Macro Explorer list and click on the Scripting Editor icon, the contents of the highlighted macro will be displayed in the
Scripting Editor. If you do not have a macro highlighted and click on the Scripting Editor icon, a message will appear
saying that you have not selected a macro to edit. Then it asks if you would like to create a new macro using the
Scripting Editor. If you click yes, the Add Macro window will appear and you can begin writing the macro. Double clicking
on a macro listed in the Macro Explorer will load the Scripting Editor if you have it set as your default editor. Once in the
Scripting Editor you can then click on the Direct Editor and work on the macro in this editor.
Direct Editor
The Direct Editor is the other editor available for writing or editing macros. If you have highlighted a macro in the Macro
Explorer list and click on the Direct Editor icon, the contents of the highlighted macro will be displayed in the Direct
Editor. If you do not have a macro highlighted and click on the Direct Editor icon, a message will appear saying that you
have not selected a macro to edit. Then it asks if you would like to create a new macro using the Direct Editor. If you
click yes, the Add Macro window will appear and you can begin writing the macro. Double clicking on a macro listed in
the Macro Explorer will load the Direct Editor if you have it set as your default editor. Once in the Direct Editor you can
then click on the Scripting Editor and work on the macro in this editor.
Capture
This will start the process for recording or capturing a macro. Your keystrokes and mouse clicks/movements will be
recorded and saved.
Quick Wizards
This option will start the Quick Wizards. There are 25+ different wizards to guide you step by step through the creation
of different macro types.
Recycle Bin
Macro Express has its own recycle bin. Any macros deleted from the Macro Explorer will be sent to the Recycle Bin. If you
deleted one by mistake you can restore the macro to its proper file. Or if you are sure you don't need the deleted
macros, you can remove them permanently.
Advanced Installation
Silent Install
A silent install means Macro Express will be installed without the user having to answer any questions during the
installation process. This is useful if you want to install Macro Express from within another setup program or when
installing from a server on a network.
Note: Because it requires command line parameters, a Silent Install cannot be run by clicking on the installation filename
in Explorer. You may execute it from the Start | Run command or from a batch file that contains the proper command.
The /S command line parameter tells the Macro Express installer to do a Silent Install. For example: macex3.exe /S
Note: The Macro Express installation file can be named setup.exe or macex3.exe depending on where you obtained the
file. In the examples shown, substitute the actual name of your Macro Express installation file. If you downloaded an
installation file in zip format, you must unzip setup.exe or macex3.exe from the zip file before running a Silent Install.
Installation options
The Macro Express Install program allows you to use a text file to automatically respond to the install questions during
the installation process. By putting entries in the text file, you can choose things such as where to install the program,
whether Macro Express should be put in the Startup folder so it is automatically launched when Windows starts, or
whether the Quick Start Guide should be displayed after Macro Express is installed.
To do this you need to create a text file with a name of your choosing and use the /M= command line parameter. For
this example, we will name the file ME3Setup.txt.
macex3.exe /M=c:\ME3Setup.txt
These are the options you can put in the setup file:
INSTALLPATH is used to override the default installation folder. If included, Macro Express will be installed in the
folder specified by INSTALLPATH.
INSTALLPATH=c:\myprograms\Macro Express
STARTMENUFOLDR is used to override the default start menu used to load Macro Express. If included, the menus to
start Macro Express will be placed in the folder specified by STARTMENUFOLDR.
STARTMENUFOLDR=Utilities
STARTUP=Y puts Macro Express in Windows StartUp folder.
STARTUP=N does not put Macro Express in Windows StartUp folder.
LAUNCHNOW=Y Launches Macro Express after installation is completed.
LAUNCHNOW=N does not Launch Macro Express after installation is completed.
NOQUICKSTART = Y the Quick Start Guide will not be installed.
NOQUICKSTART = N the Quick Start Guide will be installed (default).
QUICKSTARTNOW=Y displays Quick Start Guide after installation is completed or when Macro Express starts
(default).
QUICKSTARTNOW=N does not display Quick Start Guide at the end of the installation.
QUICKSTARTNOW=P Prevents the Quick Start Guide from being displayed when Macro Express starts.
QUICKSTARTNOW=NP does not display Quick Start Guide at the end of the installation and also prevents the Quick
Start Guide from being displayed when Macro Express starts.
Note: NOQUICKSTART prevents the Quick Start Guide from even being installed. QUICKSTARTNOW just prevents
the Quick Start Guide from being displayed. When using QUICKSTARTNOW the Quick Start Guide can be installed but
not automatically displayed.
WHATSNEWNOW = Y Displays What's New in this version after install
WHATSNEWNOW = N does not display What's New in this version after install
REBOOT=N suppresses the dialog suggesting a reboot after installation is completed, even if the installer has
determined that one is needed.
LICENSENAME and LICENSECODE are used to license the software during install:
LICENSENAME=Name used when Macro Express was licensed
LICENSECODE=Code received when Macro Express was licensed
CONFIGFILEPATH= path to optional configuration file. This allows you to set a specific configuration for Macro
Express at the time you install Macro Express.
To do this, install Macro Express on a computer and set all the preferences the way you want them. Then, click Tools
| Export Program Configuration to create a file containing the preferences you desire. Then add
CONFIGFILEPATH=c:\macexp.mcf to the MESetup.txt file.
This example assumes the preference information has been saved in the file c:\macexp.mcf.
NOEDITOR=Y the Macro Express Editor will not be installed
NOEDITOR=N the Macro Express Editor will be installed (default)
NOHELP = Y the Help file will not be installed.
NOHELP = N the Help file will be installed (default).
NOICONS = Y the sample icons will not be installed.
NOICONS = N the sample icons will be installed (default).
INSTALLOLDER = Y all files will be installed even if they are older than files already in the destination folder.
INSTALLOLDER = N newer files in the destination folder will not be overwritten (default).
MACROFILEDEST = Path and filename of where to install the macro file macexinstall.mex, if it exists
Listed below are the rules for installing a macro (.mex) file.
1. The macro file macexinstall.mex must exist in the same directory as the install file.
2. If the MACROFILEDEST silent install option does not exist, then a) the macro file will be installed in the same folder as
the program and b) the name of the macro file is the default name for that program (macex.mex).
3. If the MACROFILEDEST silent install option is used, then the macro file will be installed in the folder and filename
specified.
Note: The License Information is for demonstration purposes only. You should use the
License Information you received when you purchased Macro Express 3.
This example will cause Macro Express to be installed in the c:\Program Files\Mac Exp 3
folder. The start menu will be Mac Exp 3. Macro Express will not be launched when
Windows is started. Macro Express will not run at the end of the install. The Quick Start
Guide will not be displayed at the end of the install. The setup will not reboot the
computer. After the installation is complete, the program will be licensed to Jason Junior.
Note: Only insert valid options into the ME3Setup.txt file. Do not include comments, blank
lines or remarked out options.
Related Topics
Advanced Licensing Information
Click on File | Terminate Macro Express Player and Editor to close Macro Express.
From the taskbar, click the Start menu button to open the Start menu.
Open the Windows Control Panel.
Based on the version of Windows you are running, select the option from the control panel used to uninstall
applications.
5) Highlight Macro Express 3 in the list of installed programs.
6) Again, depending on your version of Windows click on the option to remove the program.
7) Follow the on-screen prompts to remove Macro Express from your computer.
Tutorial - Introduction
A macro is a set of commands that can be played back at will to perform a given task. These tasks can be something
simple such as inserting your name and address into a word processor to something more complex such as launching a
program, copying data from it, activating another program, pasting the data into it and repeating this several times.
Tasks performed by macros are typically repetitive in nature allowing significant savings in time by executing the macro
instead of manually repeating the commands.
Macro Creation
There are several ways to create macros with Macro Express. One method is to capture (record) your keystrokes and
mouse movements. Another method is to use the Quick Wizards. The Quick Wizards guide you through a series of
questions and build the macro for you. Or you can build your own macros with the easy to use Scripting Editor or Direct
Editor. This tutorial will give examples of creating macros through each of these methods.
Macro Scopes
This guide will also discuss the scope of a macro - or the restrictions you have placed on the macro. You can assign
macros to play back in all Windows programs, in one specific window or program, or in every program except the one
you define. We'll also go through a few examples of how to do this.
Tutorial - HotKey
In this exercise we'll create a macro assigned to a hotkey.
Next, hold down the CTRL key, the SHIFT key and the T key all at the same time and then release them. CTRL+SHIFT+T
should appear in the edit box. This is the hotkey we will use to run the macro. We can choose to create the macro by
entering the macro command directly or by using a scripting editor. Other methods to create macros are to use one of
the Quick Wizards or capture (record) a macro. These options will be reviewed in other sections.
Tutorial - Shortkey
This page demonstrates how to create a macro assigned to a shortkey.
Shortkey Settings
First, let's create some default settings that will apply to the playback of all shortkey macros. From the Macro Express
Explorer menu click on Options | Preferences to load the Preferences window. Click on Shortkeys from the list in the left
panel of the window to display the shortkeys options.
Select the Use Prefix Keys option and enter ## in the Prefix Keys entry space. This will require that ## be pressed
before typing the shortkey or the macro will not play back. Click the OK button to return to the Macro Explorer.
From the Macro Express Explorer menu click on Macros | Add Macro to open the Add Macro window. Select the Shortkeys
option and enter "email" into the Shortkey edit field.
First, click on the Properties tab. In the Nickname box, enter "My Email Address". Then click on the Scope tab and make
sure Global is selected. Now click on the Script tab to return to the screen displayed above. Scroll down the list of
commands and click on the Text category of commands to expand this listing. Double click on the Text Type command
found in this group.
From the Text Type window, enter your email address in the Keystrokes field. If you want to have the macro paste the
text into your application via the Windows clipboard, select the Use Clipboard to Paste Text option. By default the text
will type into the application unless another selection is made. Press the OK button to save the entry and return to the
Scripting Editor.
A new entry is listed in the Macro Script. This entry will read Text Type: followed by the email address that you entered.
If you made a mistake entering your email address, you can double click on this entry and edit the address in the Text
Type window.
From the Scripting Editor, click on File | Save to save your macro. Click on the Macro Explorer button to see your newly
defined macro, "My Email Address", added to the list of available macros.
Select Schedule to display the scheduling options. For this example select the Other option in the Run Macro section. To
simplify the example, select the Play Macro Indefinitely option. Next set the schedule to run every 1 minutes and 0
seconds. With these settings, the macro will play back once every minute.
Enter Notepad for the Window Title and select the Partial Match option. Click on the OK button to save and see the
command inserted into the macro script.
Next expand the Windows/Programs category of commands and double click on the Window Activate command to open
the Activate/Launch Program window. Make sure the Activate Window Only option is selected.
Enter notepad for the Window Title and click on the OK button to insert this command into the macro script.
Next click on the Text category of commands to expand this category. Double click on Date/Time to open the Date/Time
window.
Enter dddd, MMMM dd, yyyy - h:mm:ss AMPM in the Format edit field. Select both the Type Out and Use Current
Date/Time options. Click on the OK button to save and return to the Scripting Editor.
Then expand the Text category again and double click on the Text Type option to load the Text Type window.
Locate Enter in the yellowed area and click on it to insert <ENTER> into the Keystrokes field. This instructs the macro to
insert a carriage return after typing the current date and time. The last step is to close the If statement. Expand the
Logic category and double click on End If to insert the End If command directly into the Scripting Editor.
You should have five entries listed in the "Macro Script" area as shown in the Scripting Editor image above. You can
double click on any of these entries to make changes to what was previously input.
From the Scripting Editor, click on File | Save to save your macro. Click on the Macro Explorer button to see your newly
defined macro, Date and Time, added to the list of available macros.
The HotKey option should already be selected and the blinking cursor should be in the edit box. If the cursor is not in the
edit box, click on the edit box to place the text cursor there. Next, hold down the SHIFT key, the CTRL key and the Z key
all at the same time and release them. CTRL+SHIFT+Z should appear in the edit box. This is the hotkey we will be
assigned to the macro we record.
Capture Settings
Next click on the Capture Macro to open the capture settings window.
A number of capture options are available depending on what you are needing to capture. Default settings for each of
these options may be set in the Capture preferences panel. Those defaults would display in this window each time you
started a capture. They may be temporarily overwritten as needed for each individual capture, which we will do now for
this capture.
1. Enter My Paint Drawing in the Nickname field.
2. Select the scope setting of Program. This indicates that the recorded macro will only play back in the program we
record it in.
3. Select the Capture Keystrokes and Capture Double <ALT> for Menus options.
4. Make sure the Capture Mouse Relative to Window options are selected. Also make sure the Capture Window Size
option is checked.
5. Since we will be recording mouse movements as well as mouse clicks, the Only Capture Mouse Clicks option should
be unchecked.
6. Select the Capture At Actual Speed options.
7. We want to start capturing the macro inside of the Paint program. Under Choose the program to start capturing in,
we want to select the Paint program. It should display in the dropdown list as "untitled - Paint".
Capture Settings
Before we record any macros using this System hotkey, we want to make sure we have our default settings in place.
From the Macro Explorer click on Options | Preferences and select Capture to display the Capture default settings as
shown below.
These are the settings that are used when the System Start / Stop Capture hotkey function is invoked. These are also the
default settings that appear when doing a macro recording by Assigning HotKey First (see prior example) or when using
the Capture Quick Wizard.
1. Select the Scope setting of Program. This indicates that the recorded macro will only play back in the program we
record it in.
2. Select the Capture Keystrokes and Capture Double <ALT> for Menus options.
3. Make sure the Capture Mouse Relative to Window options are selected. Also make sure the Capture Window Size
option is checked.
4. Since we will be recording mouse movements as well as mouse clicks, the Only Capture Mouse Clicks option should
be unchecked.
5. Select the Capture At Actual Speed options.
6. Select the Prompt on Capture option which will display a message indicating that the capture is starting.
Click on the OK button to save the defaults. We are now ready to record.
An important thing to remember when recording a macro is to make sure that the program you plan to start recording in
is active and on top.
Our example recording will be in the Windows Paint program. To start the Windows Paint program, click on the Windows
Start button and enter mspaint.exe in the search box. When found, click on the file to open the Paint program. On older
systems, click on Start and then Run. Enter mspaint and click the ok button.
Select the Popup Menu option. Click on the edit box to place the cursor inside. Next, hold down the ALT key, the SHIFT
key and the Z key all at the same time and then release them. ALT+SHIFT+Z should appear in the edit box. This is the
hotkey we will use for the popup macro. Next, click on the Build Menu button to activate the menu builder.
Let's test out the popup menu macro using notepad. To start notepad, click on the Windows Start button and enter
notepad in the search box. When found, click on the file to open the notepad program. On older systems, click on Start
and then Run. Enter "notepad" and click the ok button.
Once notepad is running, hold down the ALT+SHIFT+Z keys. A menu similar to the one above should appear, listing the
two macros we have previously defined. We can either press the corresponding letter or number next to the macro or
double click on the macro in the menu and it will play the selected macro back in notepad.
Another way to invoke the popup menu is to right click on the "black 4" icon in the system tray. The "black 4" icon should
now be showing in your system tray, because of the Properties settings we made previously. The popup menu may be
displayed in four different forms. One of these, Nickname and Scope, is displayed above.
First part of Macro
Let's take a quick look at the other options. Highlight the Popup Menu macro listed in the Macro Explorer and click on the
menu item Macros | Menu Builder to reopen the Menu Builder. Click on the Properties tab and select the First Part of
Macro option from the How to Display Menu section. Click the Save icon. Click on the "black 4" icon in the system tray to
open the menu. This time it lists the first part of the contents of each macro, as shown above.
Icons Only
Cancel out of the popup menu and return to Macro Express. Right mouse click on the My Menu macro and select the Edit
with Menu Builder option. Then click on the Properties tab and select the Icons Only option from the How to Display
Menu section. Next, select the Horizontal option and enter 10 for Maximum Icons per Row. Click the Save icon. Now click
on the "black 4" icon in the system tray. The menu should display, but this time, it will show a list of icons. Click on one
of the icons in the menu to run the macro.
Windows Default
Return to the Macro Explorer and double click on the My Menu macro to activate the Menu Builder. Click on the
Properties tab and select the Windows Default option from the How to Display Menu section. Click the Save icon. Now
click on the "black 4" icon in the system tray. The menu will display as shown above. Click on the macro you want in
order to execute the macro. Windows will also assign underscores to each of the macros, where possible. So in the
example above, pressing the M key will also activate the My Email Address macro.
1. This page displays types of macros that can be created using Quick Wizards. To create a reminder, select Text and
click on the Next button.
3. This panel shows a few things that can be done with the Reminders. Click next to continue.
4. Enter a reminder message into the edit field. We can also choose to have a sound play back to alert us of the
message. For this example well just use the beep sound.
Also select the Delete this macro after displaying the reminder option to delete the macro after it runs. In this example
the message is to only be displayed once, rather than on a recurring schedule. So we want the macro deleted. Its
simpler than remembering later to manually delete the macro.
Click next and now well set the schedule for the macro.
5. We only want it to play back one time, so select the Once schedule option. Set it to run a couple of minutes from now
so that you can see it run. Click next to continue.
6. Now we need to assign a Nickname to the macro. Enter a nickname to help remember what the macro does. Then
click the Finish button to return to the Macro Explorer window. Our quick wizard macro is now listed as a Scheduled
macro.
7. The last step is to wait for the reminder message macro to run at the time you scheduled.
Global Macro
We already created a couple of Global macros in other tutorials. If you have not created these macros, please refer to the
hotkey tutorial for instructions on creating the CTRL+SHIFT+T macro. A global macro plays back in all Windows
programs. To illustrate, bring Notepad to the foreground and press CTRL+SHIFT+T. Your address is typed into the
notepad. Now bring WordPad to the foreground and press CTRL+SHIFT+T. Your address types out into WordPad.
the Macro Explorer and click on the Scripting Editor button. Click on the Scope tab and select the Program Specific
option. Next click on the Select button to open the Select Programs window as shown below.
On the left is a list of all current programs that are running on your computer. Scroll through the list of programs running
and find notepad.exe. Highlight it in the list and click on either Add button. This will place notepad.exe in the Program
Name edit box.
(You may also note that there is a button called "Select from list of installed programs". You could click on this button for
a list of all programs installed on your computer and select from this list.)
Make sure the Run If On Top option is selected and then click on the OK button. Click on File | Save to save your macro
changes. Click on the Macro Explorer button and note that the scope for the CTRL+SHIFT+T macro (nickname of "my
address") has changed from Global to Program Specific:notepad.exe.
To see what effect the changes have on the macro, bring Notepad to the foreground and press CTRL+SHIFT+T. Your
address types into the program. Now bring WordPad to the foreground and press CTRL+SHIFT+T. Nothing happens. You
have defined CTRL+SHIFT+T to only work in the Notepad program.
Global Except
We will now change the CTRL+SHIFT+T macro to become a Global Except macro. First minimize Notepad and WordPad.
With Macro Express the active window, highlight the CTRL+SHIFT+T (nickname of "my address") macro from the Macro
Explorer and click on the Scripting Editor button. In the Scripting Editor, click on the Scope tab and choose the Global
Except option. Click on the Select button to open the Select Programs window.
This time you will select the program that the macro will not work with. On the left is a list of all current programs that
are running on the computer. Notepad.exe should already be selected. If not, scroll through the list of running programs
and click on notepad.exe. Click on the Add button to place notepad.exe in the Program Name edit box.
(You may also note that there is a button called "Select from list of installed programs". You could click on this button for
a list of all programs installed on your computer and select from the list.)
Click OK to save the program choice and return to the Scripting Editor. Then click on File | Save to save the macro
changes. Click on the Macro Explorer button and note that the "scope" for the CTRL+SHIFT+T macro has changed from
Program Specific to Global Except.
To see what effect the changes have on the macro, bring Notepad to the foreground and press CTRL+SHIFT+T. Nothing
happens. The macro is defined to not work with Notepad. Now bring Wordpad to the foreground and press
CTRL+SHIFT+T. Your address types into the program.
You have defined CTRL+SHIFT+T to work in all programs except the Notepad program. Activate another program that
accepts text input such as your email program and press CTRL+SHIFT+T. Your address should type out into that
program as well.
We will use this option to select a specific window that the macro will run in. (A Window Title is the text that appears in
the top caption bar of most windows). Notepad.exe is most likely listed in the Selected Window field. Highlight this .exe
and click on the Remove button to clear out the selected windows.
On the left is a list of all current windows that are running on your computer. You could browse through this list, but for
this example just enter notepad in the Selected Window edit box and click on the Add button to the immediate right of
the edit box. Select the Run If On Top Option and then click on the OK button to return to the Scripting Editor. Click on
File | Save to save the macro changes. Click on the Macro Explorer button and note that the scope for the My Address
macro has changed from Global Except to Window Specific:notepad.
To see what effect these changes have on the macro, activate the Notepad window and press CTRL+SHIFT+T. Your
address will type out into the program. Now activate the WordPad window and press CTRL+SHIFT+T. Nothing happens.
You have defined CTRL+SHIFT+T to only work in a Notepad window.
Sample Macros
The Macro Express help file contains comprehensive information on how to use each part of the program. It contains
screen shots of almost every element in the program with explanations of how to use each element. There are also many
written examples of how to use the commands in macros.
We have also included a number of sample macros with the program. This section will briefly review each of these
macros. First, to have access to the sample macros, open the Macro Explorer. Then click on "File | Open Macro File" and
select the "samples.mex" macro file. With this macro file loaded in, you can see and review any of the sample macros.
Hide a Program
This sample demonstrates how to hide (make it invisible) a window and how to display it again. It uses the notepad
program for its example. It also demonstrates the use of launching a program, using a variable and displaying messages
in a text window.
Launch Program
This sample demonstrates how to launch a program. It launches the Microsoft Paint program. It also demonstrates the
use of If / then / else conditioning by testing to see if the Paint program exists. Displaying messages in a text window is
also demonstrated.
Paste Text
This sample demonstrates how to paste text into an application. It pastes our company address into the notepad
program. It also demonstrates the use of launching a program, displaying messages in a text window and various
clipboard commands.
available to choose the menu style, whether it will be a toolbar with icons or a window with text selections.
Repeat Until
This sample demonstrates repeating a process until a condition is met. In this example, the user is prompted to enter the
name of the program. It repeats this process over and over until the correct program name is entered. This macro also
demonstrates the use of setting a variable from a prompt, an if / then statement and displaying messages in a text
window.
With the Macro Explorer open, press the hotkeys associated with the sample macros to watch the macros play back.
Afterwards, double click on one of the sample macros listed in the Macro Explorer to load the macro into the Scripting
Editor or Direct Editor. Here you can examine the commands used to make the macro work.
Using Controls
Let's run through an example of how to use the Window Controls. To begin, we first need to start the Windows calculator
program. To start Calculator, click on the Windows Start button and enter calculator in the search box. When found, click
on the file to open the calculator program. On older systems, click on Start and then Run. Enter calculator and click the
ok button. Leave the program running and return to Macro Express.
Next, press the F3 key and release it. F3 should appear in the edit box and will be the hotkey used to run the macro.
In the Scripting Editor first click on the Properties tab. In the Nickname box, enter "Clear Calculator". Then click on the
Scope tab and make sure Global is selected. Now click on the Script tab to return to the screen displayed above. Scroll
down the list of commands and click on the Window Controls command category to expand this listing. Double click on
the Get Control command found in this group to activate the Get Control window as shown below.
Select the Hide Macro Express option. Make sure that the Save Control In option is set to variable C1 and select Exact
Match. Now click on the Launch Get Control Utility button.
This activates the Capture Window Control screen and hides Macro Express. Now click on the target (crosshairs) at the
bottom of this window. Hold down the left mouse button and drag it over top of the "C" button on the calculator. Release
the mouse button. This should insert some information into the Capture Window Control. Class Name should read
"Button". Click the save button to save the information and return to the Get Control Window.
This window should have the information stored to the variable C1 as shown above. Click OK to save this command and
return to the Scripting Editor. Scroll down the list of commands and click on the Window Controls command to expand
this listing (if not already open). Double click on the Mouse Click on Control command to open the Mouse Click on Control
window.
In the General Tab, select Single Click, C1 as the variable and Left Button. This instructs the macro to perform a single
left mouse click on the variable C1, which we have defined as the "C" button on the Calculator. We can ignore the
Advanced Tab, so click OK to save your changes. This returns us to the Scripting Editor. The script should look like the
following:
Get Control %C1%
Mouse Single Left Click on Control %C1%
Click on File | Save to save the macro and return to the Macro Explorer. Our F3 macro with a nickname of Clear
Calculator should now be listed in this window.
Macro Script
Your macro script should look like what is displayed below. If your macro doesn't look like this, arrange the commands so
that they are in this order.
Repeat Start (Repeat 5 times)
Activate Window: "notepad"
Delay 0.5 Seconds
Text Type: <SHIFT><END>
Clipboard Copy
Text Type: <HOME><ARROW DOWN>
Activate Window: "wordpad"
Delay 0.5 Seconds
Clipboard Paste
Text Type: <ENTER>
Repeat End
Click on File | Save to save the macro.
In the Keystrokes edit field, type the following - %T3%%T2%. This will type out the second letter of the transposed text
first, reversing the order and correcting the typing error. Click OK to save.
In the Scripting Editor, click on the Properties Tab. In the Nickname field enter "Fix Transposed Letters" (without the
quotes). Then save the entire macro by clicking on File | Save.
Macro Script
Your macro script should look like what is displayed below. If your macro doesn't look like this, arrange the commands so
that they are in this order.
// Place mouse cursor between transposed letters
Text Type: <ARROW LEFT><SHIFTD><ARROW RIGHT><ARROW RIGHT><SHIFTU>
Clipboard Cut
Variable Set String %T1% from Clipboard
Variable Modify String: Copy Part of %T1% to %T2%
Variable Modify String: Copy Part of %T1% to %T3%
Text Type: %T3%%T2%
Macro Activation
There are many different mechanisms that you can use to activate a macro (i.e. trigger a macro to run).
HotKey
A hotkey is a key combination such as CTRL+ALT+A, CTRL+Right Mouse Click, etc. When the keys are pressed and
released, the macro runs.
Shortkey
A shortkey is a set of characters such as abc, myname, etc. When the keys are typed into an application the macro runs.
Schedule
The macro runs as a scheduled event. These events can be scheduled to play at startup of Macro Express, hourly, daily
(choose any or all days of the week), weekly, monthly, one given time, every "x" minutes or after "x" minutes of
inactivity.
None
None specifies that no activation is to be associated with the macro. This is done because the macro will be used as part
of another macro (i.e. a macro can run other macros) and/or this macro will be used in a popup menu of macros and no
other macro activation is desired for the macro.
Mouse Click
Use either the left, middle or right mouse buttons to activate the macro. Select an area of the screen to click on or
designate a window part to click on, such as scroll bar, title bar, buttons, etc. to activate the macro.
Floating Menu
This creates a menu of macros that are displayed as a floating toolbar that sits on top of your other applications. The
floating menu can either display icons (representing the macros) or the first part of the text of the macro or the macro
nickname and scope. Clicking on one of the macros or typing a corresponding number or letter activates that macro from
the floating menu.
Control
The Control option will activate a macro when a specific control is active. The control may be a window button, edit box
or another identifiable portion of a window.
This option is only intended for the programmer who wants to add macro functionality directly from their own programs.
While the command line parameter options can be used via another program, the following method may be much quicker
and remove the overhead of having to run an external program such as macexp.exe or meproc.exe.
You can instruct the Macro Express Player to directly execute a macro in the currently loaded macro file by specifying its
nickname or you can instruct it to run a playable macro. The macro nickname is case sensitive. If your macro is named
QZStart you must specify QZStart, not qzstart, QZSTART, Qzstart, QZstart, or QzStart. If you have more than one macro
with the same nickname, only the first one found in the macro file will be activated.
The following examples demonstrate the basic steps of how to activate a macro using Windows API messages and are
presented in several different programming languages. These examples assume that you are familiar with basic Windows
API commands and terminology. The process involves posting a series of messages directly to the Macro Express Player.
These examples use the message WM_USER+20 to run a macro within the currently loaded macro file. To run a playable
macro, change the messages in the examples from WM_USER+20 to WM_USER+21.
Example: Delphi
var
i
: integer;
S : string;
Hwnd : THandle;
begin
Hwnd := FindWindow('TMainWin', 'Macro Express Player');
if(IsWindow(Hwnd)) then
begin
S := MacroName;
for i := 1 to length(S) do
PostMessage(Hwnd, WM_USER+20, ord(S[i]), 0);
PostMessage(Hwnd, WM_USER+20, 0, 0);
end
else
ShowMessage('Macro Express is not running');
end;
Example: C/C++/Visual C
HWND hwnd = FindWindow(TMainWin, Macro Express Player);
if( IsWindow(hwnd) ) {
for(int x = 0; x < strlen(s); x ++)
PostMessage(hwnd, WM_USER+20, s[i], 0);
PostMessage(hwnd, WM_USER+20, 0, 0);
}
else
MessageBox(GetForegroundWindow(), Macro Express is not running, Error, 0);
Example: VBA
Private Declare Function FindWindow _
Lib "User32" Alias "FindWindowA" ( _
ByVal lpClassName As String, _
ByVal lpWindowName As String) As Long
Private Declare Function PostMessage _
Lib "User32" Alias "PostMessageA" ( _
ByVal hwnd As Long, _
ByVal wMsg As Long, _
ByVal wParam As Long, _
ByVal lParam As Long) As Long
HotKeys
A hotkey is a combination of keys that, when pressed together, will play back a macro. Macro Express allows hotkey
combinations of a single key up to four keys pressed simultaneously.
If you want to activate a new macro with a hotkey, make sure the HotKey choice is selected in the Add Macro window.
Place the cursor in the edit box and hold down the hotkey combination that you want to use. That combination will be
placed in the edit box. This is the hotkey combination you will press to activate the macro. If you are not sure which
combination to use, scroll through the list of keys and highlight the one you want. This will also place the hotkey
combination in the edit box.
After selecting the hotkey combination, click on the method you want to use to create the macro. You can create the
macro using the Scripting Editor, Direct Editor or by Capturing the macro.
*** <WIN> key can also be used by itself with the space key
Shortkeys
A shortkey is a set of characters such as abc, myname, etc. When the characters are typed into an application, the macro
runs. If you want to create a new macro with a shortkey, click on the shortkey option to display the shortkey edit box. In
this field enter a series of characters from two to 10 characters in length.
After entering the shortkey name, click on the option you want for creating the macro. You can create the macro using
the Scripting Editor, Direct Editor or by Capturing the macro.
Note: Before using the Shortkey option you may want to first define the Shortkey default settings. Click on Options |
Preferences | Shortkeys to make your settings.
Shortkey Specifications
Up to 10 characters may be entered as an original short key. In addition, up to 3 Prefix Keys may optionally be used and
are applied to all Original Shortkeys created. The following Prefix characters may be entered and used:
The letters A through Z (both upper and lower case)
The numbers 0 through 9
The following characters: ! @ # $ % ^ & _ = < > ? . ; , * - / + ` ' " ) ] and space bar
If you choose not to use a prefix key, you can use the suffix key option and press the space bar, the enter key or a suffix
character of . , : ; ? ! or - after typing the shortkey to activate the macro.
Schedule Activation
Scheduled Macros are macros that can be scheduled to play back at a specific time. Just set the schedule for the macro
and it will play back unattended at the designated time. No need to press a hotkey or click on an icon. The macro will
play back at the time you specified. In order for your macro to execute, Macro Express must be running in the
background.
There are a number of scheduling options available. These are described briefly below.
At Startup -Running a macro At Startup instructs Macro Express to immediately execute the scheduled macro
when Macro Express first starts up. If you have Macro Express in your Start Up group, then this type of macro
would play back when you first start Windows.
Once - Running a macro Once lets you select one specific date and one specific time when you want the macro
to run.
Hourly - An Hourly macro lets you run the macro over and over at a specific time each hour.
Daily - A Daily macro allows you to run the macro once each day. You can also specify which days of the week
that you want the macro to run.
Weekly - A Weekly macro allows you to pick one day of the week and the time during that day to run the macro.
Monthly - A Monthly macro allows you to run the macro at a specified time on the same day of the month each
month.
Time Out - Setting the schedule with the Time Out option will play back the macro after the computer has been
idle (no keyboard or mouse activity) for the number of minutes you specify. This option allows you up to 720
minutes after the computer has been idled.
Other -The Other option lets you repetitively run a macro every XX number of minutes or seconds. The intervals
can be between 1second and 99999 minutes and 59 seconds. If you schedule a macro to run every 1 second and
the macro takes 5 seconds to execute, then this function will not operate properly. If you plan to use macros that
will run more frequently than every 10 seconds, you will need to change the Scheduler Frequency default setting.
The default instructs Macro Express to check every 10 seconds to see if a scheduled macro is ready to play back.
You will need to reduce this number in order for scheduled macros to play back more frequently.
Load File - This option instructs the macro to play back when the macro file containing the macro is first loaded.
Select Schedule to activate the Scheduler. Then select the time frame that you want.
After selecting the desired schedule, click on the method you want to use to create the macro. You can create the macro
using the Scripting Editor, Direct Editor or by Capturing the macro.
Note: Macro not Playing Back
Screen Savers will prevent a scheduled macro from operating correctly. Focus cannot be given to a program if a screen
saver is running. Also, the security measures built into the "Lock Workstation" function of Windows will prevent Macro
Express from executing a macro.
A scheduled macro will not play back if you are capturing a macro.
Note: Playback Accuracy
The accuracy of a scheduled macro is not guaranteed. There are a variety of things that may cause the scheduled macro
to not play at the exact time specified. For example, if another macro is running when a scheduled macro should run, the
scheduled macro will be delayed. Sometimes several macros can be queued up waiting to run. The scheduled macro may
not run until all other queued macros run.
By default, the Macro Express Schedulers Timer Interval is set to 10 seconds. This means that Macro Express will only
check every 10 seconds to see if a scheduled macro should run. If your macro should run at 11:01 AM, it may not run
until 10 seconds later. To increase the accuracy of a scheduled macro, click Options | Preferences | Scheduler and
change the Timer Interval to Check every 1 seconds. This causes Macro Express to use more CPU cycles but this should
not be noticeable on faster computers.
Also, the load of other programs running on your computer can affect when a scheduled macro will run.
Scheduling - At Startup
Macro Express Explorer > Macros > Add Macro > Schedule
Running a macro At Startup instructs Macro Express to immediately execute the scheduled macro when Macro Express
first starts up. If you have Macro Express in your Start Up folder, then the macro will play back as soon as Windows
starts.
Options
Time Frame
You may specify certain times of the day when you want the macro to play back. In the example above, the macro will
only play back from 7:00 AM to 9:00 AM. If you were to restart Macro Express at 10:00AM the macro would not play
back because it is outside of the specified time period.
Date Period
You may specify a range of dates that the macro will work. In the example above, the macro will work between January
11, 2012 and January 10, 2013. After this date the macro will no longer function, unless you modify the dates. You could
set this up so that the macro would begin working a week or a month from the date you created the macro.
Play Macro Indefinitely
If you are not concerned with a Time Frame or Date Period, just place a check next to Play Macro Indefinitely. This will
play the macro back every time you want start Macro Express, on the days of the week selected. This will continue
indefinitely.
Days of Week
You may select which days of the week you want the macro to run. You may not want the macro to play back on
weekends, so you would just remove the checks from Saturday and Sunday as in the image above.
Scheduling - Once
Macro Express Explorer > Macros > Add Macro > Schedule
Running a macro Once lets you select one specific date and one specific time when you want the macro to run. In this
example, the macro is set to run at 10:00AM on January 11, 2012. Once it runs on this date, it will not run again.
Scheduling Hourly
Macro Express Explorer > Macros > Add Macro > Schedule
Running a macro Hourly lets you run the macro over and over at a specific time each hour or every xx number of hours.
Scheduling - Daily
Macro Express Explorer > Macros > Add Macro > Schedule
Running a macro Daily allows you to run the macro once each day. You can also specify which days of the week that you
want the macro to run or have the macro run every xx number of days.
Scheduling - Weekly
Macro Express Explorer > Macros > Add Macro > Schedule
Running a macro Weekly allows you to pick a day of the week and the time during that day to run the macro.
Scheduling - Monthly
Macro Express Explorer > Macros > Add Macro > Schedule
Running a macro Monthly allows you to run the macro at a specified time on the same day of the month each month.
Macro Express Explorer > Macros > Add Macro > Schedule
Setting the schedule with the Time Out option will play back the macro after the computer has been idle (no keyboard or
mouse activity) for the number of minutes you specify. This option allows you up to 720 minutes after the computer has
been idled.
There are two fields in the Time Out section where you can enter a number of minutes. The second value is the amount
of computer idle time required. The first value is the amount of time Macro Express will wait before initially starting the
macro.
Example
In the image above, the scheduler will wait for the system to be
idle for 15 minutes. It will then wait 2 minutes before running the
macro.
If the macro does not require use of the keyboard or mouse, it
will play back again in 2 minutes.
If the macro does change the idle status of the computer, then
the macro will not play back again until the system has been idle
for 15 minutes and then the 2 minute wait period.
Scheduling - Other
Macro Express Explorer > Macros > Add Macro > Schedule
The Other option lets you repetitively run a macro every XX number of minutes and/or seconds. The intervals can be
between 1second and 99999 minutes and 59 seconds. If you schedule a macro to run every 1 second and the macro
takes 5 seconds to execute, then this function will not operate properly. If you plan to use macros that will run more
frequently than every 10 seconds, you will need to change the Scheduler Frequency default setting. This setting instructs
Macro Express to check every 10 seconds to see if a scheduled macro is ready to play back. You will need to reduce this
number in order for scheduled macros to play back more frequently.
Options
Time Frame
You may specify certain times of the day when you want the macro to play back. In the example above, the macro will
only play back every 30 minutes from 7:00 AM to 5:00 PM. At 5:30 PM the macro would not play back because it is
outside of the specified time period. In the example above, if you close Macro Express 20 minutes after the macro ran,
the macro will not run again 10 minutes after you restart Macro Express. The "clock" resets and the macro will play back
after the full 30 minutes has elapsed, since Macro Express was restarted. The same situation applies if you disable a
macro.
Date Period
You may specify a range of dates that the macro will work. In the example above, the macro will work between January
11, 2012 and January 10, 2013. After this date the macro will no longer function, unless you modify the dates. You could
set this up so that the macro would begin working a week or a month from the date you created the macro.
Play Macro Indefinitely
If you are not concerned with a Time Frame or Date Period, just place a check next to Play Macro Indefinitely. The macro
will play back every 30 minutes. This will continue indefinitely.
Macro Express Explorer > Macros > Add Macro > Schedule
This is similar to the At Startup schedule with one difference. Any time that the macro file containing your scheduled
macro is loaded, the macro will run. So if you are starting up Macro Express in the morning, the file loads and the macro
will play back. If you open another macro file and then open your original file that contains your scheduled macro, then
the macro will also execute.
Options
Time Frame
You may specify certain times of the day when you want the macro to play back. In the example above, the macro will
only play back from 7:00 AM to 5:00 PM. If you were to start Macro Express with the specified file loaded, at 6:00 PM,
the macro would not play back because it is outside of the specified time period.
Date Period
You may specify a range of dates that the macro will work. In the example above, the macro will work between January
11, 2012 and January 10, 2014. After this date the macro will no longer function, unless you modify the dates. You could
set this up so that the macro would begin working a week or a month from the date you created the macro.
Play Macro Indefinitely
If you are not concerned with a Time Frame or Date Period, just place a check next to Play Macro Indefinitely. This will
play the macro back every time you want start Macro Express, on the days of the week selected. This will continue
indefinitely.
Days of Week
You may select which days of the week you want the macro to run. You may not want the macro to play back on
weekends, so you would just remove the checks from Saturday and Sunday as in the image above.
Window Title
Using this option will instruct the macro to execute any time the Window Title you specify has focus. In other words,
once the window is activated the macro will play back.
Selecting the Window Title option will display the above window. In the edit box, enter the title of the Window that you
want the macro to play back in. The title of the window is that which appears in the caption bar of a window. Macro
Express examines all Window Titles running on the computer in an attempt to find a match.
The Window Title does not need to be an exact match. A partial match will work. For example, if you wanted to switch to
the Windows Notepad program, you could use "notepad" or "notep". This is particularly useful as some Window Titles
change based on whether a given file is open. Case sensitivity is not required. For example, "NOTepad" will work as well
as "notepad".
After typing in the Window Title name,click on the option you want for creating the macro. You can create the macro
using the Scripting Editor, Direct Editor or by Capturing the macro.
No Activation
It is possible to create a macro and not assign any activation key to the macro. There are two primary uses for the No
Activation option. First, you can create generic macro templates that can be incorporated into other macros - a set of
instructions that you might find useful for insertion into several other macros. The Macro Run command will allow you to
insert a No Activation macro into other macros.
A second use for this option is to just place the macro in a popup or floating menu. You may not want to assign the
macro to a hotkey or shortkey for fear of accidentally invoking the macro. The only way to invoke the macro would be
through the popup or floating menu.
After selecting No Activation, click on the option you want to use to create the macro. You can create the macro using
the Scripting Editor, Direct Editor or by Capturing the macro.
Popup Menu
A popup menu is a menu of macros you have previously created. The menu window can be activated by pressing a
hotkey of your choice or designating a system tray icon. Then either double click on the macro in the menu to run that
macro or press the number or letter in the menu associated with the macro you want.
Selecting a Popup Menu will activate the above Window, requesting a hotkey to assign to activate the menu. After
selecting the hotkey that you want to use to activate the popup menu, click on the Build Menu button to open the Build
Macro Menu window. In this window you can select which macros to include in the menu and the menu style.
Mouse Activation
You can create macros to run when the mouse button is clicked. To do this, first select the Mouse Click option to display
the mouse options shown above. Macro activation may be assigned to the Left, Middle or Right mouse buttons.
There are two different types of mouse activation available, Area on Screen or Window Part.
Area on Screen
You can define regions on the screen that can be activated with a mouse click. Clicking on the defined area will trigger
the macro. This option requires that you input four pixel coordinates - Left, Top, Right, and Bottom. The area within
these four pixel coordinates is the area you can click on to run the macro.
Locator
Click on the Locator button to launch this small utility to help you quickly define the pixel coordinates. After the
locator is running, move your mouse to the upper left corner of the region you want to define. Press Ctrl+Space to
insert the pixel coordinates in the Left and Top fields. Then move your mouse to the lower right corner of the region
you want to define. Press Alt+Space to insert the pixel coordinates into the Right and Bottom fields. this is a
test.Press OK to save the coordinates.
What you have done is define a square or rectangular area on the screen. The macro runs when you click inside this
area.
Window Part
You can define a macro to run by clicking on a part of a window. Parts include the window border, window title bar,
window menu, horizontal scroll bar, vertical scroll bar, system menu, minimize button and maximize button.
Note: A few options have been excluded where they will interfere with Windows. These include such things as Left
Mouse with the Maximize or Minimize buttons.
After selecting the mouse option, click on the Scripting Editor, Direct Editor or Capture button to create the macro.
Floating Menu
A floating menu has the same form and options as a Popup Menu except that it always remains on top and is always
accessible as long as the Macro Player is running. A floating menu can be minimized to just the caption bar to free up
space if needed. Multiple floating menus can be created. The last location of the floating menu is retained and used with
subsequent runs of Macro Express.
Select the Floating Menu option and then click on the Build Menu button to open the Build Macro Menu window. In this
window you can select which macros you want to include in your floating menu, and other details.
Control Activation
For our purposes, Control refers to the identifiable parts of a specific application window. Controls may include such
things as a button, an edit box, a toolbar, a window title bar or others. The control may be part of the main application
window or be part of a child window (a window within a window).
With Control Activation selected, the macro will play back when the control is active or the window with the control is
active. In the example above the control name is listed. The program .exe is named and then the window component
that must be active in order for the macro to play back.
Control on Top
This option only requires that the control part of the window is currently active or on top.
Control Focused
This option requires that the control be part of the active window and the control must have focus. For example the
mouse cursor could be in an edit box, giving focus to this control. Or a button may be highlighted and have control.
Get Control
Below is an image of the Capture Window Control window that appears when you launch the control utility. Essentially
you just place the mouse cursor on the crosshair image, hold down the left mouse button and drag the mouse over the
control you want. You can drag this over title bars, buttons, edit boxes, forms, toolbars, etc. As you drag the mouse over
these different controls, you'll see the Class Name and Window Text fields populated with the corresponding information.
Once you have selected the control you want, release the left mouse button. Click on the Save button to return to the
Add Macro window. The control name will be saved in this window.
Note: Not every button, menu item or component on a program is actually a Control. Sometimes the only control in a
given program is the window or dialog that pops up when the program starts. We have also noticed that many of
Microsoft's programs seem to have fewer controls than programs from other manufacturers. How the controls work will
depend upon the way the program you are working with is designed.
Related Topics
Control Overview
Controls Tutorial
Stopping a Macro
Once you have started a macro, you may find times when you need to stop the macro before it is complete. There are
several ways to do this.
Aborting a Macro
If you have selected to display the Running icon when a macro is running, right mouse click on the icon in the System
tray to stop the macro. Or you may press the Scroll Lock and Pause keys to stop the macro. This is the default hotkey.
You can change the default to Win + ` or the Pause key by going to Options | Preferences | Playback.
Any of these options will cancel a macro that is playing. However, please note that macros that consist of a lot of
keystrokes can send the keystrokes rather quickly and Windows will buffer up the keystrokes. Once such commands have
been buffered up in Windows, aborting a macro will not cancel them. In these cases, it may appear that the abort
command did not work when in reality the macro has already finished issuing its commands and Windows is now
processing them.
Note: The Timed Delay in Seconds command and the Wait for Time to Elapse command suspend Macro Express for the
amount of time specified. During this delay time the macro cannot be terminated.
Macro Stop
The Macro Stop command allows you to stop the execution of a macro before the macro steps have completed. You
would insert the Macro Stop command into your macro script. Whenever this line in the macro is reached, the macro will
terminate. In most cases you would use this command in conjunction with a conditional statement. For example, if a
desired condition is not met, terminate the macro.
Macro Explorer
Actions
The icons in the Actions column are the primary methods for navigating through the program. Click on any of these icons
to load a different program function.
Categories
If you have created quite a few macros, you may find it convenient to use the optional category function. This "category"
section allows you to assign each macro to a category you define. For example you can create a Password category to
hold any macros containing important passwords or assign any MS Word specific macros to a MS Word category. This
makes it easy to find the macros you want - for a quick edit or change. A macro may only be assigned to one category.
The same macro cannot be placed in multiple categories.
The category option may be turned on or off via the Appearance window. From this window, place a check in the box
next to Show Categories to display the category listings. The category column appears on the left side of the Macro
Explorer. In the Macro Explorer you can add, delete and rename categories.
When the program is first installed, there are two default categories - All Categories and Unassigned.
Macros
By default, the program opens to the Macro Explorer pane. This pane displays the list of macros in the file that you
currently have open. The program comes with five System Macros that cannot be removed as they are essential parts of
the program. When saving macros in the editors, quick wizards or with a macro capture, the program will return to the
Macro Explorer. The list of macro information is displayed in four columns.
Activation - This displays the method you selected to execute the macro. This column displays the hotkey
combinations, any scheduled macros, the letter combinations used for any shortkeys or any other type of
activation method you selected. Popup menus or floating menus can be created for easier execution of macros.
Nickname - You can assign a nickname to any macro so that you can more readily identify the purpose of the
macro. You do not have to assign nicknames to macros. This is an optional function. Any not assigned will show
as a blank field.
Scope - This column lists whether the macro is global, global except, window specific, program specific, a
system macro, a popup menu or a floating menu. A global macro will play back in any Windows application. A
global except macro will play back in any Windows application except the one(s) you specify. A window specific
macro will only execute in the window that you designate. If the window is not active the macro will not play
back A program specific macro will only execute in the program that you designate. If the program is not active
the macro will not play back.
Modified - This displays the date that the macro was last modified.
Sorting Macros
To quickly sort the list of macros displayed, click on one of the column headers, Nickname, Activation, Scope or Modified.
The macros will be sorted in order based on the column header you selected. Click on the header again and it will reverse
the sort order. For additional sorting options click on Options | Sort Macros | Custom.
Action
Ctrl+F
F3
Find Again
Delete
Delete macro
Below is a list of the keystroke equivalents for navigating through the program. These keystrokes would be the same as
clicking on the Actions Icons in the left hand column of the program.
Keystroke
Action
Alt+V E
Macro Explorer
Alt+V S
Scripting Editor
Alt+V D
Direct Editor
Alt+M A
Alt+V Q
Quick Wizards
Alt+V R
Recycle Bin
System Macros
Macro Express Explorer > Right Click on System Macro > Left Click on Properties
Macro Express defines several system macros for a variety of program functions. These macros can be renamed at any
time to something that may be easier for you to remember.
Renaming a System Macro
To rename a system macro, right mouse click on the macro displayed in the Macro Explorer. From the menu that
appears, left click on Properties to open the System Macro Properties window. Click on the Set HotKey button next to
the System Macro you want to edit. Select a hotkey from the list that may be simpler to remember and click OK. The
new hotkey will display in the Activation column of the Macro Explorer.
Resume Pause
If you have inserted a pause into your macro, instead of using the mouse to click the "Resume" button, you can press
down the Ctrl+Alt+Shift+Y hotkey to resume the macro.
Start/Stop Capture
When you are ready to begin capturing keystrokes or mouse movements for a macro, press Ctrl+Alt+Shift+X to start
capturing. When you are finished capturing, press Ctrl+Alt+Shift+X again to stop recording. You can also press the
hotkey combination that you are defining to stop the capture process.
File Menu
New Macro File
Macro Express allows you to create multiple files with different macros in each file. Click on the File | New File option to
create a new file. A dialog box appears prompting you to name the file and place it into the desired folder.
Backup
This option will immediately make a backup of the macro file that is currently open. If you have opted to set up a back
up schedule, this option will not disturb the schedule you have created. It will follow the settings that are selected in the
option, such as where the backup will be saved and how many backup copies will be created.
Restore
Use this option to restore from a backup file. A Windows dialog will open prompting to select the backup file. The dialog
opens to the folder designated in the Backup preferences panel for file backups. If the backup options were recently
changed, then it may be necessary to browse to the location where previous backups were stored.
Reopen
This is a convenient way to open a macro file previously used. This option displays the last five macro files that you have
used. Click on the file you want to load into Macro Express.
Import
There are three different import options available in Macro Express. Click on the topic of interest below to obtain more
information.
Import Macros
Import Text File
Import a Playable Macro
Export
There are three different export options available in Macro Express. Click on the topic of interest below to obtain more
information.
Export Macros
Output Macro Information
Export as Playable Macro
Printer Font
Use this option to select font settings for printing the macro list. Select font size, color, type, etc.
Printer Setup
Select this option to ensure printer settings are accurate before printing the macro list.
Importing Macros
The import and export functions are a convenient way to transfer macros between Macro Express users. Use the
Export command to save your macros to a USB drive or some other media. On another computer, import the macros
from the USB drive or other device.
Macro Express Explorer > File > Import > Import Macros
To import macros, click on File | Import | Import Macros. An empty Import Macros window will appear. Click on the Open
File button to open an existing Macro Express macro file. A standard dialog box will appear so that you can browse
through your folders to find the correct file.
All Macro Express macro files have a file extension of .MEX. Highlight the file you want to import and click on Open. A list
of all macros found in that file will be shown. Highlight the macros you want to import by clicking on each macro. Then
click the Import button. An Import Complete message will appear. Click OK and then click Exit to return to the Macro
Explorer. This finishes the process and the macros have been imported into your current file.
If you want to import all of the macros, click on the Select All button which will highlight all macros. Then click the OK
button. Pressing the Clear button will remove the highlight from any macros already selected.
Note: It is also possible to import or export popup menu macros along with the macros that were in them and have
them correlate correctly after the import or export. This can be done as long as the macros in the popup menu are
imported or exported at the same time as the popup menu. Any macro that is not imported or exported along with the
popup menu will be removed from the popup menu as an entry.
Example:
This example shows the format for two shortkey macros followed by a hotkey macro to be
imported.
<ITEM NAME>issadd
Our Address
Insight Software Solutions, Inc.
P.O. Box 106
Kaysville, UT 84037
<ITEM NAME>Lic1
License Info
Licensor grants to Licensee a non-exclusive and non-transferable license to use Macro
Express upon the terms and conditions set forth in this Agreement.
<ITEM NAME>Ctrl+Shift+T
Text File Import
The text file must be in a specific format. An improper format will cause unpredictable
results. The format requires an "<ITEM NAME> tag followed by the shortkey or hotkey
name on one line. The hotkey names to use are the names used in the Macro Express
editor when selecting to add a new hotkey macro. If a match is not made on one of these,
then it is assumed that the name given is a shortkey. The next line contains the nickname
of the macro. The following line or set of lines contains the macro text. The macro text can
span multiple lines. The next macro to be imported will again start with the "<ITEM
NAME> tag starting on a new line.
Macro Express Explorer > File > Import > Import Text File
Macro Express Explorer > File > Import > Import a Playable Macro
Exporting Macros
The import and export functions are a convenient way to transfer macros between Macro Express users. Use the Export
command to save your macros to a USB drive or some other medium. On another computer, Import the macros from the
USB drive or other device.
Macro Express Explorer > File > Export > Export Macros
To export macros, click on File | Export | Export Macros. A window will be presented showing all macros from the macro
file you are currently working with. Highlight the macros you want exported and click the Save File button. A standard
windows box will appear asking you to name the file and select a destination folder. The new file created will be a Macro
Express macro (.mex) file which can be opened directly by Macro Express using the File | Open Macro File menu or the
macros may be imported.
If you want to export all of the macros in the file, click on the Select All button which will highlight all macros. Then click
the Save File button. Pressing the Clear button will "de-select" any macros already highlighted.
Note: It is possible to import or export popup menu macros along with the macros that were in them and have them
correlate correctly after the import or export. This can be done as long as the macros in the popup menu are imported or
exported at the same time as the popup menu. Any macro that is not imported or exported along with the popup menu
will be removed from the popup menu as an entry.
Macro Express Explorer > File > Export > Output Macro Information
Macro Express Explorer > File > Export > Export as Playable Macro
Add Macros
Click on Macros | Add Macros from the main window of the program to open the Add Macro window. Select the macro
activation method you want. Choose from HotKey, Shortkey, Scheduled Macro, Window Activated, Window Control,
Mouse Click, Popup or Floating Menus or No Activation. The program defaults to the HotKey activation.
HotKey
If you want to activate your new macro with a hotkey, make sure the hotkey choice is selected. The window will look like
the one above. Place the cursor in the edit box and hold down the hotkey combination that you want to use. That
combination will be placed in the edit box. This is the hotkey combination you will press to activate the macro, when
completed. If you are not sure which combination you want to use, scroll through the list of keys and highlight the one
you want. This will also place the hotkey combination in the edit box.
After selecting the hotkey combination, click on the option you want for creating the macro. You can create the macro
using the Scripting Editor, the Direct Editor or by Capturing the macro.
ShortKey
Selecting the Shortkey option activates the above window. In the edit box type in the shortkey (up to 10 characters) that
you want to use to activate the macro. A shortkey is a set of characters such as abc, myname, etc. When the characters
are typed into an application that accepts text input, the macro runs. This option will not trigger a macro from the
Windows desktop or other applications that do not accept text input. For a complete list of characters that can be used
with a shortkey, see the program specifications.
After typing in the shortkey name, click on the option you want for creating the macro. You can create the macro using
the Scripting Editor, Entering the Macro information directly or by Capturing the macro.
Note: Before using the Shortkey option you may want to first set the shortkey default settings. Click on Options |
Preferences | Shortkeys to define your settings.
Scheduled Macro
Select Schedule to activate the Scheduler options. Choose the schedule that you want and click on the Scripting Editor,
Direct Editor or Capture buttons to begin building the macro. The macro will play back at the time you have designated.
Window Title
This activation instructs the macro to execute any time the Window Title you specify has focus. In other words, once the
window is activated the macro will run.
In the edit box, enter the title of the Window that you want the macro to play back in. The title of the window is that
which appears in the caption bar of a window. Macro Express examines all Window Titles running on the computer in an
attempt to find a match.
The Window Title does not need to be an exact match. A partial match will work. For example, if you wanted to switch to
the Windows Notepad program, you could use "notepad" or "notep". This is particularly useful as some Window Titles
change based on whether a given file is open. Case sensitivity is not required. For example, "NOTepad" will work as well
as "notepad".
After inserting the Window Title, click on the option you want for creating the macro. You can create the macro using the
Scripting Editor, Entering the Macro information directly or by Capturing the macro.
Popup Menu
Selecting a Popup Menu activates the above Window. After selecting the hotkey that you want to use to activate the
popup menu, click on the Build Menu button to open the Build Macro Menu window. In this window you can select which
macros you want to include in the popup menu. Also choose from several type menus to display.
Floating Menu
A floating menu has the same form and options as a Popup Menu except that it always remains on top and always
accessible as long as the Macro Player is running. A floating menu may be minimized to just the caption bar to free up
desktop space if needed. Multiple floating menus can be created. The last location of the floating menu is retained and
used with subsequent runs of Macro Express. Click on the Build Menu button to open the Build Macro Menu window. In
this window you can select which macros you want to include in the floating menu. Also choose from several type menus
to display.
Mouse Click
This option allows you to define macros activated by mouse clicks. Two different mouse options are available.
1. Define regions on the screen that can be assigned to the left, middle or right mouse button. Clicking on this area
will trigger the macro. Macros can be global, window or program specific.
2. Or click on part of a window to execute a macro. Window parts include the window border, window menu,
window caption bar, horizontal scroll bar, vertical scroll bar, system button, minimize button and maximize
button. Macros can be assigned to left, middle or right button and can be global, window or program specific. A
few options have been excluded where they will interfere with Windows. These include such things as Left Mouse
with the Maximize or Minimize buttons.
No Activation
There are at least two possible uses for the No Activation option. First, you can create generic macro templates that can
be incorporated into other macros - a set of instructions that you might find useful for insertion into several other
macros. The Run A Macro command will allow you to insert this macro into other macros.
The second possible use for this option is to just place the macro in a popup menu. You may not want to assign the
macro to a hotkey or short key for fear of accidentally invoking the macro. The only way to invoke the macro would be
through the popup menu.
Control
The Control option will activate a macro when a specific window control is active. The control may be a window button,
edit box or another identifiable portion of a window.
Copy Macro
Macro Express provides a simple method for copying of an existing macro. From the Macro Express - Explorer window
highlight the macro to copy. Then click on Macros | Copy Macro from the menu or the Copy Macro button on the toolbar
to open the Copy Macro window. Select the macro activation to use and click OK.
The new copied macro is listed in the Macro Explorer window. The macro nickname is designated as "Copy of ..." the
original macro name. Double click on the macro to edit in the Scripting Editor. Open the Properties tab and assign a new
nickname if desired.
Highlight macro in Macro Express Explorer > Macros > Copy Macro
Highlight macro in Macro Express - Explorer > Macros > Run Macro Now
Recapture Macro
To overwrite the results of a previous captured macro, highlight the macro from the Macro Express Pro - Explorer list and
click on Macro | Recapture Macro. This opens the Capture a Macro window which allows you to check the capture
settings before recording. Then click the Capture button to start the macro capture.
Press the system hotkey Ctrl + Alt + Shift + X, right click on the camera icon in the system tray or press the hotkey
combination of the macro being recaptured to stop the capture.
Recapturing removes the contents of the existing macro and replaces it with the newly captured script.
Highlight macro in Macro Express - Explorer > Macros > Recapture Macro
Search Explorer
If you have a large number of macros listed in the Macro Explorer, you may find this option to be a real time saver. This
will perform a search through the list of macro nicknames. It will perform the search beginning with the macro you have
highlighted and continue through the rest of the list.
Pressing CTRL + F or clicking on Macros | Search will open the Find window. Enter the word(s) you are looking for in the
Nickname field and press the Find Next button. If a match is found, the macro that matches will now be the highlighted
macro. If no match is found, a message will be displayed saying that you have "Reached the end of the list".
If your first match is not the macro you were looking for, press F3 or click on Macros | Search Again to go to the next
match.
Match Case
This option will make your search case sensitive. Capital and lower case letters will need to match exactly in order to find
the right match.
Delete Macro
To remove a macro that is no longer needed, first highlight that macro with your mouse from the list in the Macro
Explorer. Click on Macros | Delete Macro(s) or the Delete button on the toolbar. A window prompts you to verify that you
want to delete the macro. Select Yes to delete or No to cancel. You may also highlight a group of macros and delete
them all at the same time.
You can also use commands in macros themselves to delete other macros or to delete itself upon termination of the
macro. You may want to create a one-time reminder message and then have the message (macro) be removed after
playback. The Macro Commands function allows you to do this.
Deleted macros are sent to the Macro Express Recycle Bin. If you decide later that you need the deleted macro, you can
restore it from the Recycle Bin. Or you can periodically remove all macros from the Recycle Bin.
Highlight macro in Macro Express - Explorer > Macros > Delete Macro
Place on Desktop
You can place an icon on your desktop for any of the macros you have created. In order to do this, highlight the macro
you want to place on the desktop from the list of macros in the Macro Explorer. Then click on Macros | Place on Desktop.
The icon that you assigned to your macro will now be displayed on your desktop.
You can change a macro's icon by double clicking on the macro from the list of macros in the Macro Explorer. This action
opens the Scripting Editor or Direct Editor, depending on which is defined as your default editor. Click on the Properties
Tab and then click on the Change button in the icon section to select an icon. If an icon was not selected at the time the
macro was created, the default Macro Express icon is displayed.
Note 1: When you create an icon on the desktop, the macro nickname also becomes the file name. Windows will not
accept several characters in a file name, one of them being the /. Other characters not allowed are \ : * ? < > and |.
Note 2: To remove an icon from the desktop, right mouse click on the icon and select delete from the menu that opens.
Macro Properties
This view of the Properties window may be accessed from the Macro Explorer. Highlight the macro of interest and click
on Macros | Properties from the Macro Explorer menu. Or right mouse click on the macro of interest and left click on
Properties from the context menu. The following information is available about the macro you have selected.
General
This Tab provides some basic information about the macro. You can change the status of the macro from active to
inactive or vice versa from this tab. You can also select a new icon to be associated with your macro from this tab.
You may also change the Macro Nickname. Just type over the existing nickname to rename the macro. Click Apply to
save the change.
Activation
This tab displays what macro activation(s) you have selected. The activation(s) may be modified from this screen.
Scope
The Scope tab displays what programs or windows you have selected the macro to work with. These selections may be
modified from this screen.
Script
The Script tab displays the macro script, similar to the format you would see in the Direct Editor. The macro script cannot
be altered in this tab. This must be done in the Scripting Editor or Direct Editor.
Security
The Security Tab allows you to make changes to the macro passwords defined or create new passwords.
Notes
This tab displays any notes you may have made about the macro. You may edit the notes in this field.
Log
The Log Tab displays any error logging that you may be tracking in the macro. Click on the Clear Log button to remove
all log entries. Place a check in the box next to Enable Error Log to start logging any error messages. Or if you have the
logging default set in the Preferences | Miscellaneous, the errors will be logged. This field is not editable.
Macro Categories
If you have created quite a few macros, you may find it handy to use the optional category
function. This optional "category" section allows you to assign each macro to a category you define. For example you can
create a Password category to hold any macros containing important passwords or assign any MS Word specific macros
to a MS Word category. This makes it easy to find the macros you want - for a quick edit or change. A macro may only
be assigned to one category. The same macro cannot be placed in multiple categories.
The category option may be turned on or off via the Appearance window. From this window, place a check in the box
next to Show Categories to display the category listings. The category column appears on the left side of the Macro
Explorer. In the Macro Explorer you can add, delete and rename categories.
When the program is first installed, there are two default categories - All Categories and Unassigned.
Add Category
Select this menu option to add a new category. A new category folder and edit box will appear in the category list. Type
in the name that you want to call the category. You may also create sub-categories within your list of categories. To do
this, right mouse click on the main folder and then left mouse click on New Category. A new category sub-folder will be
added to the list.
Rename Category
To change the name of a category you have already created, highlight the category and click on the Category | Rename
Category menu option. The category name will be highlighted and you can type in a new name. This is similar to
Windows Explorer.
Delete Category
Highlight the name of the category that you want to remove. Then click on Category | Delete Category. A warning
message will appear verifying that you want to delete the category. Click yes to delete the category and any
sub-categories of that category.
You can also use the menu commands to assign macros to categories you have already created. Highlight the macro you
want to assign, then click on Macros | Move to Category. A list of categories will appear as in the example above.
Highlight the category you want and then press the OK button. Your macro will now be assigned to the category you
selected.
With either of the above options, you can highlight a block of macros and move them all at once to the category of your
choice.
Note: The categories you have selected are specific to the macro file that you currently have open. If you open a new
macro file, the categories will change to what you have assigned for that file.
Sort Macros
There are several options for sorting macros in the Macro Explorer. These options are accessible through the Options |
Sort Macros menu.
By Nickname
All macros in the Macro Explorer list are sorted by macro nickname. You can also click on the column header to sort.
Another click on the column header will reverse the sort order.
By Activation
This option alphabetically sorts all of the macros in the Macro Explorer list by macro activation. You can also click on the
column header to sort. Another click on the column header will reverse the sort order.
By Scope
All macros in the Macro Explorer list are sorted by macro scope. You can also click on the column header to sort. Another
click on the column header will reverse the sort order.
By Date
Sort all of the macros in the Macro Explorer list by the date the macro was last modified (edited). You can also click on
the column header to perform the sort. Another click on the column header will reverse the sort order.
Custom
Use this option to customize how you want the macros sorted. Below is a display of the sort window used to define the
sort order of macros displayed in the Macro Explorer.
Macro Express Explorer > Options > Sort Macros > Custom
Primary Sort
You can select which item will be your primary sort. Highlight the item you want as your primary sort and click the up
arrow to move it to the number one (top) position. You can change the positions of any of the items by highlighting
it and then clicking on the up or down arrow. You can sort by Activation, Nickname, Scope or Modified Date/Time.
Make your selection and then use the Secondary Sort to further sort the Activation or Scope options.
Using the Nickname as primary sort would sort the names you assigned to each macro in alphabetical order. Any
macros not assigned a nickname will appear first in the list. The Modified Date/Time selection will sort the macros by
the date and time that the macro was last modified.
Secondary Sort
In this example, the primary sort is Activation so that the macros listed in the Macro Explorer are sorted by Activation
code. Based on the Secondary Sort example above (Activation column), all hotkeys are placed in alphabetical order
first. Next, all shortkeys are placed in alphabetical order, then the scheduled macros followed by the no activation
macros and those activated by a window title. Lastly, the mouse click activated macros, floating menus and control
activated macros are listed.
The Scope column actually adds another sort level. So in the example above, the macros are sorted by macro
activation with all hotkey macros being listed first. Then if you have the same hotkey assigned to more than one
macro, then that hotkey would be further sorted by the scope of the macro. Highlight the scope option and click on
the Up or Down arrows to move it to the sort position you want.
Use Drag and Drop to set the order of macros
With this option checked you can drag the macros in the Macro Explorer list and drop them to a new position in the
list. Just click on the macro (or highlight a group of macros) and hold down the left mouse button. Move the mouse
cursor to the new location in the list and release the button. The macro(s) should now be positioned as you
instructed.
View
This option affects the amount of macro detail displayed in the Macro Explorer window.
Large Icons
Display only the icons associated with each macro. The icons are in a large size format and have the macro nickname
listed below each icon.
Small Icons
Display the icons associated with each macro in a smaller size format. The macro nickname is listed to the right of each
icon. Scroll up or down to view the entire list, if you have sufficient macros to require scrolling.
List
This is similar to the small icon option. Scroll horizontally to view the entire list of macros, if you have sufficient macros to
require scrolling.
Details
Display details about each macro. View four columns displaying the Macro Nickname, primary Activation, Scope and
macro Modified date.
Macro Express - Explorer > Options > View
Appearance
You can change the look of Macro Express by clicking on Options | Preferences | Appearance. This function also includes
options for displaying various program functions.
Explorer
Grid Font
Open a font dialog to select a different font type, style, size and color and alter the appearance of the text in the Macro
Explorer columns.
Category Font
Open a font dialog to select a different font type, style, size and color for the Categories displayed in the Macro Explorer.
Show Category Icons
Display folder icons next to each category in the Category field of the Macro Explorer.
Show Macro Icons
Display icons next to each macro defined in the Macro Explorer.
Show Date and Time
Show the current date and time at the bottom of the program window. This information is taken from the Windows
system clock.
Show Categories
Select to display the column listing macro categories in the Macro Explorer.
Show Gridlines
Choose to show the grid lines between each macro displayed in the Macro Explorer.
Show Actions Bar
Display the Actions bar on the left side of the Macro Explorer window. If you choose not to display the bar, you will need
to click on the menu commands to navigate through the program.
Menu Style
Select different styles for the menu bars and drop down menus in the program. Select from Standard, Enhanced, Flat,
Office 11 or XP styles. The XP menu look is set as the default.
Menu Animation
This option allows you to select different ways to display the drop down menus in the program. Select from Slide, Unfold,
Random, Fade or None (which simply displays the menu without animation). The default option is set to None.
Scripting Editor
Show Script Command Categories
Display the list of commands sorted into categories. Not selected, the commands will display individually and not be
segregated into categories.
Show Icons
Choose to have icons displayed for each category and again on each line of the macro script. An icon is associated with
each command in the script.
System Tray
Show in System Tray
Place a Macro Express icon in the Windows system tray or notification area when the Macro Express Player is active. The
icon primarily serves two purposes. First, it alerts you to the fact that Macro Express is running in the background.
Second, clicking on the icon with the left mouse button will activate the Macro Express Editor and bring it to the
foreground. Right clicking on the icon opens a small menu that allows you to open the editor, access the help file, access
tools, suspend the program, shut down the program, etc.
Completely Hide
This mode completely hides the macro player. In the absence of a system tray icon, you will need to use the system
macros that are defined for activating the editor and terminating the player. Ctrl + Alt + Shift + W is the default hotkey
to open the editor.
Show Running Icon
Display the running man icon in the system tray during the execution of a macro.
Show Recording Icon
Display the movie camera icon the system tray during the recording (capturing) of a macro.
Backup Preferences
This option allows you to set up automatic backups of your macro data file. The data is backed up when you close the
Macro Express Player. The file that you currently have loaded when closing the program will be the macro file that is
backed up. This option allows you to select the frequency of the backups, the number of backups to store and where to
save the backup files.
Schedule
Determine the frequency of backups.
Backup when program starts
A backup of the data is created when the Macro Express Player is started.
Backup when program closes
This creates a backup of the data every time that the Macro Express Player is closed.
Backup when editor closes
A data backup file is created each time one of the Macro Express editor windows closes. This includes the Script
Editor, the Menu Builder, the Quick Wizard and the Macro Express - Explorer window.
Every ___ Days
This options provides flexibility for creating a backup schedule. Select the number of days between backups. If the
number 2 is entered, then a backup will run every two days. Choose to have the backups run when the program
starts, closes or select a specific time of the day.
No Backup
To not schedule any backups, leave the four options unchecked. Manually back up the macro file by opening the
Macro Express - Explorer window and clicking on File | Backup. See the Backing Up Macros topic for more
information.
Options
Display Message While Backing Up
With this option selected a message will appear when you shut down asking if you would like to continue with the
backup of your file. This will only appear when you select to have a backup created.
Backup Location
Specify the location of the backup files from the drop down list. Select the number of backup copies to keep.
Backup to the Same Folder as the Macro File
The backup file is created and saved into the same folder where the original macro file is currently located.
Backup to a Specific Path
Use this option to store the backups in a folder other than the one where the original file is located.
Backup Path
If using the Backup to a Specific Path option, click on the Browse button to determine the location where the
backup file will be stored. Or type in the full file path in the edit field.
Note: To manually back up the macro file at any time, open the Macro Express Explorer window and click on File |
Backup.
Caching
Macro Caching
The Caching option allows you to decide how much memory you want to allocate for storing macros in memory. The
default setting is 1024 KB or about one megabyte of memory allocation. In most cases this should be sufficient. This
option is to allow for a quicker response time. The caching will help speed the response time of the macros.
When disabled, there will not be an allocation to memory for macros. This requires the program to first access the hard
drive to locate the macro and then run it.
Capture Settings
Macro Express allows you to record macros. It does this by capturing what you do and saving this information for later
playback as a macro. Options are available to determine what you want to capture and how much. You can optionally
capture keystrokes, mouse movements and clicks and actual time between actions.
There are three methods for starting a macro recording. One is to select the activation (hotkey, shortkey, etc.) you wish
to assign to the macro before recording. Another is to select this information after recording the macro. The last option is
to use the Capture Quick Wizard.
When running Macro Express, you will note that there are six hotkeys automatically assigned. These six hotkeys are
System hotkeys (Scope indicates SYSTEM). One of these System hotkeys is called Start / Stop Capture and is defined as
CTRL+ALT+SHIFT+X by default. Pressing CTRL+ALT+SHIFT+X will start the recording of a macro and pressing it a
second time will stop the recording. The actual hotkey used here can be changed to anything available in Macro Express
(i.e. you can make ALT+F1 be the Start / Stop Capture hotkey).
When the recording stops, a Capture Complete window opens allowing you to assign what you have captured to a
hotkey, ShortKey or other activation. While recording, a "movie camera" icon appears in the Windows system tray to
indicate that you are recording. You can also right click on this icon to stop recording. To not have the camera display, go
to Options | Preferences | Appearance.
Before recording a macro using this System hotkey, you want to make sure that the default settings have been defined.
Select Options | Preferences | Capture from the Macro Explorer to define your capture settings. These are the default
settings when the System Start / Stop Capture hotkey is used. These are also the default settings that appear when
doing a macro recording by assigning a hotkey first.
Scope
The Global scope allows for the playback of the macro into any Windows program. The Program scope indicates that the
recorded macro will only play back in the program it is recorded in. You will only want to use the "program" option if you
are recording all of your macro in the same program. If you choose the "program" option and switch programs while
recording, then the playback of the macro will have unpredictable results.
Capture Keystrokes
Record all keystrokes made during the capture process.
Capture At
This option refers to how fast the macro will play back in relation to your recording speed.
Actual Speed - Play back at the same speed that you recorded the macro. Any hesitations, etc. will play at the
same speed as you recorded.
Half Speed - Slow down the macro playback to half of the recording speed.
Double Speed - Speed up the macro playback to twice the actual recording speed.
Quadruple Speed - Speed up the macro playback to four times the actual recording speed.
Fastest Speed (no delays) - Play back the macro with no hesitations, delays, etc. Remove the check next to the
Capture At box to select this option. Caution: Selecting this option may cause the macro to play back too fast
and throw off the timing of the macro.
After the capture is complete, you can modify the playback speed of the macro in the Scripting Editor or Direct Editor.
Use the Macro Playback Speed command to do this.
Prompt on Capture
Display a prompt message to indicate that the capture is starting.
Delay Preferences
Dialogs
Macro Express may have various warning messages appear, along with instructions for how to proceed. The Dialogs
option allows you to turn off these messages or allow them to be displayed when necessary. Click on Options |
Preferences | Dialogs to change these settings.
Prompt to link .MEX and .MXE files if not linked with Macro Express (Not available in Windows Vista
or Later)
A file association has been created for files containing a group of macros (*.MEX file) and for files that are macros (*.MXE
file). If for some reason a .mex or .mxe file is not linked to Macro Express, a message will prompt you asking if you want
to link the files to the program. This message will appear when you first start Macro Express.
This warning message will let you know that you are loading a Read Only macro (.mex) file. If you happen to load a
macro file (through File | Open Macro File, File | Reopen, etc.) that has been set to a read only status, you would not be
able to edit any of the macros. It's also possible that some of the macros would not run correctly. The warning message
gives you several options - Load the file anyway, have Macro Express turn off the read only option to the file, select a
different file or cancel altogether.
Email Settings
If you plan to use email functions in macros, you will need to set up default email information. Click on Options |
Preferences | Email Settings to enable the email functions of Macro Express.
Macro Express Explorer > Options > Preferences > Email Settings
SMTP Server
The SMTP Server is what allows you to send email over the Internet. You will need to obtain this information from your
Internet email provider or you may obtain it from the configuration section of your email program.
Host - The "Host" value may appear as a series of numbers and periods such as 192.168.0.1 or as a set of characters
looking something like a web site name such as mail.myisp.com.
Port - The port number is almost always 25. When in doubt, set this value to 25.
Server Requires Authentication
The email provider may require use of SMTP Server Authentication. If so, select this option and insert the login and
password information in the appropriate fields. If authentication is not required, then leave this option unchecked.
Other
Keep Email Log
Select this option to maintain a log of all email sent via Macro Express.
View Log
View the log of email sent by clicking on the "View Log" button.
Email Recipients
This option displays a list of the names and email addresses that you can choose from when creating email macros. You
can add names, make changes to existing names or delete names from the list. Click on Options | Preferences | Email
Recipients to access this option. The Send Email command also has an option for editing the list of email recipients.
Macro Express Explorer > Options > Preferences > Email Recipients
Add
Click on the Add button to open the Email Recipient Maintenance window shown below. The two fields will be blank. Just
enter the person's name and email address and click OK to add that person to the list.
Options > Preferences > Email Recipients > Add or Modify Button
Modify
If someone's email address has changed or you need to change other information, highlight that person's name from the
list and click on the modify button. Their name and email address will be displayed in the Email Recipient Maintenance
window shown above. You can edit this information and press OK to save the changes.
Delete
If you want to remove a person from the email recipient list, highlight that person's name and click on the delete button.
The name will be removed from your list.
File Paths
Click on Options | Preferences | File Paths to set the following program file paths.
Macro Express Explorer > Options > Preferences > File Paths
External Editor
In addition to the built in Scripting and Direct Editors, Macro Express allows you to use an External Editor to edit your
macros. Enter the path name of the external editor's executable file here. Entering a correct path name here causes your
editor's icon to appear in the Macro Explorer Action bar.
Miscellaneous
Activation
Some of the newer Microsoft Windows versions have been changed to restrict when a program, like Macro Express, can
set another program to become the foreground window. This can cause a macro containing an Activate Window
command to not work. A symptom of this problem is when, as a result of an Activate Window command, the window
doesn't activate and the task bar icon blinks until the user clicks on it. One reason Microsoft made this change is to
prevent one program from popping up in the middle of entering input into another program.
The "Send HotKey in Window Activation" and "Activate Window Attach Thread Input" options affect how the Activate
Window commands work. If you are having trouble with the Activate Window commands you may want to try turning
these options on or off.
Send HotKey in Window Activation
The "Send HotKey in Window Activation" option causes Windows to send a keystroke to Macro Express before
Activating a window. This usually causes Windows to allow Macro Express to Activate another program.
The keystroke sent to Macro Express is hidden. However, the keystroke can cause the activated program to react
differently than expected. For example, when you activate a program with the "Send HotKey in Window Activation"
option turned off, the activated program may have a specific field highlighted. With this option on, the field in that
program may no longer be highlighted when the program is activated.
Attach Thread Input in Window Activation
The "Attach Thread Input in Window Activation" option is on by default for Windows 2000 and later and off for
Windows 9x. If you are having trouble with an Activate Window command you may want to try turning this option on
or off.
All Users Use the Same Settings (Not available in Windows Vista or Later)
When this option is checked all users on the computer will use the same Preference settings.
Note: Windows can be configured to allow different users to log into a single computer. Some versions of Windows
require a user to log in. Normally only one user is logged in at a time. One or more login names have access to the entire
computer and are said to have administrative access rights. Other login names do not have administrative access rights.
These login names have restrictions about what they can change on the computer.
To use this option you need to have Read, Write, Create and Modify access rights to the
HKEY_LOCAL_MACHINE\Software\Insight Software Solutions\Macro Express section of the registry. If you do not have
access rights to this area of the registry then this option will not be visible. The administrator would need to grant these
access rights to users on Windows NT, 2000, XP or later machines.
Normally you do not have to worry about this for Windows 95, 98 or ME since by default all users have administrative
access rights. You will need to consider this issue if you are using Windows NT, 2000, XP or later and have more than
one login name.
Advanced button
Click on the Advanced button to find additional program settings. These include options for suppressing the macro abort
messages, support for dead keys, and others.
Macro Express Explorer > Options > Preferences > Miscellaneous > Advanced Button
Deadkey Patch
Enabling this option fixes a problem displaying capital letters with diacritic marks such as and . This
option may cause shortkey activated macros to work less reliably.
Network
Macro Express can be set up to run over a network with no ill effects. The options for making sure Macro Express runs
smoothly over a network are accessed via the Options | Preferences | Network menu command.
Passwords
Use this option to password protect your macro (.mex) file or to not allow any macros to run until a proper password has
been entered. These password options may be found by clicking on Options | Preferences | Passwords.
Password on Edit
Place a check in the box and click on the Change button to set up a password. With the password information set up, you
will be required to enter your password before the Macro Express Editor will be displayed. This is one way to prevent
others from viewing your macros or being able to alter them.
Password on Run
Place a check in the box and click on the Change button to set up a password. With this password information set up,
you will be required to input your password before the Macro Express Player will run. Essentially, Macro Express will not
run until the correct password has been entered.
Related Topics
Encrypted Text
Password Command
Password Protect a Macro
Playback
include Log Error commands in each individual macro or select the Use Log File option in the Properties tab of the
Scripting Editor for each macro.
The Log File may become quite large over time, depending on settings, etc. The large file size may affect the
performance of certain aspects of Macro Express. Clearing the file or limiting the file size will prevent this situation.
Scheduler
Alarm
You can set the Alarm to alert you with the playback of a wave (.wav) file, when a scheduled macro is about to execute.
This screen is found by clicking on Options | Preferences | Scheduler. Select Wave File and either type in the path name
where the wave file is found or click on the Browse button to browse for the file. Click on the Test button to play the
wave file and make sure you selected the appropriate file. The default setting is to not have any wave file selected.
Wait for wave file to finish
Allow the wave file to finish playing before continuing with the macro. Once it has finished the macro runs.
Timer Interval
You can specify the interval in seconds for how often Macro Express will check to see if a scheduled macro is ready to
execute. The setting may be from 1 to every 59 seconds. If you have not created any scheduled macros or none are
active, then Macro Express will shut off the timer. You can activate this window by clicking on Options | Preferences |
Scheduler. The default setting is to check for scheduled macros every 10 seconds.
Disable Screen Saver when using Scheduled Macros
Screen Savers will prevent a scheduled macro from running. This option will not allow a screen saver to start if Macro
Express is running and if there are any active scheduled macros in the macro file currently in use.
Shortkeys
A shortkey is a set of characters such as abc, myname, etc. When the characters are typed into an application the macro
runs. Click on Options | Preferences | Shortkeys to define the settings.
want the replacement to take place because you were typing Fred and not red. However, if you were to key in the
word red preceded by a blank space, the replacement would take place. Why? Because a blank space is not valid as
part of a shortkey.
Non Solitary Usage
The non solitary usage option (leaving the Solitary Usage option unchecked) indicates that a shortkey will be
recognized whenever the short key text is keyed in even if it is part of another word. Let's look at the example above
to illustrate what this means.
Assume your shortkey was named red and replacement text was a bright color. If you were to key in the word Fred,
the replacement would take place and you would end up with "Fa bright color".
Normally, you would use the "non solitary usage" mode and add prefix keys to ensure that you did not get an
accidental replacement.
Use Suffix Keys
Another alternative is to use the Suffix Keys option. With this option activated, you would just type in your short key and
then press down either the Space Bar or the Enter Key.
Use Punctuation Characters
Punctuation keys such as . , : ; ? ! ) ' ] " ` and - may also be used as a suffix key for a shortkey, if you have the
Include Punctuation Chars box checked. If your shortkey was set to test, type the word test while in another
Windows application and press either the Space Bar, Enter Key or one of the punctuation keys listed above so that
the text replacement would occur.
Retype Suffix Key
The Retype Suffix Key option, when checked, will add your suffix key (Enter, Space or punctuation keys) to the end
of your replacement text. This option is mainly for those who use shortkeys as a simple text replacement in writing
documents.
Let's use the example of a shortkey "test" with the replacement text of "This is a test" (without the quotation marks).
In your word processor, if you were to type in "test" and use the space bar as the trigger, the replacement text
would appear and the cursor would move over one space at the end of the text. Or if you typed "test" and used the ?
to activate the shortkey, the replacement text would appear with a ? at the end of the text. If this option is not
checked, your suffix key will not be added to the end of the replacement text.
If you choose not to use a prefix key, you can use the suffix key and press the space bar,
the enter key or a suffix character of . , : ; ? ! or - after typing the shortkey to activate the
shortkey.
Note: Pressing down the CTRL or ALT key is detected by the program, when using the Shortkeys option, and is
interpreted as a key being pressed. Therefore, if the ALT or CTRL key is pressed in the middle of a shortkey that you are
typing, the shortkey will not be recognized and the replacement will not be made.
Case Sensitive
Mike
Mike
mike
tagline
tagline
TaGLIne
Address
Address
addreSS
None
Neither of the above cases will apply with this option checked.
Do Not Remove Keystrokes Typed
This option instructs the shortkey not to erase itself after being typed in. Normally, backspaces are issued to remove the
shortkey from the screen before the macro is executed. When using shortkeys in non text usage programs, this may not
be desirable to have "backspaces" issued. For example, using a shortkey in Internet Explorer where focus is not on an
edit box, will cause the "back" button to be pressed numerous times due to the backspaces being issued. This option will
prevent this from happening.
Startup
Mouse Locator
The Mouse Locator provides the X and Y coordinates of the mouse relative to the entire screen or the window that is
active. This is useful when wanting to include mouse clicks in macro scripts. You will know the exact position of the
mouse in order to plot those coordinates into a macro. Just plug in the coordinates when using the Mouse Commands
found in the Scripting Editor or Direct Editor. (This function is not necessary if using the Capture option.) You can also
activate this window by clicking on the Launch Mouse Locator button found on the Mouse Commands window when the
Mouse Move option has been highlighted. Or you can launch this from the Get Pixel Color window.
If the Mouse Locator window pops up in an area of your screen that covers important data, click on the window, hold the
left mouse button down on the blue bar at the top of the window and drag to another area of your screen.
Screen Position
The set of numbers directly under Screen Position lists the position of the mouse relative to your computer screen. As
you move the mouse, you will notice the numbers changing in relation to the mouse cursor position. The number to the
left is the X coordinate, or how many pixels from the left edge of the screen. The number on the right is the Y
coordinate, or how many pixels the mouse is positioned from the top of the screen.
Active Window
The set of numbers directly under Active Window lists the position of the mouse relative to the active window or the
window that has the focus. When first activating the Mouse Locator window, it will have the focus. Clicking on a window
outside of the Mouse Locator gives focus to that window. The Mouse Locator window will remain on top so that you can
read the coordinates for the window you want to use. As you move the mouse, you will notice the numbers changing in
relation to the mouse position. The number to the left is the X coordinate, or how many pixels the mouse is positioned
from the left edge of the active window. The number on the right is the Y coordinate, or how many pixels the mouse is
positioned from the top of the active window.
Pixel Color
This option displays the color of the pixel that the mouse is pointing to. Windows assigns a numeric value to each color,
normally from 6 to 8 digits in length. The pixel color is used with the Get Pixel Color command.
Remap Keyboard
The Remap Keyboard option allows you to remap many of the keys on your keyboard. For instance you could remap the
$ key so that every time you press the $ key, the symbol will be displayed in the application you are running. (This
option is not available in Windows Vista or later.)
Selecting the Tools | Remap Keyboard from the Macro Explorer pane will activate the Remap Keyboard window. There
are four columns of keys which may be remapped: 1: Upper case - all letters of the alphabet capitalized, 2: Lower case all letters of the alphabet in lower case, 3: Punctuation - punctuation and symbol keys found on the keyboard, and 4:
Numeric - the numbers from 0-9.
Note: Click on Options | Preferences | Playback to disable the Remap Keyboard function in Macro Express.
Remap Specifications
Keys that can be remapped (changed)
Lower Case "A" through "Z"
Upper Case (Shifted) "A" through "Z"
Numerics "0" through "9"
32 Punctuation Keys (period, asterisk, etc)
Keys that can be assigned to remapped key
The standard Windows ANSI character set including:
Normal ASCII characters including A through Z, a through z, 0 through 9 and
numerous punctuation keys such as . , * # ! and dozens more.
Western European Language characters including and
dozens more
Western European Language punctuation such as
Math Symbols such as
Currency Symbols such as $
Typographical Symbols such as
Legal Symbols such as
And a variety of others found in the ANSI set including some of the following
Double clicking on any of the letters or symbols from the four columns displayed on the Remap Keyboard window opens
a display of all symbols available, as shown above.
The Error Log Viewer displays a list of error messages recorded by Macro Express. This is a list of errors as a result of the
error tracking messages inserted into macros. You can access this viewer to take a look at all the logged errors.
The Clear Log button will remove all entries from this log.
The Editors
You have a choice of three different ways to edit a macro: the Scripting Editor, the Direct Editor and an External Editor.
Each of these editors has advantages. What you are working on will determine which editor you may want to use.
Scripting Editor
Building Macros: For longer more complicated macros, the Scripting Editor organizes the commands so that
they are simpler to read. One command per line makes it easier to determine the status of your macro. It is also
much simpler to move the commands around in the script.
Editing Macros: Generally speaking, if you want to edit a macro, the Scripting Editor would be simpler to use.
Each line of the script only contains a single command. This makes it easier to step through the macro and make
any changes.
Direct Editor
Symbols and Special Keys: This is the quickest method for inserting keypresses such as Alt, Tab, Ctrl, etc. You
can easily insert a Ctrl Key Down, the letter A, and Ctrl Key Up without selecting the commands from the
command list. The same applies with the insertion of Variables or Symbols for playback.
Text Entry: With the Direct Editor you can enter text directly into the Macro Text edit field. You don't need to
select from the commands first. You can copy a long string of text from the clipboard and paste into this field.
External Editor
Some editing tasks may be easier using an external editor, especially if you have a favorite text editor. Macro Express
allows you to use any text editor. To enable this option you need to enter the path name of your editor's executable file
in the File Paths preference settings. If the path name is correctly entered, your editor's icon will appear in the Macro
Explorer Action bar.
Note: You may only use a text editor as your External Editor, not a word processor. A text editor writes files in ASCII
text format while a word processor writes files in proprietary formats. Also, by using a text editor you will be editing a
macro in the ASCII representation of the macro. This is the same format used in the Direct Editor.
Scripting Editor
Use the Scripting Editor to build a macro or to edit an already created macro. The Scripting Editor is divided into two
main pieces, the Commands and the Macro Script. Select from the commands what you want to insert into the Macro
Script. The Macro Script is written so that the top line in the script is the first command that will play back in the macro.
The Script tab contains the list of commands and the macro script. Additional information about the macro can be viewed
or edited in the Properties, Scope, Security and Notes tabs.
From the Macro Explorer, click on the Scripting Editor icon to open the Scripting Editor. Or double click on a defined
macro in the list of macros. This will open the Scripting Editor (if you have it defined as your Default Editor) and allow
you to view or edit the macro contents.
Commands
This area lists all of the commands that can be used in Macro Express. To insert a command into the script, scroll until
you find the command category you want. Click on the category to expand the list and display all of the commands
available for that category. Double click on that command. This will normally display a window where you can define
what you want the command to do. Then click OK on the new window to insert this command into the Macro Script.
Double clicking on some of the commands that don't require any defining, will insert the command directly into the Macro
Script, without an intermediary window.
You may also customize the list of commands. You can add, rename or delete command categories. All commands may
be moved from one category to another or simply not displayed, to suit personal preference.
Search For Command
Use this function to help locate a specific command within the Commands list. If you were to look for the Password
Protection command, enter "pas" without the quotes. This will highlight the Password Protection command within the
list of commands. You'll also notice that entering the "p" and the "a" will first display the Pause command. Adding the
"s" moves the highlight to the Password Protection command.
Macro Script
This area lists each of the commands that the macro will perform. The macro will play back sequentially through the list
beginning with the top item. You can edit any of the commands in the list by double clicking on the line of the script that
you want to edit.
There is also a right mouse click context menu available for the items in the Macro Script. Highlight the line or lines of the
script that you want and then right mouse click. A context menu appears with a variety of options. These options are also
available through the Scripting Editor menus.
Macro Script Navigation
The buttons shown below are to help with the positioning and other functions of the commands listed in the Macro
Script.
Insert Before
This button will insert the macro command that you have selected from the Commands list above or before the
command that is highlighted in the Macro Script edit box. If you do not have a script item highlighted in the edit box,
the macro command will be placed as the first or uppermost item in the script.
Insert After
This button will insert the macro command you have selected from the Commands list below or after the script item
that is highlighted in the Macro Script edit box. If you do not have a script item highlighted in the edit box, the macro
will be placed below or after the first or uppermost item in the script.
Add to End
This button will insert the macro command you have selected from the Commands list as the last item in the script,
below all other items.
Move Up
This arrow will move the highlighted command up one spot in the Macro Script, ahead of other script items already in
place. Each click will move the command up one space in the script. You may also highlight several consecutive lines
in the script and move them all at the same time.
Move Down
This arrow will move the highlighted command down one spot in the edit box, beneath the other script items already
in place. Each click will move the command down one space in the script. You may also highlight several
consecutive lines in the script and move them all at the same time.
Disable
Highlight a line in the Macro Script and then click on this button. It will disable this line in the script, so that it will not
play during macro playback. There will be a red line drawn through the disabled script, for a quick visual
acknowledgement.
Enable
Highlighting a line in the Macro Script that is disabled will display this symbol. Click on the button to enable the line
in the script. This will allow this line of the macro to play during macro playback.
Duplicate
Highlight one or more lines of the macro script. Then click on the Duplicate button. This will add another copy of the
command line or lines to the script. This is essentially a one step method for copy and paste. You may also press
CTRL D instead of clicking on the Duplicate button.
Related Topics
Scripting Editor Menus
Scripting vs Direct Editor Comparison
Direct Editor
Use the Direct Editor to build a macro or to edit an already created macro. The Direct Editor is divided into three main
pieces, the Commands, the Macro Text and Edit Buttons. Select from the commands what you want to insert into the
Macro Text. The Macro Text reads from left to right so that the top line in the text, starting at the left, is the first
command that will play back in the macro.
The Editor tab contains the list of commands and the macro text. Additional information about the macro can be viewed
or edited in the Properties, Scope, Security and Notes tabs.
From the Macro Explorer, click on the Direct Editor icon to open the Direct Editor. Or double click on a defined macro in
the list of macros. This will open the Direct Editor (if you have it defined as your Default Editor) and allow you to view or
edit the macro contents.
Commands
This area lists all of the commands that can be used in Macro Express. To insert a command into the script, scroll until
you find the command category you want. Click on the category to expand the list and display all of the commands
available for that category. Double click on the command you want, to display a window where you can define what you
want the command to do. Then click OK on the new window to insert this command into the Macro Text. Double clicking
on some of the commands that don't require any defining, will insert the command directly into the Macro Text, without
an intermediary window.
You may also customize the list of commands. You can add, rename or delete command categories. All commands may
be moved from one category to another, to suit personal preference.
Macro Text
This area lists each of the commands that the macro will perform. The macro will play back sequentially through the text
beginning at the upper left and reading left to right, down through the text. To insert a command into the text, place
your mouse cursor where you want the command to be positioned. Then select your command and it will be inserted to
the right of the mouse cursor in the Macro Text field.
Special Keys and the F1 - F12 Keys
Click on any of the entries (keys) in the yellow box area. For example, double clicking on the Alt key will place the Alt
command into the Macro Text field. The Alt key will play back in the macro at that point in the script. Or Tab to the
entry you want and press Enter. Clicking on the F1 - F12 keys will input these keystrokes in the Macro Text field and
will play back in the macro.
Variables
To select a variable to play back in a macro, click on the arrow next to Variable. Select the variable you want and
then click on the Insert button. This will place %T1% (if T1 is the variable you selected) into the Macro Text at the
location where the cursor is positioned. The value for the variable will be entered into the application that the macro
is playing back in.
Misc Keys
Miscellaneous keystrokes such as the Print Screen, Win Key, etc. can be inserted by using the "Misc Keys" list box. To
select a miscellaneous key, click on the arrow next to Misc Keys. Select the miscellaneous key you want from the
drop down list and then click on the Insert button. This will place the Miscellaneous Key into the Macro Text at the
location where the cursor is positioned.
Symbols
To insert a symbol into the Macro Text click on the Symbols button. A window with a number of symbols will appear.
Double click on the symbol you want and it will be inserted into the Macro Text. Or highlight the symbol and click on
the OK button. You may also use this function to insert Alt Key Sequences.
Related Topics
Direct Editor Menus
Scripting vs Direct Editor Comparison
Below are a few things to be aware of when writing macros in the Direct Editor.
1) Some commands require a separator character in a specific location. Be sure to include the separator character and
do not delete this character. The separator character is displayed as a solid vertical bar. You will see several examples of
this in the image above, mostly after each of the Text Type commands.
When entering text into the Direct Editor, you may enter the text directly without any special coding. But, after the macro
is saved and you open the Direct Editor again, the text will be formatted as in the example image above - with
<TEXTTYPE: Body of text (separator character)>.
2) If one command does not have the correct syntax, commands that follow may be treated incorrectly. For example, if
you leave the separator character out of a Text Type command, then Macro Express will treat all commands that follow
as part of the Text Type command, either until the end of the macro or until another separator character is found in a
subsequent command.
The separator character simply informs Macro Express that the end of one command has been reached, and that a new
command is starting.
3) The format of the commands in the Direct Editor is not documented outside of Macro Express. To find the correct
syntax, enter a command or several commands using the Scripting Editor and look at the result in the Direct Editor.
View
This menu provides a way to maneuver between the major functions of Macro Express. You can either click on the menu
options or use the keyboard equivalents if you don't want to use the mouse. To use the keyboard equivalents, press Alt +
V to display the View menu. Then press the underlined letter of the option you want. For example, if you had the
Scripting Editor open and wanted to go to the Direct Editor you would press Alt + V + D. The other method to navigate is
to click on the icon in the left hand toolbar.
Options
Command Insertion - (Scripting Editor Only)
Instead of using the insert and add arrows located on the Scripting Editor pane, you can set a default for where you
like the commands to be inserted into the script. You can select one of the three options below as your default.
To add or remove a command from a category follow these steps. Click on the Use Custom Categories option.
Highlight the category to be modified. To add a command to the category, highlight that command from the list in
the right hand column of the window. To remove a command from the category, click on one of the highlighted
commands from the list in the right hand column. This will remove the highlight and the command will no longer be
associated with that category. Click OK to save your changes or just click on another category and the changes will
be saved.
Preferences
These options will allow you a number of options for customizing Macro Express to your own tastes. The options
include Appearance, Caching, Capture, Dialogs, Email Defaults, Email Recipients, File Paths, Miscellaneous, Network,
Passwords, Scheduler, Shortkey Preferences and Startup.
Tools
Mouse Locator
Remap Keyboard (Not applicable on Windows Vista or later)
Error Log Viewer
Restore Program Defaults
Restore File Associations (Not applicable on Windows Vista or later)
Restore Keyboard Hooks
Help
These options launch the Help file, other support documents or support pages on our website.
Action
Ctrl+Up Arrow
Ctrl+Down Arrow
Ctrl+X
Cut
Ctrl+C
Copy
Ctrl+V
Paste
Ctrl+A
Select All
Ctrl+B
Toggle Breakpoint
Ctrl+F
F3
Find Again
F9
Ctrl+S
Save
Ctrl+P
Alt+Left Arrow
Alt+Down Arrow
Alt+Right Arrow
Action
Delete
Delete Command
Enter
Modify Command
F8
Ctrl+N
Enable/Disable Command
Ctrl+K
Ctrl+I
Ctrl+E
Ctrl+D
Ctrl+G
Goto Line
Action
Delete
Delete a character
Ctrl+R
Find/Replace
Print Script
This option will print the macro script - the contents of the macro.
Printer Font
Allows you to select the font size, type, color, etc. for the printing of the macro script.
Printer Setup
Allows you to select the printer and other print options for printing the macro script.
Example
Let's say that you have a macro script of 10 lines. You need to insert a Text Type
command between lines 5 and 6. To do this, first highlight line number 6 in the script.
Then expand the Text Type category and highlight the Text Type command. Click on Edit
| Insert Command Before or the CTRL K shortcut. (The other alternative is to click on the
blue Insert Before button.) This will activate the Text Type window. Enter your text and
click OK. The Text Type command will be inserted before line 6 in your macro script.
Insert Command Before - (Scripting Editor Only) With this option selected, any commands you add to the script
will be inserted to the line above the cursor. Press Ctrl K or click through the menu to activate this option.
Insert Command After - (Scripting Editor Only) With this option selected, any commands you add to the script
will be inserted to the line below the cursor. Press Ctrl I or click through the menu to activate this option.
Add Command to End - (Scripting Editor Only) With this option selected, any commands you add to the script will
be inserted as the last line of the macro script. Press Ctrl E or click through the menu to activate this option.
Cut
Standard Windows cut command. Removes the item from the application and saves it to the Windows clipboard.
Copy
Standard copy to Windows clipboard command.
Paste
Standard Paste from Windows clipboard command.
Find
You can use the Find command to locate a key word in the replacement text of the macro you are modifying. Click on
Edit | Find or Ctrl F to activate the Find window as shown below. Type in the word that you are looking for and click the
Find Next button. The search will scan your macro for a potential match. If one is found, the first item located will be
highlighted. If no match is found, a message will display indicating that no match was found.
Scripting Editor or Direct Editor > Press F3 > or Edit > Find
Find Again
Click on Edit | Find Again or press the F3 key to look for the next item that matches your search criteria as discussed
above. You can continue using the Find Again feature until a message displays advising that the entire replacement text
has been searched and no more matches have been found.
Direct Editor > Press Ctrl + R > or Edit > Search and Replace
Select All
This option will highlight the entire macro contents of either the macro script in the Scripting Editor or macro text in the
Direct Editor.
Breakpoints - This option will display any lines that have been assigned as a breakpoint in the macro.
Variable Values - This option will display a grid listing any values assigned to Text, Integer or Decimal variables
used in your macro.
Properties
Macro Express - Explorer > Direct or Scripting Editor Button > Properties tab
From the Macro Explorer, click on the Scripting Editor icon to open the Scripting Editor or click on the Direct Editor icon to
open the Direct Editor. Or double click on a defined macro in the list of macros to open your Default Editor. Then click on
the Properties tab to make your selections.
General
Nickname
In the nickname field, you may optionally enter a name that will help remind you what the macro does. This field will
hold up to 50 characters. The nickname is displayed in the Macro Explorer and is required if using commands such as
Macro Run, Macro Disable, Macro Enable and Macro Delete.
Rename a Macro
If editing a macro later, you can overwrite the macro name in the nickname field to change it to something else.
Icon
You can associate an icon with this macro. Click on the Change button to display the Select an Icon window.
Highlight the icon that you want and click on the OK button to load in the icon. Or you can browse through your
system to load in other icons already on your computer. The primary use of this icon is to display it in the Popup
Menu or Floating Menu. A left click on the icon from the Popup Menu or Floating Menu will execute the macro. This
icon will also be placed on your desktop when using the Place on Desktop option.
Last Modified
This displays the date that the macro was last modified and changes were saved.
Active
This check box shows whether the macro has been disabled or is still an active macro. A check in the box signifies
that the macro is enabled (active).
Use Log File
The Log File option captures any error logging that you may be tracking in the macro. It also captures the start and
stop time when the macro is run. The information is displayed in the Log Tab of the Properties window.
The Log File may become quite large over time, depending on settings, etc. The large file size may affect the
performance of certain aspects of Macro Express. Clearing the file or limiting its size will prevent this situation.
Activation
Normally the activation of a macro is assigned when you first create the macro. However, you can use this screen to
change the macro activation or assign more than one activation method to a macro. Just select the options that you
want.
Default Activation
If you have selected more than one method for activating a macro, the Default Activation is the method that will be
displayed in the Macro Explorer. For example, if you have a macro assigned to the hotkey "Ctrl J" and to the shortkey
"email", "Ctrl J" would be displayed in the Activation column of the Macro Explorer if it was selected as the Default
Activation. The first Activation selected is defined as the Default.
HotKey
A hotkey is a combination of keys that, when pressed together, will play back a macro. Macro Express allows hotkey
combinations of a single key up to four keys pressed simultaneously.
Schedule
Scheduled Macros are macros that can be scheduled to play back at a specific time. Just set the schedule for the
macro and it will play back unattended at the designated time. No need to press a hotkey or click on an icon. The
macro will play back at the time you specified. In order for your macro to execute, Macro Express must be running in
the background.
Shortkey
A shortkey is a set of characters such as abc, myname, etc. When the characters are typed into an application, the
macro runs.
Window Title
Using this option will instruct the macro to execute any time the Window Title you specify has focus. In other words,
once the window is activated the macro will play back. The title of the window is that which appears in the caption
bar of a window. Macro Express examines all Window Titles running on the computer in an attempt to find a match.
The Window Title does not need to be an exact match. A partial match will work. For example, if you wanted to
switch to the Windows Notepad program, you could use "notepad" or "notep". This is particularly useful as some
Window Titles change based on whether a given file is open. Case sensitivity is not required - "NOTepad" will work as
well as "notepad".
Mouse Click
You can create macros to run when the mouse button is clicked. To do this, first select the Mouse Click option to
display the mouse options shown above. Macro activation can be assigned to the Left, Middle or Right mouse
buttons.
Control
A control refers to identifiable parts of a specific application window. This may include such things as a button, an
edit box, a list box, a window title bar or others. Pressing the Get Control button will launch the Capture Window
Control utility so that you can assign the activation to a Control. The macro will play back when the control is active
or the window with the control is active.
Scope
Essentially, scope refers to which program(s) will allow the macro to activate. From the Macro Explorer, click on the
Scripting Editor icon to open the Scripting Editor or click on the Direct Editor icon to open the Direct Editor. Or double
click on a defined macro in the list of macros to open your Default Editor. Then click on the Scope tab to make your
selections.
Macro Express - Explorer > Direct or Scripting Editor Button > Scope tab
Global
With this option selected, a macro will play back in any Windows application.
Global Except
This option will allow the macro to play back in all Windows applications, except the one or more programs you select.
Click on the Select button to activate the Select Programs window. You can specify the program(s) that will not accept
your macro in this window.
Select Program(s)
You can view and look at all programs that are currently running on your computer. If the program you want is
currently running, you can scroll through the list to find it. Highlight the program you want and click on the Add
button. This will place the .exe name in the right hand column field. You may select more than one .exe file to have
excluded.
Selected Program(s)
In this field you can type in the name of the .exe file and press the Add button to have the file excluded from use
with the macro.
Select From a List of Installed Programs
Or if the program you want is not listed as currently running, click on the Select from List of Installed Programs
button to bring up a list of all programs installed on your computer. Highlight the program you want and click OK to
have this program excluded.
To remove a file from your list, highlight the .exe file located in the right hand column and click on the Remove
button.
Window Specific
A window specific macro will only execute in the window or windows that you designate. If the window is not active the
macro will not play back. To choose this option, click on the Select button to activate the Select Windows screen. Then
you can specify the window(s) that will accept your macro.
Window Title
You can view and look at all windows that are currently running on your computer. If the window you want is
currently running, you can scroll through the list to find it. Click on the window title you want to place it in the list of
acceptable windows in the right hand column. You may add more than one window to have the macro play back in.
Selected Window(s)
In this field you can type in the name of the Window title and press the Add button to have the title added to the list
of windows that will work with the macro.
Run Macro if Window on Top
This option will play the macro back only if the window is the current top-most window (the one that is showing on
top of all other windows).
Exact Match
This option requires that the Window title match exactly before the macro will play back. With this option not
checked, partial matches will work. For example, "notep" would be sufficient to find the "notepad" window.
To remove a window title from your list, highlight the title located in the right hand column and click on the Remove
button.
Program Specific
A program specific macro will only execute in the program or programs that you designate. If the program is not active
the macro will not play back. To choose the program specific macro option, click on the Select button to activate the
Select Programs window. Then specify the program(s) that will accept your macro.
Select Program(s)
You can view and look at all programs that are currently running on your computer. If the program you want is
currently running, you can scroll through the list to find it. Click on the program you want to select to place in the list
of acceptable programs in the right hand column of this window.
You may add more than one program to have the macro play back in.
Selected Program(s)
In this field you can type in the name of the .exe file and press the Add button to have the file added to the list of
programs that will work with the macro.
Select From List of Installed Programs
If the program you want is not listed as currently running, click on the Select from List of Installed Programs button
to bring up a list of all programs installed on your computer. Highlight the program you want and click OK to place in
the Program Name box.
Run if on Top
This option will play the macro back only if the program is the current top-most program (the one that is showing on
top of all other windows).
To remove a file from your list, highlight the .exe file located in the right hand column and click on the Remove
button.
Note: Since specific programs may be assigned to a hotkey, it is possible to assign the same hotkey to multiple
programs. You will only be able to assign one Global Macro to any given hotkey.
Additional notes about Scope: Let's say, for example, that you create a hotkey macro of F12. The scope is set to
program specific so that the macro will only work with Notepad. If you run Wordpad and press F12 the macro will not
work. If you run Notepad and press F12 the macro will play back. Now, this F12 macro may insert text into Notepad and
then later switch over to Wordpad during the same macro. The macro scope does not prevent this. The scope only refers
to the program or window that is open when the macro starts.
Security
Macro Express - Explorer > Direct or Scripting Editor Button > Security tab
This option allows you to set up a password that is required before the macro can be edited, played back or both. From
the Macro Explorer, click on the Scripting Editor icon to open the Scripting Editor or click on the Direct Editor icon to open
the Direct Editor. Or double click on a defined macro in the list of macros to open your Default Editor. Then click on the
Security tab to enter your passwords.
Note: You can password protect your entire macro file from viewing or editing. You can also prevent Macro Express from
playing back any macros until a proper password has been entered.
Related Topics
Encrypted Text
Password Protection in Macro
Password Protect Macro File
Notes
Macro Express - Explorer > Direct or Scripting Editor Button > Notes tab
From the Macro Explorer, click on the Scripting Editor icon to open the Scripting Editor or click on the Direct Editor icon to
open the Direct Editor. Or double click on a defined macro in the list of macros to open your Default Editor. Then click on
the Notes tab to enter your notes.
This tab opens the Notes field. This is a free form text editor for you to keep notes about your macro. You may want to
make some notes about what the macro does, how it is to be used or how frequently. Essentially this field can be used to
input any information about your macro that you want to record.
CD-ROM
If you enjoy listening to audio CD's while working at your computer, you can create a number of macros to automate
features found in the CD-Player application shipped with Windows. You can create macros to replay a favorite track, open
and close the tray, start, stop or pause the CD for an interruption, or skip tracks -- practically anything except physically
inserting the CD into your drive.
Commands
Play
Starts the play of a CD already inserted in the CD-ROM drive.
Stop
Stops the play of the CD.
Pause
Pauses the CD which could be handy when the phone rings or you have some other type of interruption.
Next Track
Skips forward to the next track of the CD.
Previous Track
Backtracks to the previous track of the CD.
Go To Track
Automatically forwards to the track number selected.
Step
Specify the number of seconds that you want to fast forward through the CD.
Back
Specify the number of seconds that you want to backtrack through the CD.
Eject
Opens the CD tray to ejects the CD.
Close CD Tray
Closes the CD tray.
CD-ROM Drive
If you have multiple CD-ROM drives on your computer, such as a standard drive and a CD-ROM burner, you can select
which drive to use in your macro.
First Available
This option selects the first available CD-ROM drive.
Choose
This option allows you to select which drive to use.
CD-ROM Drive Letter
Use this in conjunction with the Choose option. Use the drop down list to select which drive to use in the macro.
Clipboard
A number of clipboard options are available in Macro Express. These are described below.
Ignore CR/LF
The Ignore CR/LF function instructs the macro to type the clipboard text without any carriage returns or line feeds
that may have been copied to the clipboard.
Log Messages
The log messages and error messages will help keep track of a macro's progress. If the Log Errors to File command is
placed in the macro, any error occurring in the macro is placed in the Default Error Log File that is defined in the Options
| Preferences | File Paths menu. Or select a new file to log the errors.
The Log Data to File command may be used to state that macro proceeded to a certain point in the script and then
create subsequent messages about the macro's progress.
Related Topics
Error Log File Path
Error Log Viewer
Desktop
The Desktop commands provide a number of handy shortcuts for arranging your desktop.
Desktop Cascade
Layers all open windows so that the caption bar of each window is displayed.
Tile Horizontally
Arranges all open windows horizontally on the screen.
Tile Vertically
Arranges all open windows vertically on the screen.
Multiple Choice
The Multiple Choice Menu command allows you to display a menu of choices. Choices can be displayed as either radio
boxes (one selection out of the group) or as check boxes (select as many as wanted). Up to 36 choices may be included
in the menu. The selection results are stored in a text string variable which can be tested for conditional processing of
the macro.
Note: To create Yes/No, True/False, or OK/Cancel type menu options, use the If Message command.
Menu Options
Choose if you want to allow the user to have only one valid selection or multiple selections.
Radio Button Menu
This will display the choices in the menu. Click on the radio button next to the option you want and click OK. The
macro will continue based on your selection. Only one option may be selected.
Checkbox Menu
This will display the choices in the menu. Place checks in the boxes next to your choices and click OK. The macro will
continue based on your selection(s). More than one option may be selected. You will need to insert the logic into the
macro so that it can correctly handle more than one choice selected.
Edit Fields
Destination Variable
This is the variable that will get the result of the user choice(s) from the menu. The If Variable command is used to
test the value of this variable to determine what choice has been selected by the user. In the window displayed
above, the variable T1 was selected. To make the menu work correctly you would use the command "If Variable T1
contains A" to see if the user chose the first item in the Menu List. (Use "If Variable T1 contains B" to test for the
second item in the Menu List, and so on.)
Title
This is the text that will appear in the caption bar of the Window that displays the menu.
Description/Prompt
This is the text that will appear right above the menu choices. This should explain what the choices are all about. For
example, if your menu is a list of income ranges, this text could simply be something like "Please choose your income
bracket".
Menu List
This contains the list of choices for the menu. Each corresponding letter (A, B, C...) represents a different choice in
the menu. They will be displayed in the order shown on this screen. If only 3 entries are filled in (i.e. an entry for A,
B and C), then the menu will only show the 3 entries. Do not leave gaps in the entries or your menu will end up with
blank items in it. In other words, use the first 3, 5 or however many entries you need. Don't skip entries and select
choices A, D, E and G or the menu will display blank items for items B, C and F. The Menu List is a fixed length field.
Approximately the first 50 characters will be displayed in the Multiple Choice Menu during macro playback. Any
excess text will be truncated.
Note: Text Variables may be placed in the Title, Description/Prompt and Menu List input fields. For example, you
may place the variable T1 (you would actually enter %T1%) in the "Description/Prompt" edit box.
Click on one of the arrows or the center button of the Dialog Positioner to move the Multiple Choice Menu Positioner
window. The Multiple Choice Menu Positioner window will move to the position on the screen where the menu will
display during the macro playback. Click on the Save button of the Dialog Positioner window to save the positioning.
Sample Macro
This sample macro is based on the screen shot of the Create a Multiple Choice Menu window displayed in this topic.
Essentially the macro will display a menu of four choices. Select the option you want and then click OK. The macro then
continues based on the choice made. For example if you selected A, then your web browser would load in the Macro
Express web page.
Macro Script
Multiple Choice Menu: Menu
If Variable %T1% = "A"
Web Site: http://www.macros.com
End If
If Variable %T1% = "B"
Launch and Activate: "Notepad.exe"
End If
If Variable %T1% = "C"
Text Type: Insight Software Solutions, Inc.
End If
If Variable %T1% = "D"
FTP Connect
End If
Tips
Make one of the Multiple Choice selections the Default
Let's say you want option B to be your default selection. Use the Variable Set String command and select the Set Value
Now option. Set the value of variable T1 to B. Insert this command before your Menu command in the macro script.
When the macro runs, option B will display as the default selection.
Allow users to select a menu item with the keyboard instead of clicking with the mouse
Let's look at the Multiple Choice Menu image above. There are four entries in the Menu List. We want to set this up so
that when the menu is displayed, the user can press a keystroke rather than click on their choice with the mouse. To do
so we would modify the Menu List to look like the following:
A &Go to Macro Express web site
B &Run Notepad
C &Insert email tagline
D &Connect to FTP site
You'll notice that an ampersand "&" has been placed in front of each item in the menu list. When the list is displayed
during playback of the macro, the letter following the ampersand "&" will be underlined. The user can then press the
underlined letter for the choice they want. This will highlight their choice. Pressing the Enter key will perform the macro
selection chosen.
The ampersand may be placed anywhere in the text string. It doesn't need to be placed before the first letter as in the
example above. For example, we could set item A to read as follows: Go to &Macro Express web site. In this case the M
will be underlined and pressing the "m" key during playback will highlight this menu option.
Note 1: Be careful not to duplicate the underlined letters. Otherwise the first duplicate letter will be the default choice
each time the letter is pressed.
Note 2: If you are using the If Variable Contains command with the Multiple Choice Menu and you have Save Item
Text checked, be sure to change the text you are comparing so that it includes the ampersand "&". For example, change
If Variable %T1% contains "Choice One" to If Variable %T1% contains "&Choice One".
Macro Express can create popup reminder windows to help make sure that you don't forget something important. The
reminders can be set up as monthly, weekly, daily or a one time occurrence. You may want a message to pop up on your
screen reminding you to pick up a few items at the grocery store on the way home from work. Or you can create a
reminder to make that important phone call at a specific time, or any number of other reminders about things you don't
want to forget.
The reminders are simple to set up. For them to work properly, you will need to create your macro as a scheduled macro.
Otherwise you would need to press a hotkey, click on an icon or type a shortkey to activate the reminder, which
essentially defeats the purpose of the reminder.
This option is also useful for displaying instructions for a macro user to follow. You can have a text box display during the
playback of a macro to give the user additional instructions. This command is also useful for debugging macros. Use this
command to display the contents of variables, to make sure they match what you think they should be. For example, to
display the contents of T1, insert %T1% into the Box Content field. When playing back the macro, the value for T1 will
display in the text box. Then you can see what is actually being saved to variable T1.
Click on one of the arrows or the center button. This will move the Dialog Sizer window
relative to the button you selected. If you click on the button in the upper left corner, the
Dialog Sizer window will move to the upper left corner of the screen. Click Save and this is
where the Text Box will display during playback of the macro.
Dialog Sizer
This window displays the text of your message. It also shows the exact size of the window
as it will appear during macro playback.
You can drag the edges of this window to resize it to your specifications. Click OK to save
the size. The new pixel numbers will be displayed in the Display a Text Box Window.
Always on Top
With this box checked the text box will always remain visible on the screen (on top of other running applications)
until the box is closed.
Keep Focus
With this box checked the text box will be the window that has focus. Leaving this option not checked will leave
focus with another application. So when the text box appears with instructions, you could immediately enter
information into your application without first giving focus back to your program.
Quick Wizard Option
Using the Quick Wizard for creating a reminder gives you a couple of additional options. If you are creating a one-time
reminder, you can select the option to have the macro automatically deleted after playback. You can also choose to tack
on a beep or a .wav (sound) file to the macro to alert you that your message is being displayed. The scheduler is built
into the wizard to make the whole process quick and easy.
Using one of the other methods, you can also play back a sound with your reminder. You'll just need to add the Set
Sound command to your macro script to insert the sound.
Open Explorer To
This command provides a quick way to get to some of the most frequented folders or dialog boxes. Other Explorer
folders not listed below can be directly accessed with a macro using the Open Folder in Explorer command.
Use this option to quickly go to any of the 14 Windows Explorer folders listed below. Select the folder you want and click
OK.
Explorer Folders Available
Control Panel
Desktop Folder
Desktop Programs
Favorites
Fonts
My Computer
Network Neighborhood
Printers
Programs Folder
Recent Documents
Recycle Bin
Start Menu
Startup Folder
User Documents
This option provides a shortcut to specific folders found in Windows Explorer. Set up a hotkey or other activation type to
instantly go several layers deep in Windows Explorer. An example might be creating a shortcut to your StartUp folder to
periodically make adjustments. Or you may want to create shortcuts to your Cookies folder to see what a day of Internet
usage has added to this folder. Another folder you may want to monitor is a Temporary folder full of old downloads or
email attachments that might require a periodic cleaning. In short, this option provides you a quick way to get to the
folders you most want to access.
To use this command, just click on the Browse button to locate the Explorer folder that you want. After finding the folder,
click the OK button to save your selection.
Bypass Existence Check
With this option not checked, Macro Express will verify that the folder you selected exists on your computer. If it
doesn't, you will be prompted to select a valid folder before being able to continue. Placing a check next to this
option will bypass this checking process. One reason you may want to bypass this check would be to write a macro
for use on another computer and the folder doesn't exist on the machine you are presently using.
Open Folder
This command is similar to the Open Folder in Explorer command. "Open Folder" opens a window with only the contents
of a folder displayed. "Open Folder in Explorer" opens a window with two panes that displays the Folders tree view on
the left and the contents of the selected folder on the right.
The Open Folder command provides a shortcut to folders on your computer. Set up a hotkey or other activation type to
instantly go several layers deep in the File/Folder structure. An example might be creating a shortcut to your StartUp
folder to periodically make adjustments. Or you may want to create shortcuts to your Cookies folder to see what a day of
Internet usage has added to this folder. Another folder you may want to monitor is a Temporary folder full of old
downloads or email attachments that might require a periodic cleaning. In short, this option provides you a quick way to
get to the folders you most want to access.
To use this command, just click on the Browse button to locate the folder that you want. After finding the folder, click the
OK button to save your selection.
Bypass Existence Check
With this option not checked, Macro Express will verify that the folder you selected exists on your computer. If it
doesn't, you will be prompted to select a valid folder before being able to continue. Placing a check next to this
option will bypass this checking process. One reason you may want to bypass this check would be to write a macro
for use on another computer and the folder doesn't exist on the machine you are presently using.
Action
Select whether to convert the file to a short name or a long name.
File Manipulation
These file commands allow you to change or create folders, copy file(s), rename file(s), delete file(s), move file(s), or
rename or delete a folder.
Create Folder
Use this option to create a new folder. Enter the folder name and the path to the new folder in the edit box.
Rename Folder
Use this option to rename an existing folder.
Delete Folder
This option deletes an existing folder and all of its contents, including subfolders.
Options
Retrieve entire version as a string
This will save the entire version number to a text string variable such as T1. The resulting version number would look
something like 3.8.1.1.
Retrieve individual numbers
Save the components of the version number that you want. You can select from the major, minor, retrieve release or
retrieve build number.
We'll use Macro Express as an example. The major version number is 3. The minor version is 8. This corresponds to
version 3.8 of Macro Express. In this example the retrieve release number would be 1, which also corresponds to the
letter "a". The retrieve build number is 1, which represents build 1. So the version number is Macro Express v3.8a build
1, represented as 3.8.1.1.
Each one of these components may be saved to an Integer variable for later use in the macro.
Scripting Editor > Files\Folders > ASCII File Begin Process or ASCII File End Process
These commands allow you to process a Delimited Text File. You can choose one of several commonly used file formats,
Comma Delimited, Tab Delimited, or ASCII Delimited. Most spreadsheet and database programs can export information
in one of these file formats.
Example
Each field in a record (a record is a line of the text file) is loaded into a variable which can be used throughout the macro.
You can specify which line to start with in the text file and to either process all the records from that point or just a
specific number of records. Use of the variables and processing will take place between the command to open the file
and the command to end the file processing.
This example uses any one of the example data files shown above and this macro:
ASCII File Begin Process: "test.txt" (Tab Delimited Text )
Text Box Display: T1 T2 T3 T4 T5 T6 T7 T8 T9
ASCII File End Process
For this example, T1 is entered in the field labeled "Variable to Receive First Field" in the ASCII File Begin Process
command.
The first time through the Process loop the variables will be:
T1 = MC
T2 = 98 SE, 2000
T3 =
T4 = Athlon
T5 = 750 MHz
T6 = 256 M
T7 =
T8 = 83
T9 =
The second time through the Process loop the variables will be:
T1 = JH
T2 = 95 B
T3 = 5.00.3314.2101
T4 = P II
T5 = 333 MHz
T6 = 65 M
T7 =
T8 =
T9 =
The third time through the Process loop the variables will be
T1 = KH
T2 = 98 SE, 2000
T3 = 5.00.3314.2101
T4
T5
T6
T7
T8
T9
=
=
=
=
=
=
P III
550 MHz
384 MHz
17" Flat
Related Topic
Process a Text File
Scripting Editor > Files\Folders > Text File Begin Process or Text File End Process
Each line in the text file is loaded into a variable which can be used throughout the macro. You can specify which line to
start with in the text file and to either process all the lines from that point or just a specific number of lines. Use of the
variable and processing will take place between the command to open the text file and the command to end the text file
processing.
Example
If you have a text file containing the following:
MC,"98 SE, 2000",,Athlon,750 MHz,256 M,,83
JH,95 B,5.00.3314.2101,P II,333 MHz,65 M
KH,"98 SE, 2000",5.00.3314.2101,P III,550 MHz,384 M,,,"17"" Flat"
and variable T1 is used as the "Variable to Receive First Field".
The first time through the Process loop the variables will be:
T1 = MC,"98 SE, 2000",,Athlon,750 MHz,256 M,,83
The second time through the Process loop the variables will be
T1 = JH,95 B,5.00.3314.2101,P II,333 MHz,65 M
The third time through the Process loop the variables will be
T1 = KH,"98 SE, 2000",5.00.3314.2101,P III,550 MHz,384 M,,,"17"" Flat"
Related Topic
Process an ASCII Delimited Text File
When using My Computer or Windows Explorer, right click on a file name. A menu appears. One of the menu items is
Properties. Left mouse click on Properties to see more details about the file. At the bottom of the Properties window you
may see the following file Attributes displayed - Archive, System, Hidden and Read Only.
The Set File Attributes command will allow you to change the file attributes of files you are working on without going
through My Computer or Windows Explorer. Select the filename that you want to work with. Then select the attributes
you want turned on or off. True will activate the attribute. False will remove the attribute from the file.
Bypass File Existence Check
With this option not checked, Macro Express will verify that the file you selected exists on your computer. If it
doesn't, you will be prompted to select a valid file before being able to continue. Placing a check next to this option
will bypass this file checking process. One reason you may want to do this would be to write a macro for use on
another computer and the file doesn't exist on the machine you are presently using.
Dial-Up Commands
Dial-Up Networking allows you to connect your computer to another computer or the Internet using your modem. For
this option to work, you must have the Windows Dial-Up Networking option installed. You must also have created your
own phone book entries which can normally be done through the Windows Accessories folder. The Dial-Up Networking
commands allow you to dial up a connection, hang up a connection or keep trying until a successful connection is made.
Sample
This set of commands instructs the macro to keep trying to dial up and connect until
successful. After connecting, go to the www.macros.com site.
We've instructed the macro to repeat until variable T1 equals 1. If the dial up connection is
successful, then we set the variable T1 to 1. This will end the Repeat loop and load the
www.macros.com site. If the connection was not successful, the variable T1 is set to 0.
The macro will continue repeating until T1 equals 1.
Repeat Until %T1% = "1"
If Dial-Up Successful: my modem
Variable Set String %T1%"1"
Else
Variable Set String %T1%"0"
End If
Repeat End
WebSite: http://www.macros.com
If Online
The If Online feature allows you to test to see if you are currently connected to the Internet. All commands following this
statement, until an End If or Else command is reached, will be executed if you are currently online. If you are not online
and an Else command is used, then all commands following the Else until an End If is reached will be executed.
Sample
This macro simply instructs to go to the web site www.macros.com if you are connected to
the Internet. If not, dial and connect to the Internet. Then go to the www.macros.com
site. You could combine this macro with the previous example to have the macro continue
dialing until successfully connected.
If Online
WebSite: http://www.macros.com
Else
Dial-Up Networking: mymodem
WebSite: http://www.macros.com
End If
Hang Up
Choosing this option simply instructs the macro to hang up or terminate a Dial-Up Connection if one is currently active.
Get IP Address
This command will find the IP (Internet Protocol) address of the computer running the macro and save this address to a
Text String variable.
IP Address
An IP address is an identifier for a computer on a TCP/IP network. Networks using the TCP/IP protocol route messages
based on the IP address of the destination. The format of an IP address is a 32-bit numeric address written as four
numbers separated by periods. Each number can be from zero to 255. An example IP address is 192.14.122.216.
Within an isolated network, IP addresses can be assigned at random as long as each one is unique. However,
connecting a private network to the Internet requires using registered IP addresses (called Internet addresses) to avoid
duplicates.
Store Address In
The Get IP Address command will identify the IP address of the network card on your computer - the IP address of your
computer within a private network. Or if you are connecting to the Internet, this command will identify the IP address
used to connect to the Internet. For a dial up connection, this IP address is assigned by your Internet Service Provider. It
may change each time you connect to the Internet.
The address is stored to the text string variable that you select. This command may also help in determining if an online
connection is active or not.
Select the filename that you want to edit. Select the attributes for the file you have selected. You can select file rights for
yourself, your group and all others. You can elect to make the file readable so that any of these three may have read
rights to the file. You can also elect to make this file writable, so that it may be edited by one or any of these three. Or
you can make certain files executable so that others may be able to access the file and run it.
You can place checks in the boxes or assign resulting numbers that would apply. When you check the box, a number is
automatically assigned below.
FTP Connect
Only one FTP connection can be used at any give time. These commands assume that you are familiar with operating
FTP servers and clients.
FTP Directories
Scripting Editor > Internet > FTP List Directory or FTP Get Current Directory
List Directory
This command retrieves a listing of the files in the current directory on the FTP Server.
File Mask
Specifies the files you are looking for in the directory. Wildcards are permitted.
Detailed List
This returns all values about the files in the current directory, such as file size, permissions and the
owner.
Get Filesize
This command will find the size of a FTP file. Note: A return value of -1 means that the FTP server does not support the
Size command.
Variable to Receive FTP Result
The message generated by the FTP server, whether a success or failure message, is saved to the variable that you
designate. You will need to monitor the variable to determine the status of the operation. You can do this by placing
the variable in a Text Box Display command. A window would pop up at the end of your macro displaying the
variable results. Insert %T1% into the Box Content field to have the variable contents displayed, if you have
assigned the variable to T1. Or you could have the results of the variable sent to a text file to review later.
Filename
Insert the name or path and name of the file for which you want to obtain the file size.
Variable to Receive Filesize
The file size will be stored in an integer variable. Select the variable you want this information saved to.
Rename File
This command allows you to rename a FTP file.
Variable to Receive FTP Result
The message generated by the FTP server, whether a success or failure message, is saved to the variable that you
designate. You will need to monitor the variable to determine the status of the operation. You can do this by placing
the variable in a Text Box Display command. A window would pop up at the end of your macro displaying the
variable results. Insert %T1% into the Box Content field to have the variable contents displayed, if you have
assigned the variable to T1. Or you could have the results of the variable sent to a text file to review later.
Filename
Insert the name or path and name of the file that you want to rename.
New Filename
Insert the new filename or new path and name of the file.
Delete File
This command will delete the FTP file that you specify. This command also accepts wildcards, such as *.*, in the filename
edit box.
FTP Site
You can insert into your macro a command to initiate an FTP transfer.
Just insert the FTP address you need and click the OK button. An FTP transfer will be initiated as part of your macro
when the macro is executed.
Ping Site
This command pings the web site or IP address that you select.
Address/Host Name
Insert the address of the site that you would like to ping. This can be an address such as www.macros.com or an IP
address.
Store Results In
The results of the ping are saved to a text string variable. Select which variable you want from the drop down list. The
results will indicate if the ping was successful or indicate various error messages.
Receive Timeout
Set the amount of time for the macro to ping the site.
Send Email
Sending messages by email can now be automated and activated by the touch of a key. Send to one or multiple
recipients, carbon copy (cc), and blind carbon copy (bcc). Select recipients at macro design time or at macro run time. A
built in email address manager allows you to maintain a list of frequent recipients.
You can generate the email message contents at macro design time, when the macro runs, from the contents of the
clipboard or from a text file. One or multiple attachments may be included with the email. Attachments may also be
specified at macro design time or at macro play back time. You can also maintain or browse a log of all email messages
sent. An email quick wizard prompts you through all aspects of creating a macro for sending email. This includes the
option to specify a dial-up Internet connection.
The Send Email command is divided into three sections, Recipients, Message and Attachments. These are each discussed
below.
Recipients
person(s) you want to send the message to by highlighting the recipients' name(s) listed in the first column. Then select
the To, CC and BCC buttons for the appropriate option.
Name/Address
Each column gives you the choice of displaying either the recipient's name or their email address.
Message
Attachment
No Attachment
Click on this option if you do not want to include an email attachment to your message.
Choose Attachment Now
Click on this option if you want to include an email attachment to your message. The window will appear as above. Click
on the add button and a window box will activate allowing you to browse your computer to find the attachment you want
to send. You can have multiple attachments. After you have selected your first attachment and it is placed in the list, click
on the Add button again to add another.
You can also highlight an attachment from the list and click on the Delete button to remove the attachment.
Prompt for Attachment
Selecting this option will allow you to also include an attachment to your message. You will be prompted at the time you
execute the macro to include the attachment. Click on the hotkey (or other macro activation type) you assigned for your
email message and the window similar to the one displayed above will appear. Click on the Add button and a window will
activate allowing you to browse your computer to find the attachment you want to send. You can have multiple
attachments. After you have selected your first attachment and it is placed in the list, click on the Add button again to
add another. You can also highlight an attachment from the list and click on the Delete button to remove the
attachment.
Once you have added your attachment(s), click on the Continue button to send the email.
The default display is the center of the screen. You can also define the coordinates in pixels. Enter the pixel coordinates
into the Left and Top edit fields. If you entered 200 into the Left field, the window would be positioned 200 pixels to the
right of the left edge of the screen. Similarly, if you entered 200 into the Top field, the window would be positioned 200
pixels down from the top edge of the screen.
Set Manually
Instead of using pixels, you can have the email prompt window appear in the center, corners or midpoints of the screen
by using this option. Pressing the Set Manually button will activate the following two windows.
Click on one of the arrows or the center button of the Dialog Positioner to move the email prompt window. This will move
the email prompt window relative to the button you selected. If you click on the button in the upper left corner, the email
prompt window will move to the upper left corner of the screen. Click Save on the Dialog Positioner and this is where the
email prompt window will display during playback of the macro.
Web Site
Web Site
You can insert a command into your macro to launch an Internet web site. Just type in the web site address you need
and click the OK button. The web site you designated will be launched as part of your macro when the macro is
executed. If your browser is not open, the macro will also open the browser. If you want to have the macro go to a
secure web page, just insert the "s" in the default http:// setting - to https://.
Favorites
Rather than type in a URL, click on the Favorites button. This will bring up a list of URL's in your Favorites folder.
Navigate to the URL you want, highlight it and click OK to insert the URL into the Web Site field.
Launch Using
You can choose to have the macro open the browser you have set as your Windows default browser. The other
option is to select Internet Explorer as the browser. If macro timing is critical and you normally use a browser other
than Internet Explorer, you may want to select the Internet Explorer option to take advantage of the Wait for Web
Page command.
Wait for Web Page
This option is only functional with Internet Explorer. When selected, the macro will pause until the web page has
fully loaded. After the page has fully loaded, the macro will continue.
Keys Up or Down
The Keys Up or Down window (as shown below) allows you to simulate holding down or releasing the Control, Alternate,
Shift or Windows keys. This allows you to incorporate other functions that may require you to hold down one of these
keys and another key simultaneously to activate a function.
To use one of these options, just click on the item you want and click OK to insert into your macro.
For example, if you wanted to highlight text you could do the following: Click on Shift Key Down and OK. Then using the
Text Type command you can add <right arrows>, <down arrows>, End or Home to highlight the amount of text you
need. Then return to the Keys Up or Down window to click on Shift Key Up and OK. This will release the Shift key before
continuing with the macro.
Note: Whenever you issue a Down key it is very important to issue a corresponding Up key, or it may appear that your
keyboard has become stuck.
Toggle Keys
The Toggle Keys window (as shown above) activates or releases the Caps Lock, Num Lock or Scroll lock keys. To use
these options, select the desired option and click OK to insert into the macro script.
For example, if you wanted to capitalize a section of text (all caps), insert the Caps Lock On command before the text
that is to be replayed. If you want to revert back to regular text, place a Caps Lock Off command before the next section
of Text.
Note: If you set the Caps Lock, Num Lock or Scroll lock on during a macro, these items will remain locked after the
macro has completed, unless you issue a corresponding Lock Off command during the macro.
AND/OR/XOR Logic
These commands can be used to increase the power and flexibility of the If statements.
Scripting Editor > Logic > AND - OR - XOR
AND
Use this command if you require two or more conditions to be valid. Let's use variables T1 and T2 in an example. We
can create a macro that states If T1 = Test AND If T2 = Example, run the macro "Macrotest. If T1 does not = Test or if
T2 does not = Example, then a text box will open instead of running the "Macrotest" macro. Both IF statements must be
true in order for the "Macrotest" macro to continue.
You may use multiple AND commands placed between the If statements. In this scenario only one End If command is
required at the end of the string.
Sample Macro
If Variable %T1% = "Test"
AND
If Variable %T2% = "Example"
Macro Run: Macrotest
Else
Text Box Display: Not Found
End If
OR
Use this command if you require one of two or more conditions to be valid. In the example above, only one of the two If
statements must be valid. Either T1 can equal Test or T2 can equal Example. Both are not required in order for the
"Macrotest" macro to run.
You may use multiple OR commands placed between the If statements. In this scenario only one End If command is
required at the end of the string.
Sample Macro
If Variable %T1% = "Test"
OR
If Variable %T2% = "Example"
Macro Run: Macrotest
Else
Text Box Display: Not Found
End If
XOR
With this option, one of the variables must be false and the other valid. In the example above, T1 would equal Test and
T2 would NOT equal Example, or vice versa. In this case the "Macrotest" macro would run. If both If statements were
invalid or both were true, the macro would display a text box and not run the "Macrotest" macro.
Only one End If command is required for the two If statements, if the XOR command is placed between them.
Sample Macro
If Variable %T1% = "Test"
XOR
If Variable %T2% = "Example"
Macro Run: Macrotest
Else
Text Box Display: Not Found
End If
Related Topic
Case and Switch Commands
If Commands
If commands are useful in helping to determine a given condition. Based on the condition, you perform a set of macro
commands. The End If, Else and AND/OR/XOR commands are used in conjunction with the If Commands. Text Variables
can be placed in the input fields on this screen. For example, you may place the variable T1 (you would actually place
%T1% in the field) in the "program name" field when selecting the "If Program Running Command".
Insert the file name and path in the Filename edit field. Or click on the Browse button to locate the file needed.
Use Search Path
Use Search Path instructs Macro Express to look for the file in the directories listed in the Windows Path in addition to
the current directory.
Enter the name of the window title in the edit field. Or click on the Select button when using any of the four If Window
commands to retrieve a list of all Windows currently running on your computer. Highlight the window you want and click
on the OK button to insert this title as your window selection.
Exact/Partial Match
Select whether the window title must match exactly or whether a partial match is acceptable.
Insert the program name and path in the edit field. Or click on the Select button when using any of the four If Program
commands to retrieve a list of all programs currently running on your computer. Highlight the program you want and
click on the OK button to insert this as your program selection.
If Clipboard Contains
This command tests if the text contents of the clipboard contain a specific value.
Else command is reached, will be executed if the statement is true. If it is not true and an Else command is used, then all
commands following the Else until an End If is reached will be executed. This command will typically be used to set the
enabled/disabled state of a macro.
Enter the macro name in the edit field or click on the Select button to find the macro name from a list.
AND/OR/XOR - The AND/OR/XOR commands add a lot of flexibility to the If statements by requiring several If
statements to be true, one of several If statements to be true or for one If statement to be true and another
false.
Else - The Else command is used in conjunction with a conditional statement. Everything after an Else command
until an End If command is reached will be executed if the conditional is FALSE.
End If - The End If command is used to mark the place where macro control should stop after a conditional
statement is encountered.
Example
Below is a small example of how to use the If statements. For this example we selected
the If Clipboard Text Equals command.
If the text saved to the clipboard is "Macro Express" then the macro will open the
macros.com home page. The Else command separates the If statement. If something
other than "Macro Express" is saved to the clipboard, the web site command will be
skipped. Instead, the macro will activate the Notepad window and enter "This is a test".
If Clipboard Text Equals "Macro Express"
Web Site: http://www.macros.com [Default Browser - Wait to load]
Else
Activate Window: "Notepad"
Wait For Window Title: "Notepad"
Text Type: This is a test.
End If
<continue with remainder of macro commands>
This is essentially the format that you would use for any of the If statements when you
want to take two different actions based on the result of the If statement.
If you don't want two different actions, you can remove the Else statement as shown
below. In this case, if the clipboard contents equal Macro Express, the macro will open the
macros.com web page. If the clipboard contents are different, then the web site command
will be skipped. The End If command signifies that the If statement is finished and the
macro will continue with the rest of the commands.
If Clipboard Text Equals "Macro Express"
Web Site: http://www.macros.com [Default Browser - Wait to load]
End If
<continue with remainder of macro commands>
Look at the AND/OR/XOR commands to see other examples using the If statements.
Related Topics
AND/OR/XOR Logic
Switch/Case Commands
If Control
This is used to determine if the control in the C-variable is visible, enabled or focused. You would use this like any of the
other If Commands.
Focused
This If statement is based on whether the control has focus or not. This control may be a Window Title, a button, an edit
box or some other part of the window.
Note: Not all controls are written so that they can receive focus. If this is the case for the control you are using, then
you would be better off using the Visible or Enabled options. Otherwise the If Control Focused option will always come
back false and the If Not Control Focused option will always test as true.
Visible
This If statement is based on whether the control is visible or not. The control does not need to have focus, it just needs
to be visible. This control may be a Window Title, a button, a toolbar, an edit box or some other part of the window. A
control on a window that is hidden or minimized may still be visible to this command.
Enabled
This If statement is based on whether the window with the control is the active window or not. In addition it checks
whether the control is enabled or not - if the control is grayed out or not.
Related Topics
Control Overview
Controls Tutorial
If Message
The If Message Command allows you to prompt with a question. The question that appears in the dialog box will also
display two buttons below the question. The buttons can be set to Yes/No, OK/Cancel, True/False or User defined. This
statement will require an End If statement and can optionally use the Else statement. Text Variables can be placed in the
input fields on this screen. For example, you may place the variable T1 in the message. To do this you would enter
%T1% into the Message field.
Caption
The caption is the text that will appear in the Window Title bar of the message window created.
Message
In this field, insert the message or question you want to pose.
Buttons To Use
Select from the four button types allowed - Yes and No, OK and Cancel, True and False or User Defined. These are the
labels for the buttons that will appear with the message during macro playback. The button names that you select should
correspond with the type of question asked. The User Defined option will allow you to create your own labels, such as
creating foreign language labels.
Choose Default
When the message displays you can select which button will have the default. One or the other button will be
highlighted, depending on which default you select.
Default Time Out
If a choice is not made within the Default Time Out that you have selected, the macro will continue, using the
Default Choice mentioned previously.
Message Positioning
You can assign where you would like the If Message prompt window to appear on the screen during playback of the
macro. The coordinates allow you to position the If Message prompt window to an area of the screen most
convenient for your use. The default display is the center of the screen. You can also define the coordinates in pixels.
Enter the pixel coordinates into the Left and Top edit fields. If you entered 200 into the Left field, the window would
be positioned 200 pixels to the right of the left edge of the screen. Similarly, if you entered 200 into the Top field,
the window would be positioned 200 pixels down from the top edge of the screen.
Set Manually
Instead of using pixels, you can have the If Message prompt window appear in the center, corners or midpoints of
the screen by using this option. Pressing the Set Manually button will activate the following two windows.
Click on one of the arrows or the center button of the Dialog Positioner to move the If Message prompt window. This
will move the If Message prompt window relative to the button you selected. If you click on the button in the upper
left corner, the If Message prompt window will move to the upper left corner of the screen. Click Save on the Dialog
Positioner and this is where the If Message prompt window will display during playback of the macro.
Sample Macro
We'll create a simple example of how this works. The If Message was created using the
image shown above in this help topic. When running the macro and you answer yes to the
question, "Would you like to purchase additional copies of Macro Express", you are taken
to the order page at the Macro Express website. If you answer no, then a text box displays
with the message "Maybe I should rethink my answer".
Macro Script
If Message: "Become more Productive!"
Web Site: http://www.macros.com/order.htm
Else
Text Box Display: Macro Express
End If
If OS Version
As we're sure you are aware, not all MS operating systems work the same. Some things are done differently in each OS.
The "If OS Version" command can help with this problem. A macro can be tailored to the operating system of the user.
In the sample below we've made a simple macro that does something different based on the operating system in use.
This is how it would be displayed in the Scripting Editor. This macro basically states that if you are running Windows 95,
98 or Me, then call and run the macro named 9xmacro. The OR command lets you choose between two or more IF
commands. If you are running Windows NT, run the NTmacro. Or if you are running Windows 2000, Windows Server
2003 or WinXP, the macro will run the 2000XPmacro.
Sample Macro
If OS Version: "Win95"
OR
If OS Version: "Win98"
OR
If OS Version: "WinME"
Macro Run: 9xMacro
Else
If OS Version: "WinNT"
Macro Run: NTMacro
Else
If OS Version: "Win2000"
OR
If OS Version: "WinXP"
OR
If OS Version: "Win2003"
Macro Run: 2000XPMacro
End If
End If
End If
If Ping Successful
This option will first attempt to ping the server you have designated. Insert your address in the field above. If the server
responds within the specified time frame, which you can define in the Maximum Time to Wait field, then the result will be
true.
Example
Here is a simple example of how you may use this command. The macro is pinging the www.macros.com site to make
sure that the server is running. If the ping is successful a message is logged to the ping.log file with a date and time
stamp. If the server is down and the ping was not successful, an email is sent for someone to look into the problem. This
could be set up as a scheduled macro to run every 30 or 60 minutes.
If Ping Successful: "www.macros.com"
Log Message to "ping.log"
Else
E-Mail Send: Know Recipients, Fixed Text, No Attachments
End If
If Registry
This command allows you to take action based on whether a Windows Registry Key or Value exists or does not exist. Use
this command as you would any other If statement. You will need to close the If statement with an End If command.
If Registry
This consists of two parts. Select either the registry value or key. Then select the If Exists or Does not Exist option. The
macro will then look to see if the registry key or value exists or does not exist on the computer.
Path
Select the registry path. You can either type in the full path, or click on the Browse button to navigate to the key or value
needed.
Note: ALL registry commands (except the registry read and If Registry commands) REQUIRE full Read/Write access to
the registry in those parts that the user is wishing to modify. This is only an issue with Windows NT/2000/XP where
security permissions can be set. The system administrator is responsible for these settings as we do not have the ability
to modify them.
Related Topics
Create or Delete Registry Keys
Read Registry Keys
If Variable Command
If commands insert logic statements into macros. The If Variable command is one of the most powerful If commands
available. Use it to compare a previously saved variable value such as a text string, window title, a number, or anything
else for that matter with another value. If the values match (or don't match), the macro can take a specific course of
action based on the results.
The If Variable command compares either a text, integer or decimal variable to a fixed value or to another variable.
Comparisons may be equal, not equal, less than, greater than, less than or equal to or greater than or equal to.
The "Contains" and "Does not Contain" conditions are available for use with Text variables to test if specific characters
are found or not found in the string variable.
Variable
Select the variable to compare and insert in this field. The example above shows variable N[1] being compared.
Condition
If Commands help determine a given condition. Based on the condition, you perform a set of macro commands. The End
If, Else, AND, OR and XOR commands are used in conjunction with the If Commands.
Select the action needed for comparing the variable with another value or variable. Below is a list of the actions
(comparisons) available.
= Equals
< > Does not Equal
< Is Less Than
> Is Greater Than
>= Is Greater Than or Equal To
<= Is Less Than or Equal To
Contains
Does Not Contain
Value or Variable
Insert the value to compare with the variable selected. Or insert a variable in this field to compare the value of one
variable against another.
Ignore Case
When comparing Text String variables, select this option if the comparison does not need to be case sensitive. If
selected, the upper or lower case status of the text is ignored.
The Switch/Case commands allow you to test the content of a single variable against a series of values and execute
specific macro commands based on the value in the variable.
A Switch/Case block of macro commands always begins with the Switch command and ends with the End Switch
command. You place one or more Case/End Case blocks inside the Switch/Case block. The Case/End blocks begin with a
Case command and end with an End Case command. You may also include one optional Default Case/End Case block.
Example
This example tests the value in the T1 variable for the words Done or Found and displays a
message accordingly.
Switch (T1)
Case: Found
Text Box Display: T1 equals Found
End Case
Case: Done
Text Box Display: T1 equals Done
End Case
Default Case
Text Box Display: T1 does not equal Done or Found
End Case
End Switch
Switch
The Switch command requires a variable. You may choose any type of variable (%T1%, %N1%, %D1%) but all values in
the Case statements that follow must be consistent with the type of variable you chose for the Switch statement. If the
values are not consistent, the result may be unpredictable.
Case
The Case command starts a Case/End Case block of macro commands.
The Case command may contain a variable or it may contain a value that you enter directly in the Case command. For
example, you may use a value of %T2% or enter a text string such as "Done".
A Case/End Case block may contain more than one Case command with a single End Case command at the end of the
block.
Example
This example tests the value in the T1 variable for the word Found or any of the words
Done, Finished or Completed.
Switch (T1)
Case: Found
Text Box Display: T1 equals Found
End Case
Case: Done
Case: Finished
Case: Completed
Text Box Display: The comparison is done
End Case
End Switch
Default Case
The Default Case/End Case block is optional. This command is similar to the standard case, but acts like an "Else"
command. Basically, if none of the conditions are met in the previous case statements, then the default case will be
executed.
If used, the Default Case/End Case block must be placed after all other Case/End Case blocks. Any Case commands that
follow the Default Case command will not run.
Example
This example tests the variable T1 for the word Found.
Switch (T1)
Case: Found
Text Box Display: T1 equals Found
End Case
Default Case
Text Box Display: T1 does not equal Found
End Case
End Switch
You may combine a Case command and a Default Case command in a single block.
Example
In this example, if the variable T1 either contains the word Searching or if it does not
contain the word Found, then the commands in the Default Case block will run.
Switch (T1)
Case: Found
Text Box Display: T1 equals Found
End Case
Case: Searching
Default Case
Text Box Display: T1 does not equal Found
End Case
End Switch
End Case
The End Case command defines the end of a Case/End Case or Default Case/End Case block of macro commands.
End Switch
This is required to end a Switch Block. It's similar to the "End If" command.
Related Topic
AND/OR/XOR Logic
File Name/Path
After clicking on the Load Text option, the window above will appear. Enter a file name or click on the Browse Button to
search for the text file desired. Click the Ok button when finished.
Bypass File Existence Check
With this option not checked, Macro Express will verify that the file you selected exists on your computer. If it
doesn't, you will be prompted to select a valid file before being able to continue. Placing a check next to this option
will bypass this file checking process. One reason you may want to do this would be to write a macro for use on
another computer and the file doesn't exist on the machine you are presently using.
Edit in Notepad
Click on this option to view the text file in Notepad. The Notepad program will run and the text will be loaded in. You can
make any changes to the text and then click on File | Save in Notepad. The changes will be saved and you will return to
the Load Text from a Text File window. Then you can click OK to insert the text file into your macro or Cancel to exit.
This particular function can be quite handy if you are using multiple sets of macro files where you have different sets
designed for different tasks, users, etc. You can set up hotkeys to automatically load in a specific user's set of macros or
a set of macros for a given task.
Bypass File Existence Check
With this option not checked, Macro Express will verify that the file you selected exists on your computer. If it
doesn't, you will be prompted to select a valid file before being able to continue. Placing a check next to this option
will bypass this file checking process. One reason you may want to do this would be to write a macro for use on
another computer and the file doesn't exist on the machine you are presently using.
Macro Commands
These commands may be used with macros you have already created. The current list of macro nicknames is sorted by
the categories you have assigned in the Macro Explorer. Select the Display all Macros option to not use the category
view. In this case, all macros will be listed individually.
Run A Macro
This function is the key to stringing macros together. You can incorporate one or several macros into another
macro. Select the macro you want to include into the new macro by looking through your list of macros. Double click on
the one you want. This will insert the macro in the Macro Nickname edit box. Click OK to save your changes or Cancel to
quit.
Note: Variable values will be passed from one macro to another when the macros are strung together using the Run a
Macro Command. For example if variable N1 were assigned a value of "123" in the main macro and the called macro
types out the value of N1 to another application using the Text Type command, "123" would be typed. There is no need
to set N1 to a value of "123" again in the called macro.
When the entire macro is complete, the variable values are cleared. If you want to save the variable values for use with
another macro, which is not part of the original macro and called macros, use the Variable Save and Variable
Restore commands.
Delete A Macro
This function allows you to delete a macro as part of your existing macro. A typical use for this function would be with
the creation of reminder messages. If you create a one time reminder message - to run an errand, make a call at a
specific time, etc. - you can place the Delete a Macro command after your message. After the message pops up on your
screen, the macro will be deleted - saving you the trouble of having to remember to delete it later.
Double click on the macro you want to have deleted from the List of Current Macro Nicknames. This will insert the macro
in the Macro Nickname edit box. Or type the name of the macro you're working on in the Macro Nickname edit box, if
that is the macro you want to have deleted. Click OK to save your changes or Cancel to quit.
Skip Recycle Bin
Select this option if you do not want the deleted macro to be placed in the Macro Express Recycle Bin.
Enable A Macro
This function allows you to place a command in your macro to enable another macro that had previously been disabled
(not currently available for use). Select the macro you want to enable by scrolling through your list of macros. Double
click on the one you want. This will insert the macro in the Macro Nickname edit box. Click OK to save your changes or
Cancel to quit.
Disable A Macro
This function allows you to place a command in your macro to disable another macro. A common use for this command
would be to disable the macro you are currently creating. After the macro plays back it would deactivate itself, so that
you don't accidentally trigger the macro later until ready. Select the macro you want to disable by looking through your
list of macros. Double click on the one you want. This will insert the macro in the Macro Nickname edit box. Click OK to
save your changes or Cancel to quit.
Macro Stop
The Macro Stop command allows you to stop the execution of a macro. You may want to use this in conjunction with a
conditional statement. If a desired condition is not met, you may wish to terminate the macro.
Password Protection
The password protection feature requires that a password be entered before the macro will continue. In addition, a
macro that contains this command cannot be edited unless the password is first entered. This prevents someone from
simply looking at the macro or deleting the password command and then playing the macro to get at sensitive
information. The encrypted text command gives additional security for sensitive information.
Insert the password protection command as the first item of your macro script if you want the entire macro to be
password protected. Or insert the password protect command before the portion of the macro that you want protected.
In the latter case, the first part of the macro will play and when it reaches the password protection command, a box will
pop up asking you to type in your password and click OK for the rest of the macro to play back. If the password
protection command is the first item of your macro, activating the macro will first prompt you to type in your password
and click OK before the macro will play back.
The password field will hold up to 19 characters. Input your password in the Password edit box. You can use a
combination of letters, numbers and symbols found on the keyboard. Type your password in again in the Enter Again
field to make sure you input what you thought you did the first time. If you type in the password differently, a message
will pop up telling you that the passwords do not match and to try again.
Window Positioning
You can assign where you would like the password window to appear on the screen during playback of the macro.
The coordinates allow you to position this window to an area of the screen most convenient for your use. The default
display is the center of the screen. You can also define the coordinates in pixels. In the above example, the top of
the pause window will be positioned 15 pixels down from the top of the screen. The left edge of the window will be
positioned 15 pixels to the right of the screen's left edge.
Set Manually
Instead of using pixels, you can have the password window appear in the center, corners or midpoints of the screen
by using this option. Pressing this button will activate the following two windows.
Click on one of the arrows or the center button of the Dialog Positioner to move the Password window. This will
move the Password window relative to the button you selected. If you click on the button in the upper left corner,
the Password window will move to the upper left corner of the screen. Click Save and this is where the Password
window will display during playback of the macro.
Related Topics
Encrypted Text
Password Protect a Macro
Password Protect Macro File
Password Protect on Startup
Remarks
If you have created a large or complex macro, you may want to consider placing remarks or comments within the macro
script itself to help you keep track of what each portion of your macro script does. The remarks are placed within the
macro and are not played back as part of the macro. This will help you to easily identify what each piece of a macro
does, so that you can more readily find, edit or change any of the macro commands or components.
In the edit box, type in the comments you want to make and then click OK. The Remarks edit box will hold up to 240
characters of text. The comments will be inserted into the macro script where you positioned them. The remarks will be
displayed in blue in the Scripting Editor so that you can easily distinguish comments from commands that will play back in
the macro.
Reset Hooks
It is possible for other programs which are run after Macro Express to improperly install themselves into the system wide
Windows keyboard and mouse hooks. This causes Macro Express to no longer be able to monitor keystrokes or mouse
movements and clicks.
This command will reinstall the Windows keyboard and mouse hooks used by Macro Express while your macro is playing
so that Macro Express will have the first look at the keystrokes and mouse movements/clicks and be able to monitor
them again.
This command will close Macro Express and restart the program. Note: The Restart Macro Express command should be
the last command in the script. Any commands in the script after the Restart Macro Express command will be ignored
and will not play back.
Select whether to double or single click on the control. Also choose which control variable to have the mouse click on and
which button to use, left, right or center button.
Advanced
By default, this command sends the click to the center of the control, but the position can be set manually by the user.
Just enter the X and Y coordinates, which are relative to the control.
Mouse Commands
Macro Express will incorporate mouse functions within macros. You can position the mouse to the correct coordinates
and then add mouse clicks or wheel movements as necessary. Another alternative is to record the mouse movements
and clicks with the Capture function. In the capture mode, the Mouse Commands window is not utilized.
Scripting Editor > Mouse > Select the Mouse Option Needed
The most common use of the mouse in macros is to move the cursor to a particular spot and click on a button or menu
command. The first step in this process is to click on the Mouse Move command. This activates the Movement portion
of the window where you can position the mouse cursor over the button or menu command you want. You will need to
know the exact coordinates of the button or menu command on the window or screen for the mouse functions to be
accurate. The Mouse Locator function will help you determine the mouse coordinates.
Screen Position
The set of numbers directly under Screen Position lists the position of the mouse relative to your computer screen. As
you move the mouse, you will notice the numbers changing in relation to the mouse cursor position. The number to
the left is the X coordinate, or how many pixels from the left edge of the screen. The number on the right is the Y
coordinate, or how many pixels the mouse is positioned from the top of the screen.
Active Window
The set of numbers directly under Active Window lists the position of the mouse relative to the active window or the
window that has the focus. When first activating the Mouse Locator window, it will have the focus. Clicking on a
window outside of the Mouse Locator will bring focus to that window. The Mouse Locator window will remain on top
so that you can read the coordinates for the window you want to use. As you move the mouse, you will notice the
numbers changing in relation to the mouse position. The number to the left is the X coordinate, or how many pixels
the mouse is positioned from the left edge of the active window. The number on the right is the Y coordinate, or how
many pixels the mouse is positioned from the top of the active window.
Pixel Color
This option will display the color of the pixel that the mouse is pointing to. Windows assigns a numeric value to each
color, normally from 6 to 8 digits in length. The pixel color is used with the Get Pixel Color command.
Click the X in the upper right corner to close the Mouse Locator window.
Movement
To Text Cursor Position
With this option checked you are telling the macro to move the mouse to the location of the text cursor. The text
cursor is the flashing bar that appears on screens where text input is to be made. This can be particularly useful for
applications which do not support the SHIFT and Arrow Keys for highlighting text for clipboard copying. You can use
the keyboard to tab to the desired field and the arrow keys to position the cursor and then use the "Move Mouse To
Text Cursor Position" to position the mouse cursor to the same location. A mouse down and a mouse move relative
to position followed by a mouse up will allow you to highlight text for a clipboard capture. Note: This function will
not work on programs that create and use their own text cursor. Programs that do so do not use the built in
Windows Text Cursor functions. Ironically, MS Word appears to fall into this category.
Relative to Screen
With this option checked you are telling the macro to move the mouse cursor relative to its position on the computer
screen. You would use the "Screen Coordinates" numbers from the Mouse Locator with this option.
Relative to Window
With this option checked you are telling the macro to move the mouse cursor relative to its position within the
window that is active. You would use the "Active Window" numbers from the Mouse Locator with this option.
Relative to Last Position
With this option checked you are telling the macro to move the mouse cursor relative to the last position of the
cursor. In this case you would not input new coordinates, but just the number of pixels that you want the mouse to
move. Let's take an example, with the last mouse position relative to the screen being X = 100, Y = 200. This means
the cursor is 100 pixels from the left edge of the screen and 200 pixels from the top edge of the screen. If we were
to plug in X = 20, Y = 50, then the mouse would move to an X coordinate of 120 and a Y coordinate of 250. Or, if
we plugged in X = -20, and Y = -50 then the mouse would move to an X coordinate of 80 and a Y coordinate of 150
based on our previous example.
By using some simple math, you can use the Mouse Locator to tell you how many pixels you need to move. Start
with your first position and jot down the X and Y coordinates. Move the cursor to your new location and subtract the
difference. If your starting position is X = 400 and Y= 450 and your new position is X = 500 and Y = 500, then you
would plug in the values of X = 100 and Y = 50.
You can select coordinates by either entering the coordinates directly or assigning the coordinate value to a variable.
An example of using variables might be to save the original mouse location into variables and then move the mouse
back to the original location when finished processing the macro.
Once you move the mouse to the correct coordinates, then you would select one of the mouse clicks or other actions
listed below.
Relative to Control
This option assumes that you have previously defined a Window Control and saved it to a variable. Select the control
you want from the drop down list of variables. Select the coordinates. For example, if you inserted 1 as the X
variable and 1 as the Y variable, then the mouse cursor would point to the upper left corner of the control - one pixel
down from the top and one pixel to the right of the left edge.
Note 1: When using the Relative to Screen or Relative to Window options, first position the mouse to the location you
want. Then press the Ctrl Key and Space Bar. This will insert the coordinates into the X and Y fields.
Note 2: With each of the above options, except for the Text Cursor Position, you can use Integer variables for the
coordinate values. For example, if you previously assigned a value of 50 to variable N1 and selected N1 as your X
coordinate, then the X coordinate would be 50.
Left Button Up
Releases the left mouse button from its held down position.
Right Button Up
Releases the right mouse button from its held down position.
Middle Button Up
Releases the middle button of a three button mouse from its held down position.
Sample Macro
What this macro does is capture the initial position of your mouse cursor and saves the coordinates to variables N1 and
N2. The macro then moves the mouse cursor to the screen coordinates of 300 and 300. The last command instructs the
mouse to go to coordinates N1 and N2. This should return the cursor to the original position. The delays are added so
that you would be able to see the mouse move. Without the delays the movements would be too quick to really notice
what was happening.
Macro Script
Get Mouse Position Screen: %N1%, %N2%
Delay 2 Seconds
Mouse Move Screen 300,300
Delay 2 Seconds
Mouse Move Screen %N1%, %N2%
Audio Controls
These functions will allow you to create macros to adjust the volume on your computer's sound system. Not all functions
will be available on a particular computer. Speaker support is dependent upon the audio device in your computer. Any
option not available on your computer will have a line drawn through it. You may still add these commands to a macro
for use with another computer that has these capabilities.
Audio
The audio controls apply to your computer's speakers. The treble and bass are audio controls. You can issue macro
commands to turn the volume off, set it on its highest setting, nudge it up, nudge it down, toggle it between muted and
not, nudge the balance to the left or right, center the audio balance, nudge the treble up or down or nudge the bass up
or down.
MIDI
The MIDI options control the volume for any MIDI instruments you may have installed on your computer. You can issue
macro commands to turn the volume off, set it on its highest setting, nudge it up, nudge it down, toggle it between
muted and not, nudge the balance to the left or right or center the balance.
Note: For most computers, the audio range, from lowest to highest, is comprised of 20 increments. Each volume
command that you insert will change the status by approximately 5%.
Set Sound
Macro Express allows you to add sound to your macros to help bring attention to a particular action or to just liven up the
macro as it plays back.
Scripting Editor > Multimedia > Sound Beep or Sound Wave File
Beep
Click on this to have a "Beep" sound placed in the macro.
Wave File
Select this option to have a wave (.WAV) file played back during the execution of the macro.
Browse
Allows you to search your hard drive for a wave file to insert in the Wave File edit box.
Test
Allows you to test out the wave file to determine if it is the correct file. (The wave file will play back immediately so
you can listen to it before inserting.)
Bypass File Existence Check: With this option not checked, Macro Express will verify that the file you selected
exists on your computer. If it doesn't, you will be prompted to select a valid file before being able to continue.
Placing a check next to this option will bypass this file checking process. One reason you may want to do this would
be to write a macro for use on another computer and the file doesn't exist on the machine you are presently using.
Wait for wave file to finish
With this option checked, the execution of the macro will stop until the wave file has played in its entirety. If not
checked, then the wave file plays while the macro executes.
Video Clip
Macro Express allows you to incorporate the playback of video files into your macros.
Play Immediately
This option will launch the AVI player and play back the video.
Wait to Play
This option will load the AVI player and wait for your command (clicking on the Start button of the AVI player) to begin
the video play.
Window Positioning
You can assign where you would like the video player window to appear on the screen during playback of the macro.
The coordinates allow you to position the video player window to an area of the screen most convenient for your
use. The default display is the center of the screen. You can also define the coordinates in pixels. In the above
example, the Top of the video player window will be positioned 15 pixels down from the top of the screen. The Left
edge of the window will be positioned 15 pixels to the right of the screen's left edge.
Set Manually
Instead of using pixels, you can have the video player window appear in the center, corners or midpoints of the
screen by using this option. Pressing the Set Manually button will activate the following two windows.
Click on one of the arrows or the center button of the Dialog Positioner to move the Video Clip Player window. This
will move the Video Clip Player window relative to the button you selected. If you click on the button in the upper left
corner, the Video Clip Player window will move to the upper left corner of the screen. Click Save on the Dialog
Positioner and this is where the Video Clip Player window will display during playback of the macro.
Map a Drive
This macro command allows you to connect, disconnect or toggle network drives. You may wish to do this in order to
access a network server or another computer, bypass the network neighborhood or quickly make temporary network
connections.
Connect Drive
This instructs Windows to map a drive letter to a drive on another computer. The "Connect" field allows you to choose
from available drive letters on your computer. The "Network Drive" is the name of the drive you wish to connect up to.
You may type this in directly or you may click on the "Browse" button which will display all the possible network drives
available to you.
Make Connection Permanent instructs Windows to remember this network connection so that the next time
Windows is started, it will make the connection.
Choosing Use Default Name and Password will instruct Windows to attempt to make the network connection using
your logon name and password. If you do not choose this option, then you need to enter the logon name and
password required to access the network drive or drive located on the other computer.
The Display Connection Status option instructs the macro to display a dialog box indicating whether the
connection succeeded or not. This occurs when the macro is played.
Disconnect Drive
This instructs Windows to unmap a drive letter from a network drive. The "Disconnect" field allows you to select the drive
letter that is to be disconnected from the network.
Make Disconnection Permanent instructs Windows to remember that this drive is not to be connected to a network
drive the next time Windows is started.
The Force Disconnection Even if Drive in Use instructs the macro to disconnect the network drive even if a
program is using a file on the drive which is being disconnected. Normally you would not want to do this unless you
are absolutely sure that disconnecting will not have any adverse effects on programs which might be using the drive.
The Display Connection Status option instructs the macro to display a dialog box indicating whether the
connection succeeded or not. This occurs when the macro is played.
Toggle Connection
This command is a combination of the Connect Drive and Disconnect Drive. It first checks to see if the drive is already
connected to the network. If it is, it disconnects the drive. If the drive is not currently connected, then it makes the
network connection. All the fields and options for this command are the same ones used in the Connect Drive and
Disconnect Drive. Please refer to these commands above for more information on them.
Related Topics
Read/Write Registry Keys
If Registry
Select from the command choices, choose a variable and then click on the Browse button to locate the registry value
needed.
Related Topics
Create or Delete Registry Keys
If Registry
If Registry
This command allows you to take action based on whether a Windows Registry Key or Value exists or does not exist. Use
this command as you would any other If statement. You will need to close the If statement with an End If command.
If Registry
This consists of two parts. Select either the registry value or key. Then select the If Exists or Does not Exist option. The
macro will then look to see if the registry key or value exists or does not exist on the computer.
Path
Select the registry path. You can either type in the full path, or click on the Browse button to navigate to the key or value
needed.
Note: ALL registry commands (except the registry read and If Registry commands) REQUIRE full Read/Write access to
the registry in those parts that the user is wishing to modify. This is only an issue with Windows NT/2000/XP where
security permissions can be set. The system administrator is responsible for these settings as we do not have the ability
to modify them.
Related Topics
Create or Delete Registry Keys
Read Registry Keys
Break Command
The Break command may be used with the Repeat commands, Process a Text File or Process ASCII Text File commands.
Each of these commands processes data in a loop. Use the Break command to exit out of a loop before the entire cycle is
completed.
When using the Process File or Repeat commands, you may set up a conditional statement within the loop using IF
statements. If the condition is met, you may want to include a Break command to exit out of the loop instead of
continuing the entire process. When the condition is met and the macro gets to the Break command, the macro will skip
all other steps in the loop. It will next play back the first command after the End Repeat or End Process command and
continue with the rest of the macro.
Example
Here's an example of how this would work. The first few commands are counting the number of files in a folder. When
the macro gets to the 30th file, it will break out of the loop and send an email containing the data appended to the text
file selected in line 7 of the macro.
1.
2.
3.
4.
5.
6.
7.
8.
9.
Note: The Repeat Exit command and the Break command, when used with the Repeat commands, essentially perform
the same function.
Scripting Editor > Repeat > Break
Repeat Options
Macro Express allows you to repeat a portion of your macro any given number of times. You can optionally choose to
have an incremental counter used inside the repeat loop. All macro repeat loops must include an End Repeat command.
All commands immediately following the Repeat command will be repeated until an End Repeat command is found.
Start Repeat
To insert the start of a repeat in your macro, first select the location in the text where you want to start the repeat. Next
activate the Repeat Options window by one of the methods mentioned above. Then click on the "Start Repeat" button
and enter the number of times you want to repeat a portion of your macro in the Repeat Count box. Click on OK to save
your settings. All macro commands after the Start Repeat will be repeated until an End Repeat command is found.
Repeat Count
This is the number of times you want to repeat a portion of your macro.
Counter Start
This is currently only used in conjunction with a repeat counter. This specifies the starting point of the repeat
counter.
Counter Step
This is currently only used in conjunction with a repeat counter. This specifies an increment to apply to the repeat
counter each time the repeat loops.
Example
Let's look at an example using the Counter Start and Counter Stop. If we set the counter start to 5 and the counter step
to 10 and had a repeat count of 3 then a repeat counter would have the following values:
During the 1st of 3 loops: 5
During the 2nd of 3 loops: 15
During the 3rd of 3 loops: 25
Repeat Until
You may repeat a portion of a macro over and over until a condition is met. The condition is the comparison of either a
text, integer or decimal variable to a fixed value. Comparisons can be equal, not equal, less than, greater than, less than
or equal to or greater than or equal to. The comparison can also check to see if the variable contains or does not contain
a specific text string, number, decimal, etc. An example: Prompt a user for an integer value less than 10--you could put a
Repeat Until around the integer prompt command until the correct type of input was entered.
Sample
Here is an example of using the Repeat Until command. In this example, we want to make sure that Microsoft Word is
closed before the macro continues. The command to close Word would be placed before the macro commands listed
below. This macro has been set up in a repeat loop. Variable N1 has been set to 0. The macro will repeat this loop until
N1 has been changed to 1. In this macro we have instructed the N1 variable to change to 1 when it is detected that
Word has closed.
Variable Set Integer %N1% to 0
Repeat Until %N1% = 1
If Not Program Name "Word" running
Variable Set Integer %N1% to 1
End If
Repeat End
Note: The macro commands between the Repeat Until and Repeat End commands are always executed at least once,
because the Until condition is not evaluated until after the first iteration.
Sample Macro
Here is a simple macro that counts the number of files in a particular folder. The count is saved to variable N1.
Before starting the repeat loop, Integer variable N1 is set to 0. Each time the macro repeats through the files, N1 is
incremented by one until a final count is made. After the loop is completed, a Text Box Display command has been added
to display the file count.
Variable Set Integer %N1% to 0
Repeat with Folder
Variable Modify Integer: %N1% = %N1% + 1
Repeat End
Text Box Display: Files in folder
End Repeat
To insert the end of a repeat in your macro, you choose the location in the text where the repeat is to end. Next activate
the Repeat Options window by one of the methods mentioned above. Then click on End Repeat and OK to save your
work. All macro commands after the Start Repeat will be repeated until an End Repeat command is found.
Repeat Counter
Note: This command is included for backward compatibility only. We recommend that you use the Place Counter in
Variable option that is part of the Repeat Start command.
A repeat counter command can be placed inside a repeat loop. What this does is type via the keyboard the current count
of the repeat loop. For example, if you created a repeat that repeated 5 times and the only thing inside the repeat loop
was the incremental counter, then when you played the macro back inside of something like the Windows Notepad, it
would type out "12345".
The repeat counter can be especially useful when you have a situation where you want to create a unique name for each
repeated loop. For example, say you are running through a process multiple times and you want to save the results out
with a different name. Here you could set up a repeat and when it came time to save out the file name, you could tack
on the incremental counter to the end of the file name that is to be saved out. This way you would have a unique file
name for each repetition.
If leading zeros are desired on counter values, then you can specify the "Counter Width". For example, to ensure that all
values are at least 3 characters long, enter 3 for the width. This will produce 001, 002, etc.
The syntax for the repeat command with a counter would be:
Repeat Start
Repeat Counter: Width 1
Text Type: This is my macro text.
Repeat End
Repeat Exit
This command can be used to exit out of a repeat loop early, before the entire cycle is completed. You may use some
type of conditional statement within the loop. If the condition is met, exit the repeat loop before the entire cycle is
complete. The newer Break command will serve the same purpose as Repeat Exit.
Control Panel
Commands are available to run any of sixteen different Control Panel applets. Using the Enter the Name of an Applet
option will allow you to open other applets not predefined.
Default Printer
If you have more than one printer connected to your computer or network, you may find this feature to come in handy.
For example, you can create a macro to quickly change your computer's default printer from the laser to the ink jet for
color printing.
To select a new default, just click on the printer needed to highlight the selection. Click on the OK button to incorporate
the printer change into the macro. When the macro is run, the printer selected becomes the new default printer for the
computer.
Use this option to obtain the pixel color underneath the tip of the mouse cursor. The pixel color is assigned a numeric
value by windows, normally 6 - 8 digits in length. This numeric value is then saved to an integer variable such as N1.
Underneath Mouse
This option will get the pixel color of the pixel located directly underneath the mouse pointer. The pixel color is obtained
wherever the mouse cursor is located at the time this command takes place during the macro.
At Specific Coordinates
With this option you assign the specific mouse coordinates based on the active window or the entire screen.
Relative to Screen
With this option checked you are telling the macro to move the mouse cursor relative to its position on the computer
screen. You would use the "Screen Coordinates" numbers from the Mouse Locator with this option.
Relative to Window
With this option checked you are telling the macro to move the mouse cursor relative to its position within the
window that is active. You would use the "Active Window" numbers from the Mouse Locator with this option.
Screen Position
The set of numbers directly under Screen Position lists the position of the mouse relative to your computer screen. As
you move the mouse, you will notice the numbers changing in relation to the mouse cursor position. The number to
the left is the X coordinate, or how many pixels from the left edge of the screen. The number on the right is the Y
coordinate, or how many pixels the mouse is positioned from the top of the screen.
Active Window
The set of numbers directly under Active Window lists the position of the mouse relative to the active window or the
window that has the focus. When first activating the Mouse Locator window, it will have the focus. Clicking on a
window outside of the Mouse Locator will bring focus to that window. The Mouse Locator window will remain on top
so that you can read the coordinates for the window you want to use.
As you move the mouse, you will notice the numbers changing in relation to the mouse position. The number to the
left is the X coordinate, or how many pixels the mouse is positioned from the left edge of the active window. The
number on the right is the Y coordinate, or how many pixels the mouse is positioned from the top of the active
window.
Integer Variable
Assign the variable to the pixel color obtained.
Example
We want to know when a page has finished loading before continuing with the macro.
There is nothing to indicate that the page has loaded except for the word "Ready" in the
program status bar.
Here is how you could use the Get Pixel command to solve the problem:
1. Find a location on the screen that changes colors when the page has finished loading.
In this case, the word "Ready".
2. Use the Mouse Locator in the Get Pixel command to find the coordinates and the color
value of the pixel to check.
3. Use the If Variable command to see if the color value matches. If it does, then the
macro exits out of the Repeat loop and continues with the rest of the macro. If it doesn't,
then the macro repeats the loop again, looking for the change.
4. You may also want to add a Wait Time Delay to check every so second or so, rather
than constantly checking. Use the Wait Time Delay rather than a standard Delay. This will
free up CPU cycles during the wait time.
Macro Script
Variable Set Integer %N1% to 0
Repeat Until %N1% = 1
Get Pixel: Screen Coords: 100,100 into %N2%
Wait Time Delay 1 Seconds
If Variable %N2% = 186023
Variable Set Integer %N1% to 1
End If
Repeat End
--Page loaded and continue with rest of macro
Hibernate
This command places the computer in hibernate mode. Hibernate saves everything in memory on disk, turns off the
monitor and hard disk, and then shuts down the computer. When the computer is restarted, the desktop is restored
exactly as it was when you put it in hibernation. Normally you would put a computer in hibernation when you plan to be
away from the computer for an extended period of time.
To access this command from the Scripting or Direct Editors, click on the System category to expand the listing. Double
click on Hibernate or highlight it and click on one of the arrows to insert into the script. There is not a dialog window
associated with this command.
Lock Workstation
This command will lock a computer workstation. To access this command from the Scripting or Direct Editors, click on the
System category to expand the listing. Double click on Lock Workstation or highlight it and click on one of the arrows to
insert into the script. There is not a window associated with this command.
Note: This command is designed to only work with Windows 2000 and later.
Scripting Editor > System > Lock Workstation
Post Message
The PostMessage command allows the user to send a Windows message to the specified control.
Note: This command is designed for experienced users of Windows messaging. We are unable to provide support for
explaining how Windows messages work, what are the various messages available and what they do, etc.
Use RegisterWindowMessage
This command allows the user to enter a constant string that can be used by Windows to generate a message. This is
primarily used to communicate with other applications that have registered the same message.
Microsoft Definition of RegisterWindowMessage
The RegisterWindowMessage function defines a new window message that is guaranteed to be unique throughout the
system. The message value can be used when sending or posting messages.
The RegisterWindowMessage function is typically used to register messages for communicating between two cooperating
applications.
If two different applications register the same message string, the applications return the same message value. The
message remains registered until the session ends.
Only use RegisterWindowMessage when more than one application must process the same message. For sending private
messages within a window class, an application can use any integer in the range WM_USER through 0x7FFF.
Note: When Macro Express is installed, three .ini files ( PostMessage.ini, PostCommCtrl.ini and PostRichEdit.ini ) are also
installed into the Macro Express folder. The default path is C:\Program Files\MacExp3.0. These .ini files contain message
definitions that you can use for reference. Double click on the files to open and view in Notepad or Wordpad.
Related Topics
Control Overview
Controls Tutorial
Logoff
This option will close all programs currently running and allow you to log on as a different user.
Reboot
This will close all programs, shut down and start the computer up again.
Shut Down
This option will shut down the computer.
To select a screen display setting, just click on the screen resolution that you want. Your choice should now be
highlighted. Then click on the OK button to incorporate the screen resolution change into your macro. Click Cancel to
exit.
Note: Depending on your video driver, you may need to reboot your computer before the new screen resolution
settings take effect. If this is the case with your system, you can place a Reboot command in your macro - after your
screen setting command. This will allow you to change the screen resolution and then reboot your computer to initiate
the settings.
System Controls
The System Controls window provides a number of handy commands that will help save time. If you use screen savers,
like to swap out desktop wallpaper frequently or need to adjust keyboard speeds, you'll find these commands quite
useful.
Tile Bitmap - This option will make copies of the image to tile across and fill the entire screen.
Center - This will center the image on your desktop.
Stretch - This option will stretch the image to fill the entire screen.
Position - You can position the image anywhere on the screen. With this option checked, fill in the X and Y
coordinates to position the image on the desktop.
Bypass File Existence Check: With this option not checked, Macro Express will verify that the file you selected
exists on your computer. If it doesn't, you will be prompted to select a valid file before being able to continue.
Placing a check next to this option will bypass this file checking process. One reason you may want to do this would
be to write a macro for use on another computer and the file doesn't exist on the machine you are presently using.
No Bitmap: Select this option to not have an image displayed.
System Dialogs
Commands
Suspend Computer
Place laptops in a suspend mode to save on battery power.
Undock Computer
Allows a laptop or notebook computer to undock from a docking station.
Dialog Windows
Date and Time
Activates the Date and Time window so that you can reset your computer's clock, adjust the date or change your time
zone.
Find Computers
Activates the Find Computer window so that you can locate a computer on a network.
Find Files
Activates the Find Files window so that you can search your computer for a particular file.
Run Programs
Activates the Run Programs window so that you can run a program, install a new one, etc.
Windows Terminal Services provides the ability for several users to run Windows-based applications on a single server.
The applications for each user run in a session. Each session is assigned a unique number. The "Store Terminal Services
Session ID" command allows a macro to obtain this session ID number.
Some resources, such as the hard drive, are shared between sessions. If a macro attempts to write to and then read
from a file, macros used by different sessions may attempt to write to or read from the same file. This can lead to file
corruption. By using the Session ID as part of the filename, the macro running on each session will be assured of using a
unique filename.
The session ID can be saved in either a text string variable such as %T1% or in an integer variable such as %N1%.
Date
Insert the system date into your macro for use as a date stamp or insert the date into a variable for macro manipulations
based on the current date. This command is maintained for backward compatibility. We recommend using the
Date/Time command.
A variety of date formats are available. Use the scroll bar to find the format that you need, as shown in the example
above. The left hand column shows the date formats while the right hand column shows how the date format will appear
in your macro. Highlight with the mouse the option you want and then click OK. Click cancel to exit and not put the
current date in your macro.
Related Topic
Customize Date and Time
Format
We have created a few sample formats that can be selected. At the bottom of this page, we have listed below all of the
format options available. You can create formats for just the date, the time or both. Just enter the letters into the format
field that correspond with the results that you want.
Place in Variable
Saves the date and/or time to a text string variable. You can then use this with other variable actions later in the
macro.
Type Out
This option types the text (date and/or time) into the application currently open when the macro runs.
Date/Time
Use Current Date / Time
This will use the date and time from your system clock at the time you run the macro.
Specific Date / Time
You can use this option to have a specific date or time played back in a macro. You can set the value to a specific
date or time, either in the past or future.
Adjust Current Date/ Time
You can adjust the date or time to Days, Months, Hours or Minutes into the future or past. The calculations are
based on your computer's system time and date.
Prompt User
This option will open a small dialog window during macro playback requesting the user select a date and or time. The
date and/or time will be displayed in the format selected.
Prompt
Enter any instructions for the macro user in the Prompt field. The instructions will display in the window that opens
during macro playback. The current date will be displayed in the edit field. The user can either overwrite any of the
date information or use the attached calendar to select a date. If a time prompt is selected the current time will be
displayed in the edit field. Highlight the hours, minutes or seconds to edit by overwriting the current entry or using
the up or down arrows on the keyboard to change the values.
Set Manually
This button will open a window that allows you to determine where you would like the Prompt window to appear on
the screen during macro playback.
Prompt for Date/Prompt for Time
You can select to have the macro prompt the user for a date, a time or both.
Halt Macro if Canceled
If the user exits out of the Prompt message without entering a value, then the macro will not continue and is
terminated.
'xx'/"xx" Characters enclosed in single or double quotes are displayed as-is, and do not affect formatting.
Encrypted Text
When viewing or editing the contents of the macro, the encrypted text will display as encrypted text - *****. Useful for
passwords and the like so that people snooping through the program cannot readily uncover passwords. Use this along
with the Password command for additional security.
Type in your password or other text into the text field. Whatever is typed into this field will appear as above with stars,
one star representing each character you input. When the macro is played back, the full text will appear, not the
encrypted text.
Place in Variable
Place the encrypted text into a variable with this option. Select the variable name from the drop down list.
Related Topics
Password Protection in Macro
Password Protect a Macro
Password Protect Macro File
Password Protect on Startup
Symbols
Scripting Editor > Text > Text Type > Symbols Button
Any of the symbols or characters in the Insert Symbols window displayed below are available for input into macros.
Highlight the symbol or character you want to use and click OK. The symbol will be placed in your macro text. You can
also double click on the symbol to place it directly in the macro. Click Cancel to exit without inserting symbols. The
symbol or character you selected will be typed during the playback of the macro.
Text Type
When in the Scripting Editor, use this window to enter text and a variety of other keystrokes as part of your macro script.
The text or keystrokes that you enter will play back into the application that you have open when running the macro. The
Text Type command is not necessary when using the Direct Editor. Text and the keystrokes displayed below may be
input directly to the Direct Editor.
Text Type
Type the text that you want to include in your macro script directly into the edit box as shown above. Click on one of the
entries, such as Delete, in the yellowed area to insert it into the edit box. Or Tab and arrow to the entry and press enter
to insert the item. This will insert a Delete command into your macro script. Clicking on one of the F1 - F12 buttons will
insert the F1 - F12 command you selected into the edit field.
Symbols: To insert symbols or characters into your macro text click on the Symbols button. An Insert Symbol
window will appear. Locate the symbol or character you want, highlight it and click on the OK button to insert it into
the script. Or double click on the symbol to insert to the script.
Variables: You can place variables into the macro text. Anything you have saved to the variable you select will be
typed during the playback of the macro. Click on the Variables list box to select the desired variable and then click on
the Insert button. If you selected T1 as the variable, it should display as %T1% in the macro script.
Misc Keys: Miscellaneous keystrokes such as the Print Screen, Left CTRL Key, Win Key, etc. can be inserted by using
the "Misc Keys" list box. Select the key and then click on the Insert button to add to the Text Type.
Playback Options
Text Type Normally
With this option selected the text entered in this command will be typed out into the receiving application. This is the
default selection.
Caution: It is possible when typing back long strings of text that the Keyboard Buffer may overflow. When this happens
you will notice some missing or scrambled text among the text that played back. Sometimes you may also hear a strange
high pitched sound. The text is trying to play back too fast. If you are experiencing this problem, you can either select
the Use Clipboard to Paste Text option, set a standard Text Type Delay from the Preferences window, or use the
Keystroke Speed command to control the text playback speed.
Use Clipboard to Paste Text
With this option selected, the text will be played back through the Windows clipboard when the macro is run. This option
should only be used with text. If you have inserted other keys such as Alt, Ctrl, Shift, etc. into this command when using
the Clipboard option, then these keys will paste back as <ALT>, <CONTROL>, <SHIFT>, etc. instead of playing the
keystroke.
Send Text to Control
If you have previously defined a Control Variable, the text entered in this command will be typed into the Window Control
that you have selected. The control that you select must be able to accept text input. Otherwise this command will
appear to do nothing.
Time
Insert the system time into your macro for use as a time stamp or insert the time into a variable for macro manipulations
based on the current time. This command is maintained for backward compatibility. We recommend you use the newer
Date/Time command.
Set Time
You can also have a future or past time placed in your macro text, to match another time zone, for example. Choose if
you need a prior time or future time by clicking on either the Future or Past buttons. In the Set Time box, type in the
number of hours beyond or prior to the current hour.
Related Topic
Customize Date and Time
Delay
Use this function to add Delay timing to macros. Delays may be necessary to allow time for a window to gain focus
before the macro can proceed correctly or for any number of other reasons. The delay helps ensure that the macro
doesn't play back faster than Windows can keep pace.
Related Topics
Pause
Wait for Commands
Keystroke and Mouse Speed
Pause Macro
Macro Express allows for pauses to be placed in macros. When you invoke a macro, it will begin to play back until the
script reaches the pause command. When the pause is reached, playback will stop and a new small window will appear
indicating that your macro has been paused. You may then do whatever you like. At any time you may choose to either
continue the playback or to cancel the macro by clicking the appropriate button on the pause window. You may also
continue the playback of the paused macro by pressing the hotkey assigned to the macro. This way you do not have to
use the mouse to continue. For scheduled macros, shortkeys, etc. where there is no hotkey to press, you can use the
System Macro to resume macro playback. The default setting for this hotkey is Ctrl-Alt-Shift-Y.
Keep Focus
With this option selected the Pause window gains window focus (is the active window). If this option is not selected
the Pause window opens but does not have focus. The window currently in use when the Pause window opens
retains focus.
Basic Pause
The Basic Pause will stop the macro where you inserted the pause and pop up a window in the center of the screen
stating that the macro pause is in effect. You can then click on the Resume button to continue the macro playback or the
Abort button to cancel the remainder of the playback. You may also continue the playback of the paused macro by
pressing the hotkey again or using the system hotkey.
Complex Pause
Selecting the Complex Pause activates the above window.
Location
With the Complex Pause you will be prompted for screen coordinates to position the pause window on the screen.
The coordinates allow you to position the pause window so that it does not pop up over the area of the screen that
you want to work with. The coordinates are in pixels. So in the above example, the top of the pause window will be
positioned 15 pixels down from the top of the screen. The left edge of the window will be positioned 15 pixels to the
right of the screen's left edge.
Set Manually
Instead of using pixels, you can have the Pause window appear in the center, corners or midpoints of the screen by
using this option. Pressing this button will activate the following two windows.
Click on one of the arrows or the center button of the Dialog Positioner to move the Pause Positioner window. The
Pause Positioner window will move to the position on the screen where the Pause window will display during the
macro playback. Click on the Save button of the Dialog Positioner window to save the positioning.
Message
An optional message can be added which displays with the pause to give additional instructions to the user. Just type
the message in the edit box. The message box will hold up to 180 characters of text.
When the pause message appears during the playback of your macro, click on the Resume button to continue the
macro playback or the Abort button to cancel the remainder of the playback. You may also continue the playback of
the paused macro by pressing the hotkey assigned to the macro or by pressing the system hotkey.
Related Topics
Delays
Wait for Commands
Speed
The Speed window allows you to adjust the playback speed of keystrokes or mouse movements or to adjust the playback
rate of the entire macro.
Macro Speed
You would normally set the macro speed factor if you have captured (recorded) a macro at actual speed. With all the
timing delays between each keystroke and mouse movement recorded, you may wish to speed up or slow down the
macro. To slow down a macro, you place a number greater than one in the Playback Factor field.
For example, placing a "4" in this field will make the macro play back 4 times slower. If you want to speed up the macro,
you would place a value less than one in the Playback Factor field. For example, placing a 0.5 will speed up the macro by
a factor of 2, using 0.25 by a factor of 4, etc.
Scripting Editor > Timing > Select the Wait for Command Needed
option requesting the name of the program. You can either type in a partial name of the program or click on the List
Programs button to select from the list of programs installed on your computer. If using the list, highlight the program
you want and click OK. When you play back your macro, the macro will stop at this point and wait for the program you
selected to terminate.
Wait for Left Mouse Click - The macro will wait until the left mouse button has been clicked to resume.
Wait for Middle Mouse Click - The macro will wait until the middle mouse button has been clicked to resume.
Wait for Right Mouse Click - The macro will wait until the right mouse button has been clicked to resume.
2. Enter the actual URL that is loaded last into the URL field. To discover what the last URL loaded is, enter some
text in the URL field, perhaps "JUNK" and set the "Wait a Maximum of:" field to something short, like 45 seconds or 1
minute. Then run the macro containing the Wait for Web Page command. After 45 seconds or 1 minute a message
will pop up that includes the last loaded URL. You may have to repeat this step with a longer wait time to make sure
the web page has actually been loaded. Then, once you know the actual URL that is loaded last, you can enter all or
part of that URL in the Wait for Web Page command.
Note: The Wait for Web Page to Load command only works with Internet Explorer. It requires Internet Explorer 4.0 or
greater, except v5.0 which will not work due to an IE bug. If you are using this version, v5.0, you will need to upgrade to
at least version 5.01 of Internet Explorer.
Wait Indefinitely
With this option checked, the macro will not resume until the Wait For action you specified has occurred.
Wait a Maximum of ___ Minutes ____ Seconds
With this option checked, the macro will wait the number of minutes and seconds specified for the appropriate Wait For
action to occur. If that action does not take place within the specified time frame, the macro will abort. A window will pop
up at that time explaining that the macro has aborted and state the reason(s) why. A maximum number of 999 minutes
and 59 seconds is allowed in these fields, longer than most of us would want to wait for a window to appear.
Related Topics
Delays
Pauses
Variables Overview
Variables and conditions add an intelligence element to your macros. It also brings an added level of power to your
macros. It gives you the capability that software developers find when writing software programs. However, we have
integrated the use of variables into our commands so that they are easy to implement and use.
A variable is simply something that holds a value. The value can be changed and modified. In other words, it is variable
because it can be anything.
Variables allow input of data into the macro from a variety of sources such as from the macro itself, a file, user input, the
Windows clipboard, a .INI file, the title of a window and many others. The variables can then be manipulated, processed
and tested. Actions can be taken on the results of the test or on the variables themselves. We'll give some specific
examples below to help cement the idea behind the use and power of variables.
Types of Variables
We support 4 different types of variables. These are Text String, Integer, Decimal and Control variables.
1. A Text String variable can hold any type of character, number, word, phrase or paragraph. Anything you can type
into a word processor can basically be held in a text string variable.
2. An Integer variable is one that can hold a "whole" number. Whole numbers are values that do not contain
fractions (... -2, -1, 0, 1, 2 ...). Note: An integer variable (N1, etc.) can range from 2147483648 to
2147483647. When the value exceeds 2147483647, it wraps. If an integer variable contains 2147483647 and
you add 1 to it, the integer variable will contain 2147483648.
3. A Decimal variable is one that can hold any type of number, such as 12.432 or -1.3. Note: A decimal variable
(D1) can range from 5.0 x 10^ -324 to 1.7 x 10^308 with 15 to 16 significant digits. This first example is a
decimal expanded to include 324 leading zeros followed by the number 5, represented as .000(321 more zeros)5.
The second range extends to 17 followed by 308 zeros which would look like 1700000000(300 more zeros).0.
The numbers are rounded to 15 or 16 significant digits.
4. A Control variable captures information from a window control, such as an edit box, window title, button, etc.
This information can then be manipulated to work with other Variables in Macro Express are represented by a
letter followed by a number.
Text string variables always start with the letter "T" and can be followed by the numbers 1 - 99 as there are 99 available
text variables. Integer variables always start with the letter "N" and can be followed by the numbers 1 - 99 as there are
also 99 available integer variables. Similarly, decimal variables always start with the letter "D" and can be followed by the
numbers 1 - 99 as there are 99 decimal variables available. Control Variables always start with the letter "C" and can be
followed by the numbers 1 - 99 as there are 99 control variables available.
Defining Variables
There are numerous commands that allow you to define an initial value for a variable. See the Set String Variable, Set
Integer Variable and Set Decimal Variable commands. In addition, variables can be set using the date, time, encrypted
text, repeats, processing a text file, processing an ASCII delimited text file macro and other commands.
There are methods also available to modify or manipulate the variables once they have been created. See the Modify
String Variable, Modify Integer Variable and Modify Decimal Variable commands. See the Controls section to learn more
about how to use these variables.
Playback of Variables
Text Variables can be placed in the input fields of practically all macro commands. To do so, you would place the name of
the text variable surrounded by percent signs (%). This would look like %T1% for the variable T1. For example, if you
wanted to launch a program, you could put %T1% for the file name of the program to launch. When the macro is
executed, it will attempt to run the program that is defined by T1.You will assign a value to T1 at some other point in
your macro and this value is what will be used as the file name.
Or you may find that you have a inserted a number of delay commands in your macro script. Instead of inserting 5
seconds as the delay time, you could insert %N1%. The macro will delay the number of seconds defined in N1.
There are many ways to use variables. Besides placing variables in commands as described above, there are some
commands that can accept and use a variable directly as part of the command. These include window resizing and
repositioning commands, mouse movement commands, repeat command and processing text or ASCII delimited text
files.
Clear Variables
Use this option to clear the value of a variable during macro playback. You can select to clear all variables or a subset of
all variables.
Use with Variable Modify String and Variable Set String Commands
The "Variable Modify String: Save %T1% to INI File" and "Variable Set String %T2% from INI File" commands require
that you specify a filename, a Section Name, a Key Name and a string variable (T1 through T99).
When you use the "Variable Modify String: Save %T1% to INI File" macro command, the content of the variable
is written as the value of the specified Key.
When you use the "Variable Set String %T2% from INI File" macro command, the value of the specified Key is
read and placed into the specified variable.
Use the Set Decimal Variable command to assign a decimal value to a variable. Then use the commands below to modify
or manipulate the original decimal variable. Note: A decimal variable (D1) can range from 5.0 x 10^ -324 to 1.7 x
10^308 with 15 to 16 significant digits. This first example is a decimal expanded to include 324 leading zeros followed by
the number 5, represented as .000(321 more zeros)5. The second range extends to 17 followed by 308 zeros which
would look like 1700000000(300 more zeros).0. The numbers are rounded to 15 or 16 significant digits.
Add
This allows you to add a decimal variable to a number or to another decimal variable and place it in a decimal variable of
your choice.
Subtract
This allows you to subtract a decimal variable from a number or from another decimal variable or subtract a number from
a decimal variable. The result can be placed in a decimal variable of your choice.
Multiply
This allows you to multiply a decimal variable with a number or with another decimal variable and place it in a decimal
variable of your choice.
Divide
This allows you to divide a decimal variable with a number or with another decimal variable or divide a number with a
decimal variable. The result can be placed in a decimal variable of your choice.
Round
This command will round the value of a decimal variable to the number of decimal places you select. If you are copying a
decimal value and saving it to a variable or modifying a decimal variable such as multiplying or dividing, you may want to
trim the number of decimal places. Just select the variable to round and insert the number of decimal places.
Note: The Round Decimal Variable command uses asymmetric arithmetic rounding to determine how to round values
that are exactly midway between the two values that have the desired number of significant digits. This method always
rounds to the larger value.
The following examples illustrate the use of Round Decimal Variable:
For example:
If %D1% is 1.234 then Round Decimal Variable %D1% to 2 decimal places results in 1.23
If %D1% is 1.235 then Round Decimal Variable %D1% to 2 decimal places results in 1.24
If %D1% is -1.235 then Round Decimal Variable %D1% to 2 decimal places results in -1.23
Truncate To Integer
This allows you to convert a decimal variable to an integer variable. Any fractional part of the decimal value will be
truncated.
Copy Value
This allows you to copy one decimal variable to another decimal variable.
Related Topics
Save or Restore Variables
Setting Decimal Variables
Variables Overview
Command Options
These commands let you modify or manipulate an integer variable.
Add
This allows you to add an integer variable to a number or to another integer variable and place the sum into an integer
variable of your choice.
Subtract
This allows you to subtract an integer variable from a number or from another integer variable or subtract a number from
an integer variable. The result can be placed in an integer variable of your choice.
Multiply
This allows you to multiply an integer variable with a number or with another integer variable and place the result into an
integer variable of your choice.
Divide
This allows you to divide an integer variable with a number or with another integer variable or divide a number with an
integer variable. The result can be placed into an integer variable of your choice.
Convert To String
This allows you to convert the integer variable to a text variable.
Convert To Decimal
This allows you to convert an integer variable to a decimal variable.
Copy Value
This allows you to copy one integer variable to another integer variable.
Increment
This option will increase the variable selected by one. For example, if variable N1 had an original value of 25, the value
would change to 26 after running this command.
Decrement
This option will decrease the variable selected by one. For example, if variable N1 had an original value of 25, the value
would change to 24 after running this command.
Related Topics
Save or Restore Variables
Setting Integer Variables
Variables Overview
After you have created a text variable, you can use these commands to modify the value of that variable.
Option 1
Trim
This allows you to remove all spaces and control characters on the left and on the right of the variable value.
Left Trim
This allows you to remove all spaces and control characters to the left of the variable value.
Right Trim
This allows you to remove all spaces and control characters to the right of the variable value.
Strip CR/LF
This allows you to remove any Carriage Returns and Line Feeds embedded in the variable value.
Convert To Integer
This allows you to convert the text variable to an integer variable. If the text variable does not contain a valid value to be
converted to an integer (i.e. non numeric characters), then the integer value will be set to zero.
Convert To Decimal
This allows you to convert the text variable to a decimal variable. If the text variable does not contain a valid value to be
converted to a decimal (i.e. non numeric characters), then the decimal value will be set to zero.
Append Text
This allows you to add text to the end of a variable. The text to be appended is entered in the "Text To Append" field.
Append Text String Variable
This allows you to add or combine the contents of one text variable with another text variable.
Copy Whole Text
This allows you to copy the entire contents of one text variable to another text variable.
Copy Part Of Text
This allows you to copy a portion of one text variable to another text variable. You specify the starting position and the
number of characters to copy. The starting position and the characters to copy can be set to either a value you select or
can be set by an integer variable. Because integer variables can be set with the length of a text variable or the position of
text in a text variable, you have much greater flexibility in determining what you want to copy.
Delete Part of Text
This allows you to delete a portion of a text variable. You specify the starting position and the number of characters to
delete. The starting position and the characters to delete can be set to either a value you select or can be set by an
integer variable. Because integer variables can be set with the length of a text variable or the position of text in a text
variable, you have much greater flexibility in determining what you want to delete.
Uppercase
This allows you to convert the entire contents of a text variable to uppercase letters.
Lowercase
This allows you to convert the entire contents of a text variable to lowercase letters.
Pad Left
This allows you to pad the left side of a text variable with spaces. You specify the width that the resulting variable should
have. For example, if the text variable contained the name "Fred" and you specified a width of 15, a total of 11 spaces
would be added to the left side of "Fred" since "Fred" takes up 4 spaces (4 + 11 = 15). The pad left can be used for right
justifying values such as columns of numbers.
Pad Right
This allows you to pad the right side of a text variable with spaces. Specify the width that the resulting variable should
have. For example, if the text variable contained the name "Fred" and you specified a width of 15, a total of 11 spaces
would be added to the right side of "Fred" since "Fred" takes up 4 spaces (4 + 11 = 15). The pad right can be used for
left justifying values.
Replace Substring
This option allows you to find a string of text within your variable and replace it with another set of text. In the example
above, the macro is looking for "2001" in the text string saved to variable T1. Any instances of "2001" will be replaced
with "2002".
Replace All Instances
Check this box to have every instance of your text string replaced. With this box not checked, the first instance of the
text string will be replaced. Any other instances will not be changed.
Ignore Case
With this option checked, the substring that the macro is looking for will ignore whether the text uses upper and
lower case letters.
Option 2
Save to Clipboard
This option allows you to save the variable to the Windows Clipboard.
Save to Text File
This option allows you to save the variable to a text file.
Append to Text File
Use this option to have the variable append to a text file.
Save to INI File
Use this option to save the variable to an INI file. See the topic INI Files and Variables for more information.
Save to Environment Variable
Windows maintains "global" variables that the system can access at any point. Some common ones are as follows:
temp -- holds the location of the temporary folder on your computer
windir -- holds the folder name where windows is installed
path -- holds a number of folder names where files should be searched if a file cannot be found in the current folder
Use this command to set up your own environmental "global" variables that you can use later or use to modify existing
variables. A complementary command that can "read" an environment variable is part of the Variable Set String
commands.
environment block represents environment variables for all users of the particular computer. A user's environment block
represents the environment variables the system maintains for that particular user, including the set of system
environment variables.
--- Definition #3 --To set environment variables with Windows NT
1. On the Start menu, point to Settings, then click Control Panel.
2. In the Control Panel, double click System.
3. In the System Properties dialog box, click the Environment tab, and specify your environment variable setting, using
the User Variables for, Variable, and Value boxes.
4. Exit the development environment and restart it for the changed environment variable to take effect.
To set environment variables with Windows 95
1. Add the environment variable to the autoexec.bat file.
2. Restart Windows 95 for the change to take effect.
Related Topics
Save or Restore Variables
Setting Text String Variables
Variables Overview
Macro Express allows the content of a variable to be loaded during the playback of a macro and executed as part of the
macro. This can be particularly helpful in cases where you want part of the macro to be dynamic. You change the content
of the variable to fit the specific need before playing the macro.
The "Run Macro in Variable" command is similar to the "Load Macro Text File" command but, because there is no file I/O,
the "Run Macro in Variable" command is much faster.
Many macro commands require one or more Separator Characters. The Separator Character is used to indicate the end of
a command or the end of a parameter within a command. Putting the Separator Character directly inside a macro
command is not supported. When putting the ASCII macro commands in a variable to use with the Run Macro in Variable
command, you can include \s wherever the Separator Character is needed.
For example, the ASCII representation of the Text Type command looks like this:
<TEXTTYPE:A text type example|>
Note: A Separator Character | is required after the word 'example'.
To use the Run Macro in a Variable command successfully, use the following to assign this command to a variable
without using the separator character:
<TEXTTYPE:A text type example\s>
resulting in:
Variable Set String %T1% "<TEXTTYPE:A text type example\s>"
This table shows several other substitutions for characters that cannot be added directly to a macro command:
Code
Hexadecimal
Value
08 hex
Character Description
\b
Decimal
Value
8 dec
\n
10 dec
0A hex
LF - Line Feed
\r
13 dec
0D hex
CR - Carriage Return
\t
9 dec
09 hex
HT - Horizontal Tab
BS - Backspace
\s
1 dec
01 hex
Separator Char
\\
92 dec
5c hex
\ character
\xHH HH = string of 2 hex digits. Use this to add any character, specified in hexadecimal format, to the Run Macro in
Variable command.
Additional Information
When including file paths in the Run Macro in Variable command, you will need to be careful when including certain
characters in your path. For example, if you need to include a path like c:\temp the \t will be interpreted as a HT or
horizontal tab character. To avoid this you can change the case.
c:\Temp
or you can use a double \
c:\\temp
You may also want to include variables in the Run Macro in Variable command. If you include %T1%, then the %T1%
will be changed to the content of the T1 variable. This may not be what you want. Suppose variable T1 contains one, T2
contains two and T3 contains three. Inside the Run Macro in Variable command the following:
T1=%T1%\r\nT2=%T2%\r\nT3=%T3%
would be changed to this:
T1=one\r\nT2=two\r\nT3=three
To include %T1% and not the content of %T1% do this:
T1=\x25T1\x25\r\nT2=\x25T2\x25\r\nT3=\x25T3\x25
This works because the % character can be replaced by \x25.
Save
The four save commands allow you to save variables to memory. You can select from the commands to save all
variables, save all text variables, save all integer variables or save all decimal variables. Used in conjunction with the
restore variables command, variables can be passed quite easily from one macro to the next on independent running of
macros. Where one macro does a save variable command, the next macro can do a restore variable command to obtain
the values used in the first macro.
Restore
The four restore commands allow you to restore variables from memory. You can select from the commands to restore
all variables, restore all text variables, restore all integer variables or restore all decimal variables. Used in conjunction
with the save variables command, variables can be passed quite easily from one macro to the next on independent
running of macros. Where one macro does a save variable command, the next macro can do a restore variable command
to obtain the values used in the first macro.
Click on one of the arrows or the center button of the Dialog Positioner to move the Enter Value window. This will
move the Enter Value window relative to the button you selected. If you click on the button in the upper left corner,
the Enter Value window will move to the upper left corner of the screen. Click Save on the Dialog Positioner and this
is where the Enter Value window will display during playback of the macro.
Related Topics
Save or Restore Variables
Modify Decimal Variables
Variables Overview
Mask Input - With this option selected, the text entered into the input box will be masked. Entries will show as
***.
Prompt Always on Top - This options makes sure that the prompt window is always on top of other windows
open on the computer.
Store "CANCEL" if cancelled - If the user closes the input window without entering or saving an entry, CANCEL
will be saved as the variable.
Related Topics
Save or Restore Variables
Modify Text String Variables
Variables Overview
Option 1
Set Value Now
This option allows you to assign a value to the variable right now. Enter this value in the "Initial Value" field.
Prompt For Value
This will pop up an input box when the user runs the macro and allows the user to input the integer value. You can enter
text in the "Prompt Text" field that helps explain the type of value you want the user to input. You can also define the
position on the screen where you want the input box to appear during the playback of the macro.
Mask Input - With this option selected, the text entered into the input box will be masked. Entries will show as
***.
Prompt Always on Top - This options makes sure that the prompt window is always on top of other windows
open on the computer.
Store "0" if canceled - If the user closes the input window without entering or saving an entry, 0 (zero) will be
saved as the integer variable.
Example
This example shows how to obtain the last 14 characters of a text string
when the string is of varying lengths. For this example, the text string is
saved to variable T1. The text string could have been copied to the
clipboard and then saved to a variable, extracted from a Text File, input by
a user, or any number of ways.
1. Variable Set Integer %N1% from Length of Variable %T1%
2. Variable Modify Integer: %N1% = %N1% - 13
3. Variable Modify String: Copy Part of %T1% to %T2%
Step one calculates the length of the text string variable and saves
the value to N1.
Step two subtracts 13 characters from the length of the string and
saves the new value to N1.
The last step copies just the last 14 characters of the string and
saves the text to a new value of T2, as shown in the image below.
Example
This example shows how to save all characters before the @ symbol to a
new text string variable when the string is of varying lengths. For this
example, the text string is saved to variable T1. The text string could have
been copied to the clipboard and then saved to a variable, extracted from a
Text File, input by a user, or any number of ways.
1. Variable Set Integer %N1% from Position of Text in Variable %T1%
2. Variable Modify Integer: %N1% = %N1% - 1
3. Variable Modify String: Copy Part of %T1% to %T2%
Step one calculates the position of the @ symbol in the text string variable
and saves the value to N1.
Step two subtracts one character from the length and saves the new value
to N1.
The last step copies all of the characters before the @ symbol and saves
the text to a new value of T2.
Option 2
The first seven options, those in the left hand column, are based on the computer's system clock. If the clock is incorrect,
the integer values will also be incorrect. An example of using one of these options would be the Set Value From Current
Hour. You could have the macro play one set of instructions if the system clock reads before 5:00pm or play back
another set of instructions if the system clock reads after 5:00pm.
Set Value from Current Day
This option allows you to set the integer value based on the current date, 1 -31.
Controls
These four Set Value from Control commands are similar to the Set Values from Current Window commands. But rather
than look at the current window, these commands set the value from a specific control. Controls refer to the identifiable
parts of a specific application window. Controls may include such things as a button, an edit box, a toolbar, a window title
bar or other items. The control may be part of the main application window or be part of a child window (a window
within a window). Depending on how the application was written, the entire window may just be a single control.
Set Value from Control Left
This will examine the Control designated its location on the screen. It will obtain the left position (in X,Y screen
coordinates) of this Control and place it in the variable. Note: You can get the right position of the Control by adding
the Control Left to the Control Width.
Set Value from Control Top
This will examine the Control designated and its location on the screen. It will obtain the top position (in X,Y screen
coordinates) of this Control and place it in the variable. Note: You can get the bottom position of the Control by
adding the Control Top to the Control Height.
Set Value from Control Width
This will examine the Control designated and its size on the screen. It will obtain the width (in pixels) of this Control
and place it in the variable.
Set Value from Control Height
This will examine the Control designated and its size on the screen. It will obtain the height (in pixels) of this Control
and place it in the variable.
Computer Monitor
These two options will obtain the width or height of a monitor in pixels. In essence these commands determine the
screen resolution of a monitor. Then use the If Variable command to take specific actions based on which screen
resolution is found on the monitor.
Set Value from Monitor Width
Save the width of the monitor in pixels to an Integer variable. If you have a single monitor, then insert 0 (zero) as
the monitor number. If you have multiple monitors connected to your system, then insert 0 as the first monitor, 1
(one) as the second monitor, 2 (two) as the third monitor, etc.
Set Value from Monitor Height
Save the height of the monitor in pixels to an Integer variable. If you have a single monitor, then insert 0 (zero) as
the monitor number. If you have multiple monitors connected to your system, then insert 0 (zero) as the first
monitor, 1 (one) as the second monitor, 2 (two) as the third monitor, etc.
Related Topics
Save or Restore Variables
Modify Integer Variables
Variables Overview
Creation Date/Time - The date and time that the file was originally created.
Modified Date/Time - The date and time that the file was last modified or updated and saved.
Last Accessed Date/Time - The date and time that the file was last accessed or opened.
Note: Not all file systems will support all three of these date/time formats. Macro Express will warn you when you try to
run the macro if the format you selected is not available .
The date and time components are broken down to six different variables as described below.
Month/Date/Year
In the example above, the month is saved to Integer variable N1, the day to N2 and year to N3. So if the file date was
December 25, 2001, the value saved to variable N1 would be 12. The value saved to N2 would be 25. And the value
saved to N3 would be 2001.
Hour/Minute/Seconds
Hour -The hour is saved in a 24 hour format. So if the file time were between midnight and 1:00am, the hour
would be saved to the variable as 0. If the file time was between 11:00 am and noon, the hour would be saved
to the variable as 11. If the file time was between 11:00 pm and midnight, the hour would be saved to the
variable as 23.
Minute - Minutes are saved to variables as 0 to 59.
Seconds - Seconds are also saved to variables as 0 to 59.
Drive - This is the letter drive on your computer, including the colon.
Path - This variable contains the folders where the file is located.
Filename - This variable contains just the name of the file without the file extension.
Extension - This variable contains the file extension, such as .txt, .bmp or .exe.
Expand Filename
The Expand Filename converts a relative file name into a fully qualified path name. For example, if the current directory
is c:\Temp and the Filename/Path is "..\work.txt" and Expand Filename is unchecked, then resulting values would be:
Drive:
Path: ..\
Filename: work
Extension: .txt
But if Expand Filename is checked, then the resulting values would be:
Drive: c:
Path: \
Filename: work
Extension: .txt
Example
For the file displayed in the image above, here is what would be saved to each variable.
Drive: C:
Path: \Program Files\Macro Express3\
Filename: MacExp
Extension: .exe
Value to retrieve
Select the information needed from the drop down list. This information will be stored in the variable that you choose.
You can obtain the path information to various folders on the computer, such as My Documents shown in the example
above. You may also obtain various Macro Express information such as the macro file in use, the installation path, where
the Macro Express preference settings are stored, etc. Machine specific information may also be retrieved, such as owner
name, machine name, etc.
This command allows you to convert a numeric value into its ASCII character equivalent. For example the number 65
represents the letter A. Or in the example above, the number 123 represents the character {. The range of values
allowed is from 0 to 255.
In Variable
The numeric value can be assigned using an integer value (N variable) specified previously in the macro.
Constant
This option allows you to directly assign the numeric value.
This command is essentially the inverse of the Variable Set to ASCII Character. It converts an ASCII character to its
ASCII numeric equivalent. For example, the letter "a", converts to a numeric value of 97. The letter "A" converts to a
numeric value of 65.
In Variable
The ASCII Character may be assigned using a text string variable value (T variable) specified previously in the macro.
Character
This option allows you to directly assign the ASCII Character.
Controls
The use of the Control commands can be a very powerful addition for building macros. We'll attempt to explain some of
the benefits of using these commands in this page and subsequent topics. But first, here is a definition of controls from
Microsoft:
"A control is a child window an application uses in conjunction with another window to perform simple input and output
(I/O) tasks. Controls are most often used within dialog boxes, but they can also be used in other windows. Controls
within dialog boxes provide the user with the means to type text, choose options, and direct a dialog box to complete
its action. Controls in other windows provide a variety of services, such as letting the user choose commands, view
status, and view and edit text."
For our purposes, controls refer to the identifiable parts of a specific application window. Controls may include such
things as a button, an edit box, a toolbar, a window title bar or other items. The control may be part of the main
application window or be part of a child window (a window within a window).
Related Topics
Control Tutorial
Control Activated Macros
Using Controls
Let's run through an example of how to use the Window Controls. To begin, we first need to start the Windows calculator
program. To start Calculator, click on the Windows Start button and enter calculator in the search box. When found, click
on the file to open the calculator program. On older systems, click on Start and then Run. Enter calculator and click the
ok button. Leave the program running and return to Macro Express.
Next, press the F3 key and release it. F3 should appear in the edit box and will be the hotkey used to run the macro.
In the Scripting Editor first click on the Properties tab. In the Nickname box, enter "Clear Calculator". Then click on the
Scope tab and make sure Global is selected. Now click on the Script tab to return to the screen displayed above. Scroll
down the list of commands and click on the Window Controls command category to expand this listing. Double click on
the Get Control command found in this group to activate the Get Control window as shown below.
Select the Hide Macro Express option. Make sure that the Save Control In option is set to variable C1 and select Exact
Match. Now click on the Launch Get Control Utility button.
This activates the Capture Window Control screen and hides Macro Express. Now click on the target (crosshairs) at the
bottom of this window. Hold down the left mouse button and drag it over top of the "C" button on the calculator. Release
the mouse button. This should insert some information into the Capture Window Control. Class Name should read
"Button". Click the save button to save the information and return to the Get Control Window.
This window should have the information stored to the variable C1 as shown above. Click OK to save this command and
return to the Scripting Editor. Scroll down the list of commands and click on the Window Controls command to expand
this listing (if not already open). Double click on the Mouse Click on Control command to open the Mouse Click on Control
window.
In the General Tab, select Single Click, C1 as the variable and Left Button. This instructs the macro to perform a single
left mouse click on the variable C1, which we have defined as the "C" button on the Calculator. We can ignore the
Advanced Tab, so click OK to save your changes. This returns us to the Scripting Editor. The script should look like the
following:
Get Control %C1%
Mouse Single Left Click on Control %C1%
Click on File | Save to save the macro and return to the Macro Explorer. Our F3 macro with a nickname of Clear
Calculator should now be listed in this window.
Capture Control
This will create a C-type variable (i.e. C1) that contains the information to use with other Window Control commands.
You can use this to get the control that currently has focus, is underneath the mouse cursor or at a specific location on
the screen. The control information is captured during playback of the macro.
Beneath Mouse
During playback of the macro, this command will look to where the mouse cursor is pointed. The control that is
underneath the mouse cursor will be captured and saved to the variable you specify.
Control Focused
During playback of the macro, this command will recognize the control that has focus. The control information will be
captured and saved to the variable you specify.
Specific Coordinates
During playback of the macro, the mouse will move to the X and Y coordinates of the screen. The X coordinate
represents the number of pixels from the left edge of the screen. The Y coordinate represents the number of pixels the
mouse is positioned from the top of the screen. If necessary, click on the Mouse Locator to find the screen coordinates.
The control that exists beneath these coordinates will be captured. This control information is saved to the variable you
specify.
Related Topics
Control Overview
Controls Tutorial
Get Control
This command will create a C type variable, such as C1, that contains the information to use with the other Window
Control commands. A capture utility is launched that allows you to select buttons, edit boxes, etc. that can be used later
in the macro.
Display Details
This option displays a window that will show the details of the control that you have captured. See the Control
Details window shown below.
Save Control In
The control name and information is saved in a "C" variable. This variable can then be used with a number of other
control commands.
Control Class
This is the name assigned to the control you have captured.
Related Topics
Control Overview
Controls Tutorial
Post Message
The PostMessage command allows the user to send a Windows message to the specified control.
Note: This command is designed for experienced users of Windows messaging. We are unable to provide support for
explaining how Windows messages work, what are the various messages available and what they do, etc.
Use RegisterWindowMessage
This command allows the user to enter a constant string that can be used by Windows to generate a message. This is
primarily used to communicate with other applications that have registered the same message.
Microsoft Definition of RegisterWindowMessage
The RegisterWindowMessage function defines a new window message that is guaranteed to be unique throughout the
system. The message value can be used when sending or posting messages.
The RegisterWindowMessage function is typically used to register messages for communicating between two cooperating
applications.
If two different applications register the same message string, the applications return the same message value. The
message remains registered until the session ends.
Only use RegisterWindowMessage when more than one application must process the same message. For sending private
messages within a window class, an application can use any integer in the range WM_USER through 0x7FFF.
Note: When Macro Express is installed, three .ini files ( PostMessage.ini, PostCommCtrl.ini and PostRichEdit.ini ) are also
installed into the Macro Express folder. The default path is C:\Program Files\MacExp3.0. These .ini files contain message
definitions that you can use for reference. Double click on the files to open and view in Notepad or Wordpad.
Related Topics
Control Overview
Controls Tutorial
Set Focus
This is similar to the "Window Activate" command, but uses a control instead. It will bring the window that contains the
control you selected to the front and then set focus to the control. This is most useful for edit box controls because you
can then perform a Text Type command in the box. You would first need to use the Get Control or Capture
Control command to save the control to a "C" variable.
Related Topics
Control Overview
Controls Tutorial
This command will place the class name of the control into a text string variable. In the example below, when you select
a control, a class name for the control is listed. In this image the class name is "Button" because the control captured
was a button. The class name of Button would be saved as a text string variable.
Related Topics
Control Overview
Controls Tutorial
Example
Let's say that you have a program that has Edit and View modes. When in Edit mode,
the title bar may say Edit Sample #5 and when in View mode, the title bar will show View
Sample #5. There is an OK button on this form.
If you are in Edit mode when the macro is created to access the OK button on the form,
the macro will not work when in View mode, even though it is the same control. There are
two choices. You can use two Get Control commands to capture the control in both Edit
and View modes. Or, you can use one Get Control command and use the Modify
Top-Level Window Title of Control Variable command to change the Window title.
When using controls, the top-level window is the main window that contains the control. This command allows the user
to adjust what window title the control will look for. For example, Internet Explorer changes its window title often. This
option allows the user to define one control variable and use it to work with different windows in order to perform actions
with the desired control.
Partial/Exact Matches
The window title can be either a partial or an exact match. For example, if there is a control in Internet Explorer that
you wish to use, despite what the window title is, you would use "Internet Explorer" as the window title and specify a
partial match.
Using the Partial Title option of the Modify Top-Level Window Title of Control Variable command you can modify the
window title (stored in the Control variable) to work with either Edit or View modes. In this example, you could set
the title to Sample #5. To make this even more flexible, you could change it to Sample # so it will work in Edit
and/or View modes and with all items in the database.
Related Topics
Control Overview
Controls Tutorial
Related Topics
Control Overview
Controls Tutorial
Below are some of the options that may appear depending on the command selected.
Window Title
This is where you enter the title of the Window that you want to switch to. The window title is typically the text in
the caption bar of a window. Macro Express examines all window titles running on the computer in an attempt to
find a match.
The window title does not need to be an exact match. A partial match will work. For example, if you wanted to
switch to the Windows Notepad program, you could use "notepad" or "notep". This is particularly useful as some
window titles change based on whether a given file is open. Case sensitivity is not required. For example, "NOTepad"
will work as well as "notepad".
Normal
Program Path/Name: This is where you enter the path and name of the program. You may optionally click on the
Button to the right of this field to search for the program desired. You may place any type of file extension that has
been defined on your computer as the Program Path/Name. As long as there is a file type association set up in
Windows for that particular file type, the corresponding program will be loaded and the document specified will be
loaded into it. For example, if you insert C:\My Documents\ test.doc in the file path, and .doc files are associated
with Microsoft Word, then Microsoft Word will start and load the file test.doc.
Run: You can choose to have the program launch and either maximize, minimize, hide or display the window as it
would normally at program launch. These options may not be available if the application you are launching does not
support them.
Bypass File Existence Check: With this option not checked, Macro Express will verify that the file you selected
exists on your computer. If it doesn't, you will be prompted to select a valid file before being able to continue.
Placing a check next to this option will bypass this file checking process. One reason you may want to do this would
be to write a macro for use on another computer and the file doesn't exist on the machine you are presently using.
Program Parameters: Some programs can have values following the name of the program that can make the
program behave in a specified manner. These are called Program Parameters and can be set here if desired.
Advanced
Delay: The delay is the time to wait after executing the program and attempting to switch to the window specified in
the Window Title field. For many programs, this will simply be zero as no wait is required. For others, it may require
a second or two delay. A little experimenting may be required.
Max Seconds to Wait for Program to Activate: This specifies the maximum time the macro should wait for the
window title of the launched program to appear. Some programs may take a little while to load before the final
window appears that has the correct window title. The default value for this field is 12 seconds. This used to be a
value hard coded into the program. We have made it a user option because we have found that some larger
programs take longer than 12 seconds to load, especially on a fresh reboot of Windows where many common DLL's
have not yet been loaded.
If the time allotted is exceeded, Macro Express will come back with an error message indicating it could not find the
Window Title to activate the program. We simply could not let the wait be indefinite as the macro would be stuck
looking forever if an invalid Window Title was entered. If we had bumped the wait internally to something like 30
seconds, then it would be a full 30 seconds before you would be notified if you had keyed in an invalid Window Title.
We therefore felt it best to put this value into the hands of the user. When in doubt, use 12 seconds for this field
(the default).
If Program Fails to Launch in the Specified Time: You have three choices if the program or window does not
load within the time frame you designated. You can instruct the macro to terminate at this point. Or you can have
the macro continue even though the program or window did not load. The last option is to have a message pop up
asking you if you would like to cancel the macro or continue.
This option allows you to place the window as the top most window or send it to the bottom of the list of windows open
on the screen. The Window Title does not need to be an exact match. A partial match will work. For example, if you
wanted to size or position the Windows Notepad program, you could use "notepad" or "notep". This is particularly useful
as some Window Titles change based on whether a given file is open. Case sensitivity is not required. For example,
"NOTepad" will work as well as "notepad".
Current Window
This refers to the window that has focus when the Set Window Order command is run in the macro.
Specific Window
Enter the title of the specific window. Or click on the Browse button to see a list of all windows currently running.
Select the window you want and it will be inserted in the edit box.
Always on Top
This will set the window so that it is always on top. If you open other windows, the window you selected will still display
on top of all others.
Place on Bottom
This will send the window to the bottom of the list of windows open on your computer.
Resize Commands
Three options are available for changing the size of a window..
Specify Exact Size
This option will allow you to size the window to the scale that you want. A resize dimensions box will appear when
using this option. If you select the Value option, type in the sizes that you want the window to be. The values are
based on pixels. So if you type 500 in the width box and 400 in the height box, the window will be resized to a width
of 500 pixels and a height of 400 pixels. Or if you have saved decimal values to the N variable, then you can have
the window resized to the values of the variable(s).
Enlarge/Decrease in Pixels
This option allows you to enlarge or decrease the size of the window by a fixed number of pixels. If you select the
Value option, type in the number of pixels in the width and height boxes. Negative numbers (place a " -" sign before
the number) will decrease the size of the window. Positive numbers will increase the window size.
In the example above, a window size of width 500 and height 400 pixels, entering in values of width -100 and a
height of 200 will change the window size to width 400 and height 600 when the macro is run. Similarly, if you have
saved decimal values to the N variable, then you can have the window enlarged or contracted by the values of the
variables.
Enlarge/Decrease by Percentage
This option allows you to enlarge or decrease the size of the window proportionally, on a percentage basis. If you
select the Value option, enter the percentage values that you want the window size to increase or decrease. Negative
numbers (place a " -" sign before the number) will decrease the size of the window. Positive numbers will increase
the window size.
In the first example, a window size of width 500 and height 400 pixels, entering in values of width -10 and a height
of 25 will decrease the window width by 10% and increase the height by 25% when the macro is run. Similarly, if
you have saved decimal values to the N variable, then you can have the window enlarged or contracted by the
values of the variables.
Position Commands
Twelve options are available for repositioning a window on the desktop. Nine of these options are essentially
self-explanatory. Clicking on the Center of Screen option will place the window in the center of the screen. The Move to
Top Left command will move the window to the top left corner of the screen, etc. We'll discuss the other three choices
below.
Specify Exact Location
This option allows you to place the window anywhere on the screen based on the coordinates that you provide. If
you select the Value option, type in the coordinates for positioning the window. In the example window illustrated
above, the left edge of the window would be positioned 100 pixels to the right of the left side of the screen. The top
edge of the window would be positioned 100 pixels down from the top of the screen. If you have saved decimal
values to the N variable, then the window will move to the coordinates stored in the decimal variables.
Launch Mouse Locator
Clicking on the Launch Mouse Locator button activates the Mouse Locator utility. This will allow you to obtain the
exact pixel coordinates. Hover the mouse pointer over the position you want and the coordinates will be listed in
the Mouse Locator. Use the screen position coordinates for this command.
If this window pops up in an area of your screen that covers important data, click on the window, hold the left
mouse button down on the blue bar at the top of the window and drag to another area of your screen.
Move in Pixels
This option allows you to move the window by a fixed number of pixels. If you select the Value option, type in the
number of pixels in the left and top boxes. Negative numbers (place a " -" sign before the number) will move the
window to the left or up. Positive numbers will move the window to the right or down.
Take the example of a window already positioned at left 400 and top 500. The left edge of the window is 400 pixels
from the left edge of the screen and the top of the window is 500 pixels down from the top of the screen. If we put
in the coordinates of left -150 and top 250, the window would move to the following coordinates - left 250, top 750.
Now the left edge of the window is only 250 pixels from the left edge of the screen while the top edge of the window
is now 750 pixels from the top of the screen. If you have saved decimal values to the N variable, then the window
will move the number of pixels that are stored in the decimal variable values.
Move by Percentage
This option allows you to move the window proportionally, on a percentage basis. If you select the Value option,
enter the percentage values that you want the window to move. Negative numbers (place a " -" sign before the
number) will move the window to the left or up. Positive numbers will move the window to the right or down.
Take the example of a window already positioned at left 400 and top 500. The left edge of the window is 400 pixels
from the left edge of the screen and the top of the window is 500 pixels down from the top of the screen. If we put
in the coordinates of left -10 and top 25, the window would move 10% of the available distance to the left and 25%
of the available distance up towards the top of the screen. If you have saved decimal values to the N variable, then
the window will move proportionally, based on the values stored in the decimal variables.
Window
This option allows you to choose the window that you want to size or position on the screen. The Window Title does not
need to be an exact match. A partial match will work. For example, if you wanted to size or position the Windows
Notepad program, you could use "notepad" or "notep". This is particularly useful as some Window Titles change based on
whether a given file is open. Case sensitivity is not required. For example, "NOTepad" will work as well as "notepad".
Current Window
This refers to the window that has focus when the size or position command is run in the macro.
Specific Window
Enter the title of the specific window that the sizing and positioning will work with. Or click on the Select Window
button to see a list of all windows currently running. Select the window you want and it will be inserted in the edit
box.
Terminate Process
These two options are alternative ways to have a macro close a window or program. The other options are part of the
Window Commands set of commands. The Terminate Process command goes through several routines to make sure that
the window or program is completely closed.
Close Window
Insert the name of the window you want to close. Or click on the button to get a list of windows currently open on your
computer.
Exact Match - This requires that the window name you enter matches exactly with the name of the window that you
are trying to close. For example, if you inserted Notepad as the window name, but the actual window you were
trying to close was Notepad - Untitled, then the macro would not close the window.
Close Program
Insert the program file name (normally .exe file) that you want to close. Or click on the button and select the program
name from the list of programs currently running on your computer. There is an optional button to retrieve the file names
of all programs installed on your computer. This command is especially useful for closing applications that may run in the
System Tray and not have windows to close.
Timeout After:
This option uses several methods to attempt to close the window or program. The Timeout After setting determines how
long Macro Express waits before trying the next method.
Window Commands
Macro Express allows you to manipulate Windows that are running on your desktop.
Commands
Maximize Window
This instructs a window to be resized so that it fills the entire screen.
Minimize Window
This instructs the window to shrink down to a button on the Task Bar.
Restore Window
This instructs a window to be resized to its original size before a maximize or minimize command was issued.
Close Window
This instructs a window to be closed. If the window happens to be the main window of a program, this will have the net
result of shutting the program down.
Hide Window
This instructs a window to be hidden from the screen. It will still be running, but it will be invisible. You will not be able to
see it again until you use the "Show Window" command to display the window.
Show Window
This instructs a window to be shown when it has been hidden. It will normally bring the Window to the front of the
screen. If you want to bring a Window to the top of the screen, then you should use the "Activate Window" macro
option.
Shut Down Program
This will shut down a program based on the window title name. While the Close Window can be used to shut down a
program if the window specified is the main window, this option will shut the program down no matter what window in
the program is specified.
Note: Another option for closing programs is the Terminate Process command. This option will also close applications
where you may not ever see a window title, such as applications on the System Tray that run in the background.
Window
Current Window vs. Specific Window
For each of the above commands, you can specify the Window Title of the window that you would like the action to take
place on. The window title can be a partial match. If you would like the action to take place on whatever window is active
when the macro is run, then choose the "Current Window" option. Otherwise you can enter the name of the window title
when using the Specific Window option.
Note: For any of these Window Commands you can click on the Select Window button to get a list of all Windows
currently running on your computer. Highlight the window you want and click on the OK button to insert this as your
Window Title selection.
Window
Current Window
This refers to the window that has focus when the Window Move and Size command runs.
Specific Window
Enter the title of the specific window to be moved and resized. Or click on the Select Window button to see a list of all
windows currently running. Select the window needed and the title is inserted in the edit box.
Coordinates
Specify Exact Size
Enter the coordinates directly into the edit box. The Left and Top options determine the location of the window. The
Height and Width options determine the size of the window. The values are expressed in pixels.
Coordinates Example
Left Top Height Width -
100
200
750
850
Scripting Editor > Windows/Programs > Window Move and Size > Launch Size/Position Tool
Capture Settings
Macro Express allows you to record macros. It does this by capturing what you do and saving this information for later
playback as a macro. Options are available to determine what you want to capture and how much. You can optionally
capture keystrokes, mouse movements and clicks and actual time between actions.
There are three methods for starting a macro recording. One is to select the activation (hotkey, shortkey, etc.) you wish
to assign to the macro before recording. Another is to select this information after recording the macro. The last option is
to use the Capture Quick Wizard.
When running Macro Express, you will note that there are six hotkeys automatically assigned. These six hotkeys are
System hotkeys (Scope indicates SYSTEM). One of these System hotkeys is called Start / Stop Capture and is defined as
CTRL+ALT+SHIFT+X by default. Pressing CTRL+ALT+SHIFT+X will start the recording of a macro and pressing it a
second time will stop the recording. The actual hotkey used here can be changed to anything available in Macro Express
(i.e. you can make ALT+F1 be the Start / Stop Capture hotkey).
When the recording stops, a Capture Complete window opens allowing you to assign what you have captured to a
hotkey, ShortKey or other activation. While recording, a "movie camera" icon appears in the Windows system tray to
indicate that you are recording. You can also right click on this icon to stop recording. To not have the camera display, go
to Options | Preferences | Appearance.
Before recording a macro using this System hotkey, you want to make sure that the default settings have been defined.
Select Options | Preferences | Capture from the Macro Explorer to define your capture settings. These are the default
settings when the System Start / Stop Capture hotkey is used. These are also the default settings that appear when
doing a macro recording by assigning a hotkey first.
Scope
The Global scope allows for the playback of the macro into any Windows program. The Program scope indicates that the
recorded macro will only play back in the program it is recorded in. You will only want to use the "program" option if you
are recording all of your macro in the same program. If you choose the "program" option and switch programs while
recording, then the playback of the macro will have unpredictable results.
Capture Keystrokes
Record all keystrokes made during the capture process.
Capture At
This option refers to how fast the macro will play back in relation to your recording speed.
Actual Speed - Play back at the same speed that you recorded the macro. Any hesitations, etc. will play at the
same speed as you recorded.
Half Speed - Slow down the macro playback to half of the recording speed.
Double Speed - Speed up the macro playback to twice the actual recording speed.
Quadruple Speed - Speed up the macro playback to four times the actual recording speed.
Fastest Speed (no delays) - Play back the macro with no hesitations, delays, etc. Remove the check next to the
Capture At box to select this option. Caution: Selecting this option may cause the macro to play back too fast
and throw off the timing of the macro.
After the capture is complete, you can modify the playback speed of the macro in the Scripting Editor or Direct Editor.
Use the Macro Playback Speed command to do this.
Prompt on Capture
Display a prompt message to indicate that the capture is starting.
Capture a Macro
Macro Express Explorer > Capture Icon > Select Activation > Capture Macro Button
This option requires that you define your macro activation and other information before you begin recording your
keystrokes and mouse moves. There is another option that allows you to record first and then assign macro information
after the capture. The third capture option is to use the Quick Wizards.
Macro Information
Nickname
Optionally assign a nickname to the macro to help you later identify what the macro does.
Scope
The Global scope allows for the playback of the macro into any Windows program. The Program scope indicates that the
recorded macro will only play back in the program it is recorded in. You will only want to use the "program" option if you
are recording all of your macro in the same program. If you choose the "program" option and switch programs while
recording, then the playback of the macro will have unpredictable results.
Capture Settings
These settings default to what you have defined in the Options | Preferences | Capture settings. You may override the
defaults for this capture by changing any of the settings listed here.
Capture Keystrokes
A check placed in this option will record all keystrokes made during the capture process.
Capture Double <ALT> for Menus
Use of the <ALT> key does not always work properly for activating menu commands. (Example: "<ALT>f" for activating
the file menu command). To ensure that a menu command will always work, a double <ALT> is used. (Example:
"<ALT><ALT>f") Selecting this option will capture a double <ALT> whenever the ALT key is pressed. You would want to
use this option if you are going to be capturing keystroke commands that activate window menus.
Capture Mouse Relative To
A check placed in this option will record all mouse clicks and movements made during the capture process. You have
several mouse options to choose from.
Relative to Screen option captures all mouse clicks and movements in relation to the cursor's position on the
monitor.
Relative to Window option captures all mouse clicks and movements in relation to the application window you are
using.
Capture Window Size is only available if you have the Relative to Window option selected. When checked, the
size of the window in which you are capturing will be recorded. When the macro plays back, the window will be
resized, if necessary, to the original size when the recording was made. This will help ensure that the mouse
clicks and movements are accurate.
Relative to Position option captures the mouse clicks or movements based on the last position of the mouse
cursor.
Only Capture Mouse Clicks
Check this option if you only want to capture the mouse clicks, including the position of the mouse click. This option
captures the position where the mouse is to click and also the mouse click itself. No other movements of the mouse will
be recorded.
Note: Unless you are drawing or need to record the mouse dragging an item, you would most likely want to select this
option. It will reduce the size of the macro considerably and will be much easier to edit if necessary. This will also help
increase the playback speed of the macro, since you are eliminating all of the interim mouse move commands and
associated delays from the macro.
Capture At
This option actually refers to how fast the macro will play back in relation to your recording speed.
Actual Speed - This will play back at the same speed that you recorded the macro. Any hesitations, etc. will
play at the same speed as you recorded.
Half Speed - This will slow down the macro playback to half of the recording speed.
Double Speed - This will speed up the macro playback to twice the actual recording speed.
Quadruple Speed - This will speed up the macro playback to four times the actual recording speed.
Fastest Speed (no delays) - This will play back the macro with no hesitations, delays, etc. Remove the check
next to the Capture At box to select this option. Caution: Selecting this option may cause the macro to play back
too fast and throw off the timing of the macro.
After the capture is complete, you can modify the playback speed of the macro in the Scripting Editor or Direct Editor.
Use the Macro Playback Speed command to do this.
Program to Start Capturing In
This is the program in which you will start recording your macro. Click on the button to the right of the edit field for a list
of programs currently running. Once you press the Start Capture button, the program you selected will be brought to
the foreground so that you can begin capturing.
The HotKey option should already be selected and the blinking cursor should be in the edit box. If the cursor is not in the
edit box, click on the edit box to place the text cursor there. Next, hold down the SHIFT key, the CTRL key and the Z key
all at the same time and release them. CTRL+SHIFT+Z should appear in the edit box. This is the hotkey we will be
assigned to the macro we record.
Capture Settings
Next click on the Capture Macro to open the capture settings window.
A number of capture options are available depending on what you are needing to capture. Default settings for each of
these options may be set in the Capture preferences panel. Those defaults would display in this window each time you
started a capture. They may be temporarily overwritten as needed for each individual capture, which we will do now for
this capture.
1. Enter My Paint Drawing in the Nickname field.
2. Select the scope setting of Program. This indicates that the recorded macro will only play back in the program we
record it in.
3. Select the Capture Keystrokes and Capture Double <ALT> for Menus options.
4. Make sure the Capture Mouse Relative to Window options are selected. Also make sure the Capture Window Size
option is checked.
5. Since we will be recording mouse movements as well as mouse clicks, the Only Capture Mouse Clicks option should
be unchecked.
6. Select the Capture At Actual Speed options.
7. We want to start capturing the macro inside of the Paint program. Under Choose the program to start capturing in,
we want to select the Paint program. It should display in the dropdown list as "untitled - Paint".
Capture Settings
Before we record any macros using this System hotkey, we want to make sure we have our default settings in place.
From the Macro Explorer click on Options | Preferences and select Capture to display the Capture default settings as
shown below.
These are the settings that are used when the System Start / Stop Capture hotkey function is invoked. These are also the
default settings that appear when doing a macro recording by Assigning HotKey First (see prior example) or when using
the Capture Quick Wizard.
1. Select the Scope setting of Program. This indicates that the recorded macro will only play back in the program we
record it in.
2. Select the Capture Keystrokes and Capture Double <ALT> for Menus options.
3. Make sure the Capture Mouse Relative to Window options are selected. Also make sure the Capture Window Size
option is checked.
4. Since we will be recording mouse movements as well as mouse clicks, the Only Capture Mouse Clicks option should
be unchecked.
5. Select the Capture At Actual Speed options.
6. Select the Prompt on Capture option which will display a message indicating that the capture is starting.
Click on the OK button to save the defaults. We are now ready to record.
An important thing to remember when recording a macro is to make sure that the program you plan to start recording in
is active and on top.
Our example recording will be in the Windows Paint program. To start the Windows Paint program, click on the Windows
Start button and enter mspaint.exe in the search box. When found, click on the file to open the Paint program. On older
systems, click on Start and then Run. Enter mspaint and click the ok button.
1. This page displays types of macros that can be created using Quick Wizards. To create a reminder, select Text and
click on the Next button.
3. This panel shows a few things that can be done with the Reminders. Click next to continue.
4. Enter a reminder message into the edit field. We can also choose to have a sound play back to alert us of the
message. For this example well just use the beep sound.
Also select the Delete this macro after displaying the reminder option to delete the macro after it runs. In this example
the message is to only be displayed once, rather than on a recurring schedule. So we want the macro deleted. Its
simpler than remembering later to manually delete the macro.
Click next and now well set the schedule for the macro.
5. We only want it to play back one time, so select the Once schedule option. Set it to run a couple of minutes from now
so that you can see it run. Click next to continue.
6. Now we need to assign a Nickname to the macro. Enter a nickname to help remember what the macro does. Then
click the Finish button to return to the Macro Explorer window. Our quick wizard macro is now listed as a Scheduled
macro.
7. The last step is to wait for the reminder message macro to run at the time you scheduled.
Quick Wizards
The Quick Wizards are a convenient way to guide you through the macro creation process. The steps are essentially the
same for each of the wizards and are basically self explanatory. We'll briefly discuss the basic steps that the wizard
guides you through.
Wizard Steps
1. Select the category or type of macro that you want to create and then click on the Next button.
2. The second step asks you to select the specific type of macro that you want to create. Click Next to advance.
3. A window will appear listing the functions of the wizard you have selected as well as giving some examples of
macros you can create with this wizard. Click Next to advance to the next screen.
4. Depending on the wizard selected, you will be asked what you would like to do with the macro or you will be
given instructions to begin building the macro. Input the necessary information and click next to proceed.
5. After entering the necessary information for the macro, you are asked to select a method for executing the
macro - hotkey, scheduled macro, etc. Select your choice and click Next.
6. You are then asked to define if the macro will play back in all programs, a single program or only in a specific
window. Click Next to proceed.
7. Give the macro a nickname and optionally assign an icon with your macro.
8. Click Finish and the macro has been completed.
These are the basic steps of the Wizard. Depending on which wizard you select there may be several additional steps,
each of which is self explanatory. You may click Cancel to exit out of the Wizard at any time. Each step has a cancel
button if you decide you don't want to proceed. You can also backtrack to make any changes by clicking on the Back
button.
The Wizards have been divided into categories based on their functionality. Each of the links below will lead to brief
explanations of each of the wizards and some of the types of macros that can be created. The Tutorial section includes
an example of creating a macro with the Wizard.
Text Wizards
Create a Reminder
Create a reminder to be displayed at a specific time.
Remind
Remind
Remind
Remind
yourself
yourself
yourself
yourself
of
of
of
of
an appointment or meeting.
birthdays or anniversaries
a chore
an upcoming event
Type a Symbol
Place an international character or a symbol in your programs.
Insert
Insert
Insert
Insert
Insert
Go to a Web Page
Go to a web site or initiate an ftp download.
Go to your favorite web site.
Download the latest version of a software program
Connect Network
Connect, Disconnect or Toggle Network drives.
Access the network server or another computer
Make network connections temporary
Bypass Network Neighborhood
Web Sweepstakes
Enter sweepstakes on the Internet.
Automatically fill out a sweepstakes form on the Internet
Potentially win free prizes
Dial-Up Networking
Connect and Disconnect to the Internet and other computers using Dial-Up Networking.
Quick one keystroke access to dialing up the Internet and hanging up the phone
Macro Wizards
Capture a Macro
Capture all mouse clicks, movements and key presses into a macro.
Capture a repetitive set of commands
Capture pressing buttons on forms
Capture a drawing in a paint program
Multimedia Wizards
Play Audio CD-ROM
Play an Audio CD.
Play your favorite music CDs
Pause your CD to answer the phone
Repeat a favorite song (go to previous, next or specific track)
Open and close CD Tray
Choose a Printer
Choose a Default Printer.
Switch between color and non color printers
Maintain printer preferences among multiple users
Quickly fax documents
Position the top most window in the center, top corner or where ever you want.
Desktop Goodies
Cascade, Tile, Minimize or Restore All Windows. Undock and suspend computer.
Quickly unclutter your desktop
Align all windows on your desktop with a keystroke
Undock your computer from a docking station by pressing a key
go
go
go
go
go
directly
directly
directly
directly
directly
to
to
to
to
to
Macro Express Explorer > Macro > Add Macro > Floating Menu or Popup Menu
The Build Macro Menu lets you create popup menus or floating menus of your most frequently used macros or any other
combination of macros that you want. The completed popup menu can be activated by pressing a hotkey of your choice
or designating a system tray icon. The floating menu always stays on top of the desktop, allowing easy access to the
macros in your menu.
Available Macros
The available macros section displays all macros available to place in the menu. To add a macro in the menu, highlight
the macro to include and click on one of the two insert buttons or the add button. This places the macro in the Macros in
Menu section and is now part of the menu.
Insert the macro above or before the macro that is highlighted in the Macros in Menu section. If you do not have
a macro highlighted from this column, the macro will be placed as the first or uppermost macro in the list.
Insert the macro below or after the macro that is highlighted in the Macros in Menu section. If you do not have a
macro highlighted from this column, the macro will be placed below or after the first or uppermost macro in the list.
Insert the macro as the last item in the list or below all other items.
Highlight an item in the menu and click on the Remove button to remove the macro from the menu.
Macros in Menu
This section lists all macros included as part of the popup or floating menu. This is the order that they will be displayed in
the popup menu or the floating toolbar. To rearrange the order, highlight the macro you want to move and then click on
the Up or Down buttons. The highlighted macro will be moved up or down in the list depending on the button you
selected.
To remove a macro from the menu, highlight the macro and click on the Remove button. The macro will be removed
from the Macros in Menu list and returned to the Available Macros list. This macro can now be assigned to another menu,
left alone or returned to the popup or floating menu at a later date.
Note: There is a limit of 36 macros that can be placed in a single Popup or Floating menu. You may create multiple
popup menus, but only one menu may be activated at a time.
Floating Menu Hint: If you somehow happen to drag the floating menu far enough off the edge of the screen so that
you cannot drag it back into position, here is how you can correct this problem. From the Macro Explorer, find the
Floating Menu macro and double click on it to open the Floating Menu Builder. Click on the Properties Tab and uncheck
the Active box. Click on the Save icon. Then go back and place a check next to the Active box. Click on Save. This will
restore the Floating menu so that it is visible on the screen again. It places it at the 0,0 screen coordinates in the upper
left hand corner.
Nickname
In the edit box to the right of Nickname, you can type in a name that will help you identify the popup menu or floating
menu. This field will hold up to 50 characters and will be displayed on the Main menu in the nickname column. If you do
not want to name this menu you can leave the field blank.
Icon
You can associate an icon with this menu. Click on the Change button to display the Select an Icon window. This
window displays the icon currently assigned to the or menu. If no icon has previously been selected, then the default
Macro Express icon is displayed as the current icon.
To change the current icon, click on the Browse button in the Select an Icon window to display libraries of icons to
choose from. Highlight the icon that you want and click on the OK button to load in the icon. Or you can browse through
your system to load in icons from another source. The primary use of this icon is to display it in the System Tray with a
popup menu. A left click on the icon in the System Tray opens the menu.
Active
This check box shows the status of the macro. With the box checked, the macro (menu) is active and will run. With the
box not checked, the macro (menu) has been deactivated and will not run.
Global.
X, Y
Enter the X and Y screen coordinates where you would like the popup menu to display on your screen. The default is to
display in the upper left hand corner of the screen with coordinates of 0,0.
This option will just display the icon that is associated with each macro. Select from the drop down menu the size that
you want the icons to appear in the popup window. The sizes are listed in pixels. The icon size options are 16x16, 24x24,
32x32, 48x48, and 64x64 pixels.
Double click on the icon to run the macro associated with that icon.
First Part of the Macro
With this option the menu will display the first few words or commands of the macro script. When the popup window
appears, either double click on the macro or press the number or letter associated with the macro to have it play back.
Nickname and Scope
The menu will display the name you have assigned to the macro and the macro scope, such as a global, or program or
window specific macro. When the popup window appears, either double click on the macro or press the number or letter
associated with the macro to have it play back.
Windows Default
The Windows Default menu displays the icon associated with the macro and the macro nickname. Click on the macro to
have it play back. When possible, Windows will also assign accelerator keys to each of the macros. So in the example
above, pressing the M key will activate the My Address macro. Pressing the Y key runs the My Address macro.
Note: If you opt to have the macro displayed in the system tray, the scope is automatically Global. The icon in the
system tray will display regardless of which program or window you have open. It will behave as a global macro. If you
have also assigned a hotkey to your popup menu, you can assign the hotkey to a scope.
Let's look at an example. In our example, we'll say you have selected a popup menu icon to display in the System Tray.
But you have also assigned a hotkey (CTRL Q) to the popup menu. For the scope you select Program Specific and select
the menu to only work with Wordpad. So if you have Wordpad active and you press CTRL Q, the popup menu appears. If
you have Notepad open and press CTRL Q, nothing happens. But since you also selected to display an icon in the system
tray, this icon will be available to use, by right clicking on it, no matter what program you have open. If displayed in the
System Tray, it is always a global menu.
Global
With this option selected, a macro (menu) will play back in any Windows application.
Global Except
This option will allow the macro (menu) to play back in all Windows applications, except the one program you select.
Click on the Select button to activate the Select Programs window. Then you can specify the program that will not accept
your macro.
Select Program(s)
You can view and look at all programs that are currently running on your computer. If the program you want is
currently running, you can scroll through the list to find it. Click on the program you want to select to place in the list
of acceptable programs in the right hand column of this window.
You may add more than one program to have the macro play back in.
Selected Program(s)
In this field you can type in the name of the .exe file and press the Add button to have the file added to the list of
programs that will work with the macro.
Select From List of Installed Programs
If the program you want is not listed as currently running, click on the Select from List of Installed Programs button
to bring up a list of all programs installed on your computer. Highlight the program you want and click OK to place in
the Program Name box.
Run if on Top
This option will play the macro back only if the program is the current top-most program (the one that is showing on
top of all other windows).
To remove a file from your list, highlight the .exe file located in the right hand column and click on the Remove
button.
Window Specific
A window specific macro (menu) will only execute in the window that you designate. If the window is not active the
macro will not play back. To choose this option, click on the Select button to activate the Select Windows screen. Then
specify the window that will accept your macro.
Window Title
You can view and look at all windows that are currently running on your computer. If the window you want is
currently running, you can scroll through the list to find it. Click on the window title you want to place it in the list of
acceptable windows in the right hand column. You may add more than one window to have the macro play back in.
Selected Window(s)
In this field you can type in the name of the Window title and press the Add button to have the title added to the list
of windows that will work with the macro.
Run Macro if Window on Top
This option will play the macro back only if the window is the current top-most window (the one that is showing on
top of all other windows).
Exact Match
This option requires that the Window title match exactly before the macro will play back. With this option not
checked, partial matches will work. For example, "notep" would be sufficient to find the "notepad" window.
To remove a window title from your list, highlight the title located in the right hand column and click on the Remove
button.
Program Specific
A program specific macro (menu) will only execute in the program that you designate. If the program is not active the
macro (menu) will not play back. To choose the program specific option, click on the Select button to activate the Select
Programs window. Then specify the program that will accept your macro.
Select Program(s)
You can view and look at all programs that are currently running on your computer. If the program you want is
currently running, you can scroll through the list to find it. Click on the program you want to select to place in the list
of acceptable programs in the right hand column of this window.
You may add more than one program to have the macro play back in.
Selected Program(s)
In this field you can type in the name of the .exe file and press the Add button to have the file added to the list of
programs that will work with the macro.
Select From List of Installed Programs
If the program you want is not listed as currently running, click on the Select from List of Installed Programs button
to bring up a list of all programs installed on your computer. Highlight the program you want and click OK to place in
the Program Name box.
Run if on Top
This option will play the macro back only if the program is the current top-most program (the one that is showing on
top of all other windows).
To remove a file from your list, highlight the .exe file located in the right hand column and click on the Remove
button.
Note: Since specific programs may be assigned to a hotkey, it is possible to assign the same hotkey to multiple
programs. You will only be able to assign one Global Macro to any given hotkey.
Icons
You may optionally assign an icon to each macro or popup menu you create. The icon assigned to the popup menu is
displayed in the System Tray. Clicking on the icon opens the menu so you can select the macro you want to play back.
Macro Express allows you to place macros on Windows desktop. The icon assigned to the macro is placed on the
desktop. Click on the icon to run the macro. Or assign icons to each individual macro to use with popup and
floating menus. One of the menu display options just shows the icons for each macro. Click on the icon in the menu to
run the macro.
You can select from over several hundred different icons supplied with the program. Or you can browse through your
drives to find other icons or icon libraries located elsewhere on the computer. Highlight the icon you want and then click
the Open button.
The icon you selected will now display as the current icon. Press OK to finish assigning the icon to your macro. The icon
should now display in the Macro Explorer next to the macro, if you have the Show Macro Icons option selected.
The Macro Express Recycle Bin works similar to the Windows Recycle Bin. If you delete a macro from the Macro Explorer,
the macro is removed from the macro file that you currently have open. The deleted macro is sent to the Macro Express
Recycle Bin. It will be displayed in the list of macros that have been deleted from active macro files.
Three options are available in the Recycle Bin - Restore Macros, Delete Macros or Empty Recycle Bin.
Restore Macro(s)
Highlight one or more macros in the Deleted Macro list. To highlight a block of macros, click on the first macro you want
restored, hold down the Shift Key and then click on the last macro in the block. Next click on the Restore Macro(s)
option. This will place your deleted macros back into the macro files from which they were deleted. If you accidentally
deleted a macro, this is how you can restore the macro.
Delete Macro(s)
Highlight one or more macros in the Deleted Macro list. To highlight a block of macros, click on the first macro you want
deleted, hold down the Shift Key and then click on the last macro in the block. Then click on the Delete Macro(s) option.
This will permanently remove the selected deleted macros from the Recycle Bin and they cannot be retrieved.
Backup
There are several ways to back up the macro file currently open.
1. Use the automatic backup routine found in Options | Preferences | Backup. Backups can be created at scheduled
intervals and saved to specific locations.
2. Click on File | Backup Macro File(s). The file is backed up to the default location defined in Options | Preferences
| Backup.
3. Click on File | Save Macro File As. In the Save Macro File As window that appears, select the location where you
want to save and name the file.
4. Click on File | Export | Export Macros. This activates the Export Macros window. All macros in the file are
displayed. You may select all or some of the macros and save to a new macro file.
5. Use the Copy and Paste options of Windows Explorer or My Computer. The file path and name are displayed in
the Macro Explorer window. Navigate to the file, copy and save to a different location.
Restore
1. From the Macro Express - Explorer window, click on File | Restore. A Windows dialog will open prompting to
select the backup file. The dialog opens to the folder designated in the Backup preferences panel for file backups.
If the backup options were recently changed, then it may be necessary to browse to the location where previous
backups were stored.
Performing the restore closes the file currently open and replaces it with the backup file selected.
2. Click on File | Open Macro File to load in the backup macro file or a copy of the file. Navigate to the location
where the backup or copy resides and open the file.
3. Click on File | Import | Import Macros to activate the Import Macros window. All macros in the .mex file selected
are displayed. Highlight all or some of the macros in the file and import them to the macro file currently open.
Networking
How can I deploy Macro Express across a network?
There is an option to use a silent install to install Macro Express from a network server. Read the Advanced
Installation topic for more information about this process and the command line options available during the install.
Note: Please note that multi-user networking of this product requires multi-user licensing.
/B (Browse Mode)
This places Macro Express in a browse mode where the macro data cannot be modified. The Macro Express editor cannot
be invoked when this option is used. This option can be especially helpful in administrating uniformity of macros over a
network.
/H (Hide Program)
This completely hides the Macro Express player program. You may invoke the Macro Express editor by using the system
"Activate Macro Express Editor" hotkey.
/N (Network)
This option forces the program to use the Network Mode.
This option prevents the Quick Start program from running for the current session.
/S (Synchronize Network)
This option is only useful if the Network Mode is active. This option forces the network synchronization option to be used.
/T (System Tray)
This option places an icon in the System Tray.
/V (Variables)
This option is used for passing variable information into Macro Express and is really only useful when used in conjunction
with one of the other commands that launches a macro. This way you can launch a macro and provide some input for
the macro. Following the /V, you would either specify a T, N, or D for a Text, Integer or Decimal type variable. The
variable number follows immediately after the letter which is followed by a colon. The data to use comes last. The data
can contain spaces in it. Some examples are shown below:
/VT2:Now is the time - This will place "Now is the time" (without quotes) into variable T2
/VN34:150
- This will place the value 150 into the variable N34
/VD6:22.25
- This will place the value 22.25 into the variable D6
This command actually places the values into the "Saved Variable Locations". This means that your macro will have to
use the "Variable Restore All", "Variable Restore Text", etc. commands first before it can access the data.
Note: Most of these options allow for a quick and easy setup for network considerations. For example, users can be
restricted from changing Macro Express data using the browse mode, allowing manageable uniformity across the
network. Users can all access the same Macro Express file using the "Load Macro Express File" option so no configuration
is required by first running the program. Network usage can be enforced using the "Network" option, etc.
Support
Important: Before requesting support, please make sure that you are using the latest version of Macro Express, as the
problem may have been fixed in a later update. Information about the latest release may be found at
www.macros.com/download.htm.
Also check for answers in the Help File, the Frequently Asked Questions or the web based Knowledgebase for Macro
Express. For questions or comments regarding Macro Express please visit our support page at
www.macros.com/support.htm.
If you are experiencing an issue with Macro Express for which you can not find a resolution, please provide the following:
The product name and version number. (Click on Help | About for version information.)
The version of Windows you are running (XP, Vista, 7, etc.) including service packs.
The sequence of actions that produces the problem.
Any other relevant details.
How do I ensure the CTRL, ALT or SHIFT keys are held down in a macro?
There are 2 methods that you can employ. They are listed below.
1. The first method is to use the CTRL, ALT and SHIFT Keys that can be accessed in the "Entering Keystrokes". By
default, anything that follows <CTRL>, <ALT> or <SHIFT> is acted upon as if it were being held down. For example, if
your macro contains <CTRL>a, then this is the same as holding down the CTRL key and pressing the "a" key. If your
macro contained <CTRL><ALT>a, then this would be the same as holding down the CTRL key and the ALT key at the
same time and then pressing the "a" key. The same works with the SHIFT key. There are a couple things to keep in
mind: 1. If you use an upper case letter (i.e. <CTRL>A), then you may not get the results you expect. 2. There are
certain system keystroke commands that are built into the operating system at a low level such as CTRL+ALT+DELETE.
Placing these commands in macros will not be recognized by Windows at this low level and will not work as intended.
2. The second method is to use the specific functions for "Alt Key Down", "Alt Key Up", "Ctrl Key Down", etc. Here you
would choose the macro command "Alt Key Down" and the following command would be a text command containing the
letters you want to be associated with the ALT key. You would follow this with an "Alt Key Up" command. Again, make
sure that you use lower case letters. The "WIN" key available on the Microsoft keyboards is also available for down and
up usage.
There are actually a variety of ways to accomplish this. The first method available was the "Text Insertion" option. This
allows your macro to load in a text file at any point during the macro and execute the text as part of the macro. Your
dynamic portion of the macro will be stored in the text file. Any time you want to programmatically change the macro,
change the text file that is inserted into the macro. Another method is to use "Variables". Place the variable where you
want to use it in your macro. Populate the variable in any number of ways including being prompted, loading from a text
file, loading from the clipboard and many others.
How do I get Macro Express to not display when I first start the program? I just want the icon
in the System Tray.
From the Macro Explorer, click on Options | Preferences | Startup. Make sure the Start Editor on Startup of Macro
Express option is not checked.
If the Macro Express icon does not display in the System Tray, click on Options | Preferences | Appearance and select the
Show in System Tray option.
How do I remove the samples Popup menu icon from the system tray?
Macro Express allows you to create multiple macro files. The file you currently are using is the Sample file that contains
the sample macros we created. One option for removing the popup menu icon is to open or create a new macro file. Click
on Macros | Open Macro File or Macros | New Macro File. Then if you need to look at a sample macro, load the sample
file back in - samples.mex. This would be the best option.
Or look through your list of macros in the Macro Explorer. Locate the macro with a nickname of Samples: Popup Menu
Using Nicknames or an activation of Ctrl+Alt+G. You can highlight this macro and then click on the garbage can icon to
delete the Popup Menu. Or double click on the popup menu macro to activate the Popup Menu Builder. Click on the
Properties tab and remove the check next to Place Menu in System Tray.
How can I not have any delays between keystrokes when capturing a macro keystrokes?
Before capturing the macro make sure your Capture options are set to correctly. Remove the check next to the "Capture
At" option. This will capture your macro without any delays or capturing hesitations. You need to be careful when doing
this. Selecting this option may cause the macro to play back too fast and throw off the timing of the macro.
If you don't find the answer to your question here, go to our Macro Express Knowledgebase at www.macros.com.
Backup
There are several ways to back up the macro file currently open.
1. Use the automatic backup routine found in Options | Preferences | Backup. Backups can be created at scheduled
intervals and saved to specific locations.
2. Click on File | Backup Macro File(s). The file is backed up to the default location defined in Options | Preferences
| Backup.
3. Click on File | Save Macro File As. In the Save Macro File As window that appears, select the location where you
want to save and name the file.
4. Click on File | Export | Export Macros. This activates the Export Macros window. All macros in the file are
displayed. You may select all or some of the macros and save to a new macro file.
5. Use the Copy and Paste options of Windows Explorer or My Computer. The file path and name are displayed in
the Macro Explorer window. Navigate to the file, copy and save to a different location.
Restore
1. From the Macro Express - Explorer window, click on File | Restore. A Windows dialog will open prompting to
select the backup file. The dialog opens to the folder designated in the Backup preferences panel for file backups.
If the backup options were recently changed, then it may be necessary to browse to the location where previous
backups were stored.
Performing the restore closes the file currently open and replaces it with the backup file selected.
2. Click on File | Open Macro File to load in the backup macro file or a copy of the file. Navigate to the location
where the backup or copy resides and open the file.
3. Click on File | Import | Import Macros to activate the Import Macros window. All macros in the .mex file selected
are displayed. Highlight all or some of the macros in the file and import them to the macro file currently open.
Copyright
This product is Copyright by Insight Software Solutions, Inc. This Software is protected by United States copyright law
and various international treaties.
License
You may use an unlicensed copy of this Software for up to 30 days for evaluation purposes only. After the 30 day
evaluation period you must purchase a license to continue to use the Software.
Once you have purchased a license you will receive a license code that will enable you to continue using the Software on
a non-exclusive basis. This license will not expire.
The Software is licensed, not sold. Ownership of the Software, Documentation and all intellectual property rights therein
shall remain at all times with Insight Software Solutions, Inc. In licensing the Software you do not acquire any rights
beyond the right to continue to use the Software on the system for which you purchased the license.
You may transfer the license to another system at any time, provided you do not exceed the total number of licenses
purchased. You may not use a single license to enable usage on more than one system. A valid license must be
purchased for each computer on which the Software is installed.
Restrictions
You may not copy, modify, translate, loan or create derivative works based upon the Software or any part thereof. You
may not reverse engineer, decompile, adapt, or disassemble the Software, nor shall you attempt to create the source
code from the object code of the Software. You may not attempt to unlock or bypass any licensing algorithm utilized by
the Software. You may not distribute the license code you received when purchasing the Software or post this
information to discussion forums, web sites, email messages or servers. You may not remove or modify any copyright
notices. Violations will result in termination of this license.
Limited Warranty
Insight Software Solutions, Inc. warrants that the Software will perform substantially in accordance with the user
documentation for a period of ninety (90) days from the date of receipt. This limited warranty is void if failure of the
Software has resulted from accident, abuse, or misapplication. Any replacement Software will be warranted for the
remainder of the original warranty period or thirty (30) days, whichever is longer.
Disclaimer of Warranty
THERE ARE NO OTHER WARRANTIES RESPECTING THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING
WITHOUT LIMITATION ANY REPRESENTATIONS OR ENDORSEMENTS REGARDING THE USE OF, THE RESULTS OF, OR
PERFORMANCE OF THE PRODUCT, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY,
RELIABILITY, OR THAT THE SOFTWARE IS ERROR FREE. THE ENTIRE RISK AS TO THE USE OF THIS SOFTWARE IS
ASSUMED BY THE USER AND/OR LICENSEE. INSIGHT SOFTWARE SOLUTIONS, INC. DOES NOT ASSUME LIABILITY FOR
THE USE OF THIS SOFTWARE BEYOND THE ORIGINAL PURCHASE PRICE OF THE SOFTWARE. IN NO EVENT WILL
INSIGHT SOFTWARE SOLUTIONS, INC. BE LIABLE FOR ADDITIONAL DIRECT OR INDIRECT DAMAGES INCLUDING ANY
LOSS OF PROFITS OR OTHER INCIDENTAL, SPECIAL, EXEMPLARY OR CONSEQUENTIAL DAMAGES ARISING FROM ANY
DEFECTS, OR THE USE OR INABILITY TO USE THE SOFTWARE, EVEN IF INSIGHT SOFTWARE SOLUTIONS, INC. HAS
BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME JURISDICTIONS DO NOT ALLOW LIMITATIONS ON
HOW LONG AN IMPLIED WARRANTY LASTS, SO LIMITATIONS MAY NOT APPLY TO YOU. THIS WARRANTY GIVES YOU
SPECIFIC LEGAL RIGHTS, AND YOU MAY HAVE OTHER LEGAL RIGHTS THAT VARY BY JURISDICTION.
Customer Remedies
The entire liability of Insight Software Solutions, Inc. and your exclusive remedy shall be, at the option of Insight
Software Solutions, Inc., either (a) return of the original purchase price paid for the Software, or (b) repair or
replacement of the Software that does not meet the Limited Warranty and that is returned to Insight Software Solutions,
Inc. with a copy of your receipt.
Export Controls
None of the Software, Documentation or underlying information or technology may be downloaded or otherwise exported
or re-exported (i) into (or to a national or resident of) Cuba, Iraq, Libya, Yugoslavia, North Korea, Iran, Syria or any other
country to which the U.S. has embargoed goods; or (ii) to anyone on the U.S. Treasury Department's list of Specially
Designated Nationals or the U.S. Commerce Department's Table of Denial Orders. By downloading or using the Software,
you are agreeing to the foregoing and you are representing and warranting that you are not located in, under the control
of, or a national or resident of any such country or on any such list.
In addition, if the licensed Software is identified as a not-for-export product (for example, on the box, media or in the
installation process), then the following applies: EXCEPT FOR EXPORT TO CANADA FOR USE IN CANADA BY CANADIAN
CITIZENS, THE SOFTWARE AND ANY UNDERLYING TECHNOLOGY MAY NOT BE EXPORTED OUTSIDE THE UNITED
STATES OR TO ANY FOREIGN ENTITY OR "FOREIGN PERSON" AS DEFINED BY U.S. GOVERNMENT REGULATIONS,
INCLUDING WITHOUT LIMITATION, ANYONE WHO IS NOT A CITIZEN, NATIONAL OR LAWFUL PERMANENT RESIDENT
OF THE UNITED STATES. BY DOWNLOADING OR USING THE SOFTWARE, YOU ARE AGREEING TO THE FOREGOING
AND YOU ARE WARRANTING THAT YOU ARE NOT A "FOREIGN PERSON" OR UNDER THE CONTROL OF A FOREIGN
PERSON.
Terms
This license is effective until terminated. You may terminate it by destroying the Software, the documentation and copies
thereof. This license will also terminate if you fail to comply with any terms or conditions of this agreement. You agree
upon such termination to destroy all copies of the Software and of the documentation, or return them to Insight Software
Solutions, Inc.
Other Rights
No amendments or modifications may be made to this Agreement except in writing signed by both parties. If one or
more provisions of this Agreement are found to be invalid or unenforceable, this Agreement shall not be rendered
inoperative but the remaining provisions shall continue in full force and effect.
No Insight Software Solutions, Inc. dealer, distributor or agent is authorized to make any modification or addition to this
Agreement.
All other rights not specifically granted in this license are reserved by Insight Software Solutions, Inc.
Governing Law
This agreement shall be governed by the laws of the State of Utah. The application of the United Nations Convention of
Contracts for the International Sale of Goods is expressly excluded.
Upgrade Policy
When you purchased Macro Express, you were supplied a License Key. It is important that you keep this key in a secure
place as you will need it whenever reinstalling Macro Express.
This license key is valid for any version 3.x of Macro Express. Future revisions that bear the "3.x" identifier version, will
generally be for minor enhancements and bug-fixes. Any release containing major new functionality will bear a different
version identifier (e.g., 4.x) and an upgrade fee will be chargeable.
The prime location for new releases of Macro Express 3 is our web site download page at http://www.macros.com/download.htm.
If you do obtain a newer version of the product, install it on top of your existing version (into the same folder).
Note: Uninstalling and then reinstalling Macro Express will not affect your macro file(s). Your macro file(s) will remain
intact. However, as always, we recommend that you backup your macro (.mex) file(s) before uninstalling or reinstalling.
Index
A
Abort Macro, 79, 130
Activate Macro, 54, 57, 60, 59, 72, 74, 73, 75, 76, 77, 98
Activate Window, 342
Add Macros, 92
Addition, 300, 302
Alarm, 132
Alt Key, 116, 216
And, 218
API Macro Activation, 54
Appearance, 111
Append Clipboard Text to End of Text File, 173
Append Text to Clipboard, 173
ASCII Character, 324
ASCII Delimited Text File, 191
ASCII Value, 325
Audio Balance, 250
Audio Controls, 250
Audio File, 251
Audio Volume, 250
Automatic Macro Backups, 113
AVI File, 252
B
Backing Up Macros, 113, 390
Balance, 250
Bass, 250
Beep, 251
Break, 259
C
Caching, 115
Cancel Macro, 124
Caps Lock, 130
Caps Lock On or Off, 217
Capture, 352
Capture a Macro, 355
Capture Control, 331
Capture Preferences, 116
Capture Using Menu or Capture Icon, 27
Capture Using System Macro, 30
Quick Wizard Capture, 35
Recapture Macro, 99
Cascade, 177
Case, 231
Categories, 106
Customize Categories, 155
CD-ROM, 171
Change Default Folder, 188
Character Separator, 154
D
Date, 279, 280, 315
Debug, 161
Decimals, 300, 311
Modify Decimal Variable, 300
Set Decimal Variable, 311
Default Case, 231
Default Printer, 264
Default Web Browser, 215
E
Else, 220
Email, 121, 122, 123, , 211
View Email Log, 121
Empty Clipboard, 173
Empty Recycle Bin, 389, 242, 265
Enable Macro, 100
Encrypted Text, 282
End Case, 231
End Clipboard Copy, 173
End If, 220
End Switch, 231
Error Log, 123, 141, 176
Error Messages, 124
Explorer - Macro, 80
Explorer - Windows, 184, 185
Export, 89, 90, 91, 144
External Editor, 148
F
FAQ, 395
File Associations, 119, 145
File Attributes, 197
File Date, 321
File Locking, 128
File Manipulation, 188
File Name Convert, 187
File Paths, 123, 321
File Time, 321
File Version, 190
Files - Copy, 188
G
Get Control Class, 337
Get Mouse Position, 245
Global Except Scope,
H
Hang Up, 198
Hibernate, 268
Hidden Mode, 111
Hide Categories in Macro Explorer, 111
Hide Category Icons in Editor, 111
Hide Gridlines in Macro Explorer, 111
Hide Icons in Macro Explorer, 111
Hide Macro Express, 111
Hide Script Command Categories, 111
Hide Window, 348
Hooks, 124, 146, 147
Hot Keys, 18, 57,
I
Icons, 386
Place Icon on Desktop, 103
Recording (Capture) Icon, 111
Running Icon, 111
Idle Time, 68
If Clipboard Contains, 220
If Clipboard Text Equals, 220
If File Does/Does Not Exist, 220
If Folder Does/Does Not Exist, 220
If Macro Enabled/Disabled, 220
If Program Is/Is Not Running, 220
If Program On/Not On Top, 220
If Registry, 229
If Statements, 227, 230, 218, 225, 231, 224, 198, 228, 220
If Window Is./Is Not Running, 220
If Window On/Not On Top, 220
Import Macros, 86
Import Playable Macro, 88
Import Program Configuration, 143
Import Text Files, 87
Index method, 341
Installing Macro Express, 11
Advanced Installation, 12
K
Keyboard Remapping, 138, 140
Keyboard Repeat Speed/Delay, 275
Keyboard Shortcuts,
Keystroke Speed, 291
L
Launch Program, 342
Launch Web Site, 215
Left Control Key, 284
License Agreement, 399
License Macro Express, 399,
Licensing Issues, 15
Load Macro Text File, 234
Load New Macro File, 235
Load Text File, 234
Lock Workstation, 269
Log Errors, 176
Log Messages, 176
Logoff, 272
M
Macro Activation, 54, 72, 59, 74, 60, 75, 57, 73, 76, 77, 98
Macro Delete Command, 236
Macro Disable, 100, 236
Macro Enable, 100, 236
Macro Explorer, 80
Macro Return Command, 238
Macro Run Command, 236
Macro Speed, 291
Macro Stop Command, 238
Macro within a Macro, 236
Mathematics, 300, 302
Maximize All Windows, 177
Maximize Window, 348
Memory Allocation, 115
Menu, 178
Menu Styles, 111
MIDI, 250
Minimize All Windows, 177
Minimize Window, 348
Miscellaneous Preferences, 124
Miscellaneous Variable Info, 323
Mouse, 245
Creating a Mouse Activation Macro, 75
Mouse Click Activation Settings,
Mouse Click on Control Command, 244
Restore Mouse Hooks, 147
Wait For Mouse Click, 292
Mouse Cursor, 220, 292
Mouse Locator, 137
Get Pixel Color, 266
N
Navigation, 10
Network, 128, 198, 254, 391
Notes, 170, 385
Num Lock On or Off, 217
O
Open Explorer To, 184
Open Folder, 186
Open Folder in Explorer, 185
Or, 218
Order
Overview, 9
P
Parameters, 392
Passwords, 129, 168, 239, 282
Pause, 289, 292
Pause Macro, 130
Ping, 210, 228
Ping Site, 210
Playable Macro, 88, 91
Popup Menu, 32, 74, 376, 378, 381
Power Off, 272
Pricing
Printer Command, 264
Process ASCII Delimited Text File, 191
Process Text File, 195
Program Specific,
Q
Quick Wizards, 368
R
Radio Button Menu, 178
Random Letter, 313
Random Number, 315
Random Value, 315
Read from Registry, 257
Read Only Prompt, 119
Reboot, 272
Recapture Macro, 99
Record a Macro, 352
Capture Macro Introduction, 352
Capture Preferences, 116
Capture Using Menu or Icon, 27
Capture Using System Macro, 30
S
Sample Macros, 44
Save Clipboard Graphic to Graphic File, 173
Save Clipboard to Text File, 173
Schedule, 60
Schedule Macro to Run Monthly, 67
Schedule Macro to Run At File Load, 71
Schedule Macro to Run at Miscellaneous Times, 70
Schedule Macro to Run At Startup, 62
Schedule Macro to Run at Time Out, 68
Schedule Macro to Run Daily, 65
Schedule Macro to Run Hourly, 64
Schedule Macro to Run Once, 63
Schedule Macro to Run Weekly, 66
Scheduled Macro Tutorial, 23
Set Schedule,
Scope, 41, 164, 381, , ,
Screen Saver, 275
Screen Settings, 273
Scripting Editor, 168, 149, 148, 164, 162, 170
Menu Items, 155, 158, 159, 161
Scroll Lock On or Off, 217
Search Explorer, 101
Session ID, 278
Set File Attributes, 197
Shortcuts,
ShortKeys, 20, , 59, 133
Show Icon when Macro is Recording, 111
Show Script Command Categories, 111
T
Tab Delimited Text, 191
Tab Delimited Text File, 191
Terminal Services, 278
Terminate a Macro, 79
Terminate Macro Express Command, 242
Text Box Close, 181
Text Box Display, 181
Text File, 191, 195, 234
Text Strings, 304, 313
Text Type, 284
Text Type Delays, 118
Tile Horizontally, 177
Tile Vertically, 177
Time, 280, 286, 315
Timing, 116, 288, 289, 292
Toggle, 217
Treble, 250
Tutorial, 17
Type Out Text from Clipboard, 173
U
Undock Computer, 277
Uninstall Macro Express, 16
Upgrading, 401, 402
V
Variables, 296
Get Control Text, 338
If Variable, 230
Modify Decimal Variable, 300
W
Wait, 288, 289, 292
Wait For Commands, 292
Wallpaper, 275
Wav file, 251
Web Site, 215, 292
Win Key, 216
Window Order, 344
Window Reposition, 345, 350
Window Resize, 345, 350
Window Sizing Border, 275
Window Specific,
Window Title Activation, 72
Windows API Activation, 54
Windows Explorer, 184, 185
Windows Key, 216
Write to Registry, 229
X
XOR, 218