Mouse triggers
To execute some code or run a script, can be used mouse triggers. Examples: Alt
+click, Shift
+wheel, touch a screen edge in certain area, mouse movements in certain area.
To add a trigger can be used snippet triggerSnippet or menu TT > New trigger. Add triggers in function MouseTriggers in file Mouse triggers
; you'll find examples there.
To open a triggers file for editing can be used the TT menu.
Click the Run button to apply changes after editing.
Tips:
- To get code for "run script" or "run/open file or URL" you can drag and drop scripts, files and links to the code editor.
- To quickly insert
Triggers.Of.Window(...)
code, use the quick capturing hotkey (defaultCtrl+Shift+Q
).
See also recipe Triggers and toolbars.
Also triggers can be used in any script. For example in an .exe program that runs without the editor. Examples.