CONTENTS
Basics.................................................................................................................................................................................... 2
Keystroke basics................................................................................................................................................................... 2
Introduction............................................................................................................................................................ 2
First things to understand...................................................................................................................................... 2
The Script Editor................................................................................................................................................................... 4
The “Edit” button.................................................................................................................................................... 4
The “Tools” button ................................................................................................................................................. 5
Event Tester.......................................................................................................................................................................... 5
Device Analyzer.................................................................................................................................................................... 7
Running a script.................................................................................................................................................................... 8
Script contents...................................................................................................................................................................... 9
Minimal file contents.............................................................................................................................................. 9
Target.tmh ............................................................................................................................................................. 9
The T.A.R.G.E.T function Toolbox ..................................................................................................................................... 10
Linking axes with the MapAxis function.............................................................................................................................. 10
MapAxis optional parameters.............................................................................................................................. 11
Virtual Axis Rotation with RotateDXAxis ............................................................................................................................ 13
Keystroke and DirectX button generation with the MapKey Function................................................................................14
The “null” keystroke............................................................................................................................................. 14
Single keystroke .................................................................................................................................................. 14
Combo keystrokes............................................................................................................................................... 15
“PULSE+” command............................................................................................................................................ 16
“DOWN+” and “UP+” commands......................................................................................................................... 16
Generating a keystroke with USB codes............................................................................................................. 16
Generating a DirectX button output..................................................................................................................... 17
LE
D and backlighting control............................................................................................................................... 17
Using Macro Files............................................................................................................................................................... 19
Multiple outputs on a single button..................................................................................................................................... 20
TEMPO Command .............................................................................................................................................. 20
Layers.................................................................................................................................................................. 20
MapKeyUMD ....................................................................................................................................................... 21
MapKeyIO............................................................................................................................................................ 21
MapKeyIOUMD.................................................................................................................................................... 22
Generating an event when releasing a button with MapKeyR............................................................................ 22
CHAIN function: Generating events at the same time ........................................................................................ 23
D() Delay command............................................................................................................................................. 23
LOCK Command ................................................................................................................................................. 24
Sequences........................................................................................................................................................... 25
Axes.................................................................................................................................................................................... 27
SetSCurve ........................................................................................................................................................... 27
SetJCurve............................................................................................................................................................ 28
SetCustomCurve ................................................................................................................................................. 28
Axis control with buttons...................................................................................................................................... 28
Axis trimming ....................................................................................................................................................... 29
KeyAxis: Generating events from an axis........................................................................................................................... 31
AXMAP1 .............................................................................................................................................................. 31
AXMAP2 .............................................................................................................................................................. 33
LIST ..................................................................................................................................................................... 34
LockAxis............................................................................................................................................................... 35
Extra functions.................................................................................................................................................................... 35
Launch software from a script ............................................................................................................................. 35
R
eject a device from a virtual controller .............................................................................................................. 35
Display a text message in the Script Editor "Output Window" ............................................................................ 36
Advanced features..............................................................................................................................................................37
EXEC: Opening Pandora’s box.......................................................................................................................................... 37
Managing functions.............................................................................................................................................. 37
REXEC................................................................................................................................................................................ 39
DeferCall............................................................................................................................................................................. 40
Script Syntax....................................................................................................................................................................... 41
The following Keywords are supported............................................................................................................... 41
Operators............................................................................................................................................................. 41
Generating keystrokes with pure script .............................................................................................................................. 42
Logical Flags....................................................................................................................................................................... 43
Illustration ............................................................................................................................................................ 44
Creating your own function................................................................................................................................................. 46
T.A.R.G.E.T Script Editor Basics User Manual v1.5 – 1/60