FlashTray Pro 5.0
FlashTray Macro Language
Macros in FlashTray Pro follow the Visual Basic SendKeys syntax, but it has been enhanced in several ways. Every detail about it is described below.
If you want FlashTray to interpret text as a macro, the 'send as macro' checkbox must be checked for the individual hotkey.
Supported Modifiers
+ | Shift |
^ | Control |
% | Alt |
Surround sequences of characters or key names with parentheses in order to modify them as a group. For example, +abc shifts only 'a', while +(abc) shifts all three characters.
Supported Special Characters
~ | Enter |
( | Begin modifier group |
) | End modifier group |
{ | Begin key name text |
} | End key name text |
Any character that can be typed is supported. Surround the modifier keys listed above with braces in order to send them as normal text.
Basic Keywords
Surround these with braces, e.g. {TAB}. Follow a keyword with a space and a number to send it multiple times, e.g. {left 6}.
BKSP, BS, BACKSPACE | Backspace |
BREAK | Break |
CAPSLOCK | Caps Lock |
CLEAR | Clear |
DEL, DELETE | Delete |
DOWN | Down arrow |
END | End |
ENTER | Enter |
ESC, ESCAPE | Escape |
F1 – F16 | Function keys |
HELP | Help |
HOME | Home |
INS | Insert |
LEFT | Left arrow |
NUMLOCK | Num Lock |
PGDN | Page Down |
PGUP | Page Up |
PRTSC | Print Screen |
RIGHT | Right arrow |
SCROLLLOCK | Scroll Lock |
TAB | Tab |
UP | Up arrow |
Volume Keywords
VOLMUTE | Toggle sound on/off |
VOLDOWN | Volume down |
VOLUP | Volume up |
Internet/Media Keywords
PLAYPAUSE | Play/pause media player |
STOP | Stop media |
NEXT | Next media track |
SEARCH | Search key |
MAIL | Launch mail |
FlashTray Special Keywords
CLIPCLEAR | Clears clipboard |
CLIP | Sends clipboard as keystrokes (registered version only) |
RUN:param | Starts program |
SCREENSHOT | Makes screenshot of whole screen |
WINDOWSHOT | Makes screenshot of topmost application (registered version only) |
MINIMIZE | Minimizes active window |
DATE:format | Sends date in custom format |
ENVVAR:variable | Sends environment variable |
PAUSE:msecs | Pauses the macro for x milliseconds |
BEEP | Beeps |
REPEAT:times:macro | Repeats macro string number of times (registered version only) |
UNICODE:charnum | Emulates the unicode character with that number (registered version only) |
POP:+item1+item2+... | Shows a popup window with different lines of text from which you can choose one |
WINMOD | Displays window resizer module |
SHOWLIST | Show popup window with list of hotkeys |
LAUNCH:name | Launches the item from the Launchbar with the same name |
SETUP:x | Displays the configuration screen (0, 1, 2 or 3) |
DELAY:msecs | Sets the delay between keystrokes in milliseconds |
HOUR:format | Sends date/time in custom format (same as DATE) |
SHOW:title | Brings a window to the foreground by its title |
JPGNAME | Sends the filename of the last screenshot as keystrokes |
GETCODE | Converts clipboard text to code format and writes result back to clipboard |
Highlighter Keywords
PENSWITCH | Switches from one pen to the other (registered version only) |
PENMODE | Switches in and out of Horizontal mode (registered version only) |
PENDRAW | Toggles the highlighter overlay on/off |
PENCLEAR | Clears all highlighter drawings from the screen |
PENUNDO | Undoes the last highlighter stroke |
Examples
Example 1:
%(ip)c:\windows\carved stone.bmp{tab 2}Stone{tab 2}15~
This macro inserts a picture in an Outlook mail:
%(ip) : insert picture (ALT-I ALT-P)
c:\windows\carved stone.bmp : path of the picture
{tab 2} : go to 'Alternate text'
Stone : Alternate text
{tab 2} : go to 'Border Thickness'
15 : enter value 15
~ : press Enter (OK button)
Example 2:
%(ip){CLIP}{tab 2}Picture{tab}L{tab}15~
A variant of Example 1 where the full path is on the clipboard. This way you can even copy internet links to pictures and paste the pictures themselves in MS Word with this macro.
Example 3:
Today is {DATE:dd mmm yyyy} and the time is {DATE:hh:nn am/pm}.
This macro inserts the following line:
Today is 05 Jan 2026 and the time is 08:34 PM.
Copyright © 2001-2026 Blacksun Software. All Rights Reserved