A macro can record your mouse clicks and keystrokes for a period of time. Save a macro as a keyword in Keybreeze. Then you can press the hotkey, type the macro, and press Enter to have Keybreeze automatically replay your actions. Press the hotkey and type macros [create] to get started.
When creating a macro, you can choose to record your mouse clicks and keystrokes, or simply press the stop key (F12 by default) to stop recording and enter commands manually.
Available commands:
<delay>
This will pause the macro for a specified period of time in milliseconds.
Example: <delay time="1000"> will pause for 1000 milliseconds, or 1 second.
<inputbox>
This will add an InputBox to the macro. It will pause during playback and prompt the user for input with a question. The user can then type a string of text or a number, and it will be used in the macro as a variable.
<keybreeze entry>
This will run an entry in Keybreeze.
Example: <keybreeze entry="notepad"> will open Notepad as long as a keyword exists for it.
<keydown>, <keyup>, <keypress>
These will simulate the respective keystrokes in the currently active window.
<messagebox>
This will display a message box to the user.
<mouseclick>, <mousedown>, <mouseup>
This will click the mouse at a specific location on your screen.
Examples: <mouseclick button="Left" location="1151,590">, <mousedown button="Left" location="1151,590">, <mouseup button="Left" location="1151,590">
<positionwindow>
This will change the position and size of a given window on your screen. The left, top, width, and height parameters are optional and can be left blank.
Example: <positionwindow title="Untitled - Notepad" class="" left="0" top="0" width="500" height="500">
<type>
This will type text in the current active window.
Example: <keybreeze entry="notepad"><delay time="2000"><type text="hello world">
This will open Notepad, pause for 2 seconds, and then type hello world.
<waitforwindow>
This will pause the macro until the specified window opens or closes. This works better than <delay> commands if the timing varies.
Example: <waitforwindow title="SQL Developer" class="" action="to_open">
This will pause the macro until a window appears with SQL Developer in the title.
Instead of using the to_open parameter, you can use to_close to wait for the window to close.