Frequently Asked Questions


If you have any questions about the program please contact the Technical Support Service at support@automationbox.com.

This section provides answers to questions on various subjects related to the use MouseRobot.

1. I found a bug in the program. What should I do?

Please use the "Help" function - "Send bug report". It is very advisable to describe the problem in detail and, if possible, how it can be reproduced, specify email address for reply and attach any additional files that may be necessary to reproduce and fix the bug.

 

2. How to automate dragging of objects (Drag'n'Drop)?

To do this, you must add two "Select Object on Screen" steps:

The first step should select the object and press the mouse button (in the settings put "Press" instead of "Click").
The second operation should set the mouse cursor over the area to which the object is dragged, and release the mouse button (in the settings you must select "Release").

 

3. Is it possible to assign hotkeys to execute automated actions?

Yes. To assign a keyboard shortcut for the macros:

1. Open the MouseRobot Task Scheduler by a double-clicking with the mouse on MouseRobot icon in the Windows taskbar (icons near the clock).

2. Click the "Schedule Task" button.

3. Select the desired task, command or program.

4. Click the "Add trigger", trigger type "Execute by hotkey press"

5. Specify the desired hotkeys.

It is advisable to choose hotkeys of the type Ctrl + Alt + Shift +0 ... Ctrl + Alt + Shift +9 to avoid conflicts with the standard Windows keyboard shortcuts and other programs.

 

4. How to create input and display of information in MouseRobot?

MouseRobot Toolbox contains the step "Dialog (input and display of data)", which allows you to display dialog boxes to enter text, numbers, time and date, select the files and directories, etc.

 

5. Can I run a MouseRobot macros on the computer where MouseRobot is not installed?

Yes. Choose "Save as standalone .exe file ..." in the main menu. The macros will be saved as a standalone executable file that you can run on any computer with Windows.

 

6. How to use variables?

Variables in MouseRobot are indicated in curving braces (e.g. {my_var}). To use the variable in a string, simply insert it into the desired position in the string:

"{folder}\resize" is the resize subdirectory of the directory {folder}, where {folder} is a variable;
you can store any number in the variable "{a} = 3" in the step "Set variable or call fuction" and then display it in the dialog box ("Value = {a}"), use it in expressions, substitute it as part of a command, parameter, file name and other.
To define list of values in one variable you can use build-in MouseRobot range and list functions such as {Range(1, 10)}, {StringList("First", "Second", "Third")}, {FileList("c:\*.doc")}. Then you can iterate through values of the variable in the "Loop" step.

 

7. How to open the Task Scheduler in MouseRobot?

To open the Task Scheduler in MouseRobot left click on the icon in the MouseRobot taskbar Windows (icons near the clock). This area can be hidden, to display it, click "Show hidden icons" (a triangle).

 

8. How to delegate correctly a parameter in the step "Windows Command" ("Creating directory", "Deleting directory", etc.)?

The Parameter must be specified in quotation if the string contains spaces. In general, it is better to enclose in quotation marks the parameters and the name of the executable program.

For example: "{folder}\Reports 2010\report.doc"

 

9. How to execute actions for all files in directory?

Select the step "Loop through files" (located under "Files and Directories") in the MouseRobot toolbox.

In the" Loop through” in the function {FileList (c:\ *.*)} indicate directory name.

For example:

{FileList ("C:\My_folder")} list all files from directory

{FileList ("C:\My_folder\*. jpg")} will consider only the pictures with extension *. jpg

{FileList ({folder})} if the directory name is stored in the variable {folder}

In the field "Loop variable" the name of the variable with which the loop can get the current value is indicated (the name of the next file).

 

10. How do I change the value of a variable?

To change the value of a variable use the step "Set variable or call function"

The name of the variable is given in the field "Variable" (e.g., ({folder}), the new value is specified in the field "Value" (e.g., {folder}/resize). To define the value of the variable you can use other variables and MouseRobot functions. For convenient insertion of the names of variables and functions, use the "Insert value" button.

 

11. What are labels and how are they used?

A label allows you to specify the position in the task, to which you can pass from any step of the task.

Assigning labels:

The label can be defined as a separate step, "Label".
A label can mark any step in the task. For this in the step properties go to the "Common" pane and set the label in the "Step label" field.

Go to label:

You can go to a label using the step "Go to label".
For each step you can specify a label to which the program moves, if the step fails. To do this in the step properties select the "on Error" pane and define the label in field "Go to label".

 

12. What are the restrictions for the name of the variable?

The name of the variable in MouseRobot must not contain braces "{ }" and round "( )" brackets.

 

13. What values does the variable take for the "Check box" field in the dialog?

The variables set for the "Check box" field can be either "True" or "False" in the dialog.

 

14. What is the purpose of the "Action" and "Display Mode" fields in the "Windows Command" step?

The "Action" field states "what you have to do with this object".

For example, "Run", "Edit", "Print", etc.

The "Display Mode" field states "what you have to do with the program window, corresponding to the object”.

For example," Maximize Window","Minimize ", etc.

More about "Action" and "Display Mode" field you can read in "Running and managing programs".

 

15. What is the difference between the variables {LastProcess} and {LastControl}?

{LastProcess} remembers the last running program, while {LastControl} remembers the last found object on the screen.

{LastProcess} points to the last application opened by the step "Windows Command". For example, if we run the Notepad with the command "notepad", then later with the variable {LastProcess} we can activate it, close or cancel. The value of this variable can be assigned to another variable, which then can be used similarly {LastProcess}.

{LastControl} points to the last graphic object found by the step "Search object on screen". For example, it might be a button in application window. With this variable you can control the display mode of the window, activate, close, abort the application to which the graphic object refers. The value of this variable can be assigned to another variable, which then can be used similarly {LastControl}.

 

16. What is the difference between the operation "Close" and the operation "Kill" in the "Windows Command" step?

Both operations try to close the specified application, but in the case of an unsuccessful attempt, the "Kill" command forcibly quits action.