Home
FlashTray Pro : Help

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, BACKSPACEBackspace
BREAKBreak
CAPSLOCKCaps Lock
CLEARClear
DEL, DELETEDelete
DOWNDown arrow
ENDEnd
ENTEREnter
ESC, ESCAPEEscape
F1 – F16Function keys
HELPHelp
HOMEHome
INSInsert
LEFTLeft arrow
NUMLOCKNum Lock
PGDNPage Down
PGUPPage Up
PRTSCPrint Screen
RIGHTRight arrow
SCROLLLOCKScroll Lock
TABTab
UPUp arrow

Volume Keywords

VOLMUTEToggle sound on/off
VOLDOWNVolume down
VOLUPVolume up

Internet/Media Keywords

PLAYPAUSEPlay/pause media player
STOPStop media
NEXTNext media track
SEARCHSearch key
MAILLaunch mail

FlashTray Special Keywords

CLIPCLEARClears clipboard
CLIPSends clipboard as keystrokes (registered version only)
RUN:paramStarts program
SCREENSHOTMakes screenshot of whole screen
WINDOWSHOTMakes screenshot of topmost application (registered version only)
MINIMIZEMinimizes active window
DATE:formatSends date in custom format
ENVVAR:variableSends environment variable
PAUSE:msecsPauses the macro for x milliseconds
BEEPBeeps
REPEAT:times:macroRepeats macro string number of times (registered version only)
UNICODE:charnumEmulates 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
WINMODDisplays window resizer module
SHOWLISTShow popup window with list of hotkeys
LAUNCH:nameLaunches the item from the Launchbar with the same name
SETUP:xDisplays the configuration screen (0, 1, 2 or 3)
DELAY:msecsSets the delay between keystrokes in milliseconds
HOUR:formatSends date/time in custom format (same as DATE)
SHOW:titleBrings a window to the foreground by its title
JPGNAMESends the filename of the last screenshot as keystrokes
GETCODEConverts clipboard text to code format and writes result back to clipboard

Highlighter Keywords

PENSWITCHSwitches from one pen to the other (registered version only)
PENMODESwitches in and out of Horizontal mode (registered version only)
PENDRAWToggles the highlighter overlay on/off
PENCLEARClears all highlighter drawings from the screen
PENUNDOUndoes 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.