Input.Observer
Help
Quick start
  1. First run
  2. Draw your first gesture
  3. Make a gesture do something
  4. An action for one program
  5. Keep a program out
  6. Run an action from the keyboard
  7. Type less with text expansion
  8. Pause, bypass and exit
User manual

The basics

  1. How it works
  2. The configuration window
  3. The tray icon
  4. Glossary

Gestures

  1. Drawing a gesture
  2. The gesture library
  3. How a stroke is matched

Where actions apply

  1. App groups
  2. Scope and fallback rules
  3. Ignore groups
  4. Regions
  5. Modifiers and timing
  6. Profiles
  7. Before and after actions

Keyboard

  1. Hotkeys
  2. Text expansion
  3. Ignored modifier keys
  4. Touch and pen

Actions

  1. The Actions page
  2. Steps, Script and AutoHotkey
  3. Snippets
  4. Macro recorder
  5. Sandbox
  6. Global events

On screen

  1. Appearance
  2. Gesture trails
  3. Hints and messages
  4. Exclusion zones

Settings and maintenance

  1. General settings
  2. Script settings
  3. Plugins
  4. Security
  5. Import and export
  6. The configuration file
  7. Portable copy
  8. Console
  9. About and license
  10. Troubleshooting
Steps
  1. The Steps editor
  2. Adding and arranging steps
  3. Step parameters
  4. Variables
  5. Conditions
  6. Repeating steps
  7. Worked recipes
  8. From Steps to Script
  9. Problems the Steps editor reports
Script language reference

Language

  1. Overview
  2. Cheat sheet
  3. Source text
  4. Literals
  5. Value types
  6. Variables
  7. Statements
  8. Operators
  9. Mixed-type rules

Working with data

  1. Text
  2. Numbers
  3. Bitwise operators and flags
  4. Named constants

Builtins and runtime

  1. Calling builtins
  2. Control-flow idioms
  3. How scripts run
  4. Serial devices and Arduino
  5. Errors
  6. What the language doesn't have
  7. The Steps engine
  8. Gotchas

Reference

  1. Builtin signatures
  2. Examples

Quick start

Each page here does one task from start to finish. Do them in order the first time: each one takes a few minutes, and together they take less than half an hour. The pages tell you what to click. The User manual explains the rules behind each task.

The tasks

Page What you do
First run Install Input.Observer, start it, find its tray icon and open the configuration window.
Draw your first gesture Draw a gesture from the starter set and see what the trail and the hint show.
Make a gesture do something Create an action that a gesture runs, apply it, and try it.
An action for one program Make an action that works in one program only.
Keep a program out Stop Input.Observer from reacting inside a program, such as a game.
Run an action from the keyboard Give an existing action a hotkey.
Type less with text expansion Type a short code and get longer text.
Pause, bypass and exit Turn Input.Observer off for a while, skip it for one click, stop a runaway action, or close it.

Where to go next

  • The basics — how the engine and the configuration window work together.
  • Steps — build what an action does from steps, without writing a script.
  • Script language reference — write what an action does as a script.
  • First runInstall Input.Observer, start it, find its tray icon and open the configuration window.
  • Draw your first gestureDraw a gesture from the starter set over a window and see what the trail and the hint show.
  • Make a gesture do somethingCreate an action that a gesture runs, apply it, and try it.
  • An action for one programMake an action that works in one program only, using an app group for that program.
  • Keep a program outStop Input.Observer from reacting inside one program, such as a game or a remote desktop.
  • Run an action from the keyboardAdd a hotkey trigger to an action you already have.
  • Type less with text expansionType a short code, press Space, and get longer text in its place.
  • Pause, bypass and exitTurn Input.Observer off for a while, skip it for one click, stop a runaway action, start in Safe Mode, or close it.
NextFirst run

First run

Input.Observer needs 64-bit Windows 10 version 1809 or later, or Windows 11.

To run it from a folder without installing it, see Portable copy instead.

Install

  1. Run the setup program and approve the Windows prompt that asks for permission to make changes. Setup shows its pages in your Windows display language when Input.Observer is translated into it, and in English otherwise.

  2. Accept the license agreement. The agreement is in English in every language.

  3. On the tasks page, leave Start Input.Observer when I sign in to Windows checked if you want it running every time you sign in. You can change this later on the General page.

  4. On a new installation, setup asks how gesture trails, hints and messages are drawn:

    • With styles — animated trails, themed hints and messages, and sounds. This uses the graphics card.
    • Classic — a plain line, plain hints and messages, and no sounds. This uses the least memory and processor time.

    Setup checks the computer's graphics first. If the computer has no hardware graphics acceleration, its graphics card can't draw styles, or setup is running in a Remote Desktop session, setup selects Classic and says why. You can still choose either one. You can change this later on the Appearance page. See Appearance.

  5. If the .NET 10 Desktop Runtime is missing, setup downloads it from Microsoft and installs it.

  6. On the last page, leave Launch Input.Observer checked and finish.

If Input.Observer is running when setup is ready to install (when you install a new version, for example), setup asks whether to close it. Yes closes it, even while it is still waiting at a question it asks when it starts, such as the license window; if the configuration window has unsaved changes, it asks you to save or discard them first. No leaves it running and keeps setup on its page, so you can close it yourself and continue. Uninstalling asks the same question; there, No cancels the uninstall.

An update that installs without showing setup's pages, such as an update from the Microsoft Store, doesn't ask: it closes Input.Observer and starts it again when the update is done. If the configuration window has unsaved changes, it asks you to save or discard them, and the update waits up to a minute for your answer. If Input.Observer is still running after that, the update doesn't install, and a message says so.

The first start

The first time Input.Observer starts, it can show these windows, in this order:

  1. i.o - License Agreement, if setup didn't already record that you accepted it. Choose I accept to continue. Decline closes Input.Observer.
  2. i.o - Activate License. During the 30-day trial it opens at every start. Enter your email and license key and choose Activate, or choose Continue Trial. See About and license.
  3. A short splash screen.

Then the tray icon appears in the notification area of the taskbar, and the configuration window opens with a welcome. If you don't see the tray icon, click the Show hidden icons arrow on the taskbar and drag the icon onto the taskbar to keep it in view.

Hold Ctrl while Input.Observer starts only if you want Safe Mode. Safe Mode is described on Pause, bypass and exit.

The welcome

  1. Read the welcome. It names the stop-all-actions hotkey, which is Ctrl+Shift+Alt+F9 unless you change it. Choose Next ①.
  2. Your setup already has the starter set. Choose Keep the starter set ② to keep the ready-made gestures and actions, or Start from scratch to remove them: you start with no gestures or actions, and only the Global group. The starter set gives you everyday gestures that work in every program, actions for web browsers and File Explorer, protection for the Windows desktop and taskbar, and it leaves Remote Desktop and virtual machine windows alone.
  3. Under the starter set, clear the apps you don't want actions for ③. Each app's actions only work while that app is the window under your gesture, so an app you don't have does no harm.
  4. Choose Get started ④. Your choice is saved at once, and the Actions page opens.

Escape on the second page keeps the whole starter set. You can open the welcome again at any time from the ⋯ menu at the top of the configuration window (Show welcome…) or from the About page.

Open the configuration window later

The configuration window is a separate program from Input.Observer itself. Close it whenever you like: gestures, hotkeys and text expansion keep working. To open it again:

  • double-click the tray icon, or
  • right-click the tray icon and choose Open.

Starting Input.Observer again from the Start menu while it is already running only shows a message that it is already running.

Simple and Advanced

The configuration window starts in Simple mode. The Simple | Advanced switch at the top of the window shows or hides advanced pages and settings. Simple mode only hides things: it never changes or resets a setting. The quick start uses Simple mode throughout. See The configuration window.

Next

Draw your first gesture.

PreviousQuick startNextDraw your first gesture

Draw your first gesture

This page uses the starter set from the welcome. If you chose Start from scratch, make an action first on Make a gesture do something, then come back.

Draw it

  1. Open a program whose window isn't maximized, for example Notepad.
  2. Point at the window. Press and hold the right mouse button.
  3. Without letting go, move the pointer up and to the right in a straight line, about two or three centimeters, as in the picture.
  4. Let go of the button.

The window maximizes. Draw the same line again over it and the window goes back to its earlier size. That is the starter set's Maximize or restore window action, in the Global app group, which works in every program.

What you see while drawing

  • The trail. Once the pointer has moved a few pixels with the button down, a trail follows it. How it looks depends on what you chose in setup and on the Appearance page. See Gesture trails.
  • The hint. After 150 milliseconds or 24 pixels of drawing, a small window near the pointer shows what your stroke matches so far: the app group, the action's name, and its hint note if it has one. It changes as you draw. When the stroke matches nothing, the hint disappears, and it comes back as soon as the stroke matches something again. See Hints and messages.

When you let go, Input.Observer brings the window you started drawing over to the front, then runs the matched action.

When nothing matches

If the stroke matches no action when you let go, nothing happens. The right-click doesn't reach the program either: it was used for drawing. See How a stroke is matched.

A right-click is still a right-click

  • A plain click. If you press and let go without moving the pointer 5 pixels, Input.Observer sends the program an ordinary right-click, so its context menu opens as usual.
  • Press and wait. If the pointer stays still for half a second while you hold the button, the gesture is cancelled and the program gets the button press, as if Input.Observer weren't there. Use this to right-drag in programs that need it. Moving the pointer while drawing restarts the half-second wait, so a slow gesture isn't cancelled.
  • Skip it entirely. Hold Ctrl while you press the right button, and the press goes to the program untouched. See Pause, bypass and exit.

The half second and the 5 pixels are the defaults. Both can be changed on the General page. See Drawing a gesture.

Other gestures to try

These are some of the starter set's Global actions. They work in every program, unless an app group for that program does something else with the same shape.

Draw Action
A straight line up Copy (Ctrl+C)
A straight line down Paste (Ctrl+V)
A straight line left Back (Alt+Left)
A straight line right Forward (Alt+Right)
A diagonal line down and to the left Minimize window
The letter C Center window
A square Show desktop

Every starter action is in the Examples category on the Actions page, with the gesture that runs it. The gestures themselves are on the Gestures page. See The gesture library.

Next

Make a gesture do something.

PreviousFirst runNextMake a gesture do something

Make a gesture do something

An action is what Input.Observer does for you. A trigger is what starts it: a gesture, a hotkey or typed text. This page makes an action with a gesture trigger that opens Notepad.

Create it with Quick create

  1. In the configuration window, click Quick create… ① under the list of pages, or press Ctrl+N. The wizard opens.
  2. Choose Do something when I draw a shape ② and click Next.
  3. Choose In every program ③ and click Next.
  4. Pick a shape ④. Each card says what that shape already does here. Choosing one that already runs another action in the same place is blocked, because only the first action would run; the wizard selects the first free shape for you. To make a shape of your own, choose Draw a new shape, give it a name, and draw it three times in the box with the left mouse button. Click Next.
  5. Choose Open a program, file or website ⑤, type notepad in Program, file, folder or web address ⑥, and click Next. To make the gesture maximize the window instead, choose Maximize or restore the window.
  6. Keep the suggested name or type your own, then click Create and apply ⑦.

The new action is created, applied to Input.Observer at once, and shown on the Actions page. Applying saves every unsaved change in the window, not only this one. Create, apply later creates the action without applying it; it then waits, with any other unsaved changes, until you click Apply at the bottom of the window.

Try it

Draw the shape you chose with the right mouse button over any window. While you draw, the hint shows the action's name. When you let go, Notepad opens.

If nothing happens, see Troubleshooting.

Do the same on the Actions page

Quick create is a shortcut. Everything it makes is an ordinary action that you can open and change on the Actions page, and you can build an action there from the start.

  1. Open Actions. In App group ①, choose the group the action belongs to: Global for every program. The list can't create an action while it shows All, because an action always belongs to one app group.
  2. Click + New at the bottom of the Actions list ②, and type a name.
  3. In Triggers, click + Gesture ③. Click the empty gesture box ④ and choose a gesture, or click New… to draw one.
  4. In What it does, pick a step under ADD A STEP ⑤ and fill in its settings.
  5. Click Apply in the bar at the bottom of the window, or press Ctrl+S.

Nothing you change in the configuration window takes effect until you apply it. See The configuration window, The Actions page and Steps.

Next

An action for one program.

PreviousDraw your first gestureNextAn action for one program

An action for one program

Actions belong to app groups. The Global group works in every program. An app group works only in the windows its rules describe, for example every Notepad window. This page makes a gesture that opens Notepad's Replace box, and only in Notepad.

Create it

  1. Open Notepad, so it has a window.
  2. In the configuration window, click Quick create… (or press Ctrl+N), choose Do something when I draw a shape, and click Next.
  3. Choose Only in one program ①.
  4. In Programs with a window open, choose Notepad ②. If the program isn't listed, click Point at a window ③, hold the mouse button down, drag onto the program's window and let go, or click Browse… and choose the program file.
  5. Read the note under the list ④. It says which app group the action goes into: an app group that already covers the program, or a new one made for it. Click Next.
  6. Pick a shape. A card marked Here instead of: is a shape that already does something in Global. Choosing it is allowed: in Notepad your new action runs instead, and the Global action keeps working in every other program. Click Next.
  7. Choose Send keys ⑤. Click the Keys to press box ⑥, press Ctrl+H, and click Next.
  8. Click Create and apply.

Try it

Draw the shape over Notepad: its Replace box opens. Draw it over any other window: if the shape has a Global action, that action runs there, and otherwise nothing happens.

What was made

  • On the App groups page, a group for Notepad, with one rule on its Windows tab: the program file is notepad.exe. Every window of that program now belongs to the group.
  • On the Actions page, your action, in that group.

A gesture that the Notepad group has no action for still runs Global's action in Notepad. That is the group's Fall back to Global setting, which is on unless you turn it off. See App groups and Scope and fallback rules.

Next

Keep a program out.

PreviousMake a gesture do somethingNextKeep a program out

Keep a program out

An ignore group names programs that Input.Observer leaves alone. In their windows the right mouse button and your typing go straight to the program: no gestures, no text expansion, and none of your actions run there, Global's included. The starter set already ignores Remote Desktop and common virtual machine and remote control programs.

Create the ignore group

  1. Start the program, so it has a window.
  2. In the configuration window, click Quick create… (or press Ctrl+N), choose Leave a program alone ①, and click Next.
  3. Choose the program ②, or use Point at a window or Browse… as on An action for one program. If the program already belongs to an app group, a note names the group whose gestures, hotkeys and typed shortcuts stop working there. Click Next.
  4. Keep the suggested name or type your own, and click Create and apply ③.

The new ignore group is on the Ignore groups page. Ignore groups are checked before every app group, so the program is left alone even if an app group also covers it.

A hotkey that is reserved with Windows still takes its key combination away from every program, ignored ones included: the program never receives those keys, and the action doesn't run there either. See Hotkeys.

For a game: pause everything while it has focus

  1. Open Ignore groups and select the group.
  2. Turn on Only while the window is fullscreen ① if the program should be left alone only while it fills the screen, and treated normally the rest of the time.
  3. Turn on Pause everything while focused ② to switch Input.Observer off completely while a window of this group is in front. It switches back on when another window comes to the front. With ① on as well, it pauses only while the window is fullscreen. While it is paused, the tray icon's tooltip names the group. A pause you set yourself from the tray always wins over this one.
  4. Click Apply.

See Ignore groups for every rule, and The tray icon for the paused state.

Next

Run an action from the keyboard.

PreviousAn action for one programNextRun an action from the keyboard

Run an action from the keyboard

An action can have several triggers. This page adds a hotkey to the Open Notepad action from Make a gesture do something, so both the gesture and the keys run it. Any other action works the same way.

Add the hotkey

  1. Open Actions. Choose the action's app group in App group, or All, and select the action in the list ①.
  2. In Triggers, click + Hotkey ②. A new HOTKEY trigger opens under the others.
  3. Click the Key combination box ③. It reads Press a key combo…. Press the keys together, for example Ctrl+Shift+Alt+N. While the box is waiting, it catches every key, even ones Windows would act on, such as Win+E. Media, volume and browser keys work too, and the box shows their names, such as Play/Pause. Press Escape to stop without setting anything.
  4. If a colored banner appears above the triggers, read it. It tells you when the keys are already used by another action or by the stop-all-actions hotkey, and which one wins.
  5. Click Apply at the bottom of the window, or press Ctrl+S.

Now press Ctrl+Shift+Alt+N anywhere: Notepad opens.

Choosing keys

  • Ctrl+Shift+Alt with a letter is rarely used by other programs. The starter set already uses Ctrl+Shift+Alt+O to open the configuration window, and Ctrl+Shift+Alt+F9 stops all actions.
  • The keys are taken from every program. In Simple mode a hotkey is reserved with Windows: while Input.Observer runs, no other program receives those keys, even in a program where your action doesn't run, and even while Input.Observer is paused from the tray.
  • The window in front decides which action runs. A hotkey belongs to the action's app group. The app group of the window in front is used, and Global when that group has no action for the keys (unless the group's Fall back to Global is off).

Advanced mode. The hotkey trigger also shows Registered. Turn it off to react to the keys without reserving them: other programs then receive them too. Advanced mode also shows Held modifier keys, and Swallow the final key for a hotkey that isn't reserved. See Hotkeys.

Next

Type less with text expansion.

PreviousKeep a program outNextType less with text expansion

Type less with text expansion

A replacement turns a short code into longer text. When you type its code and then press Space, the code is erased and the replacement text is typed in its place. The starter set has one already: type ;shrug and press Space in any program.

Add a replacement

  1. Open Text expansion. The Replacements tab is selected.
  2. In App group ①, choose Global so the replacement works in every program. Choose a program's app group instead to make it work only there. A new replacement can't be made while All is selected.
  3. Click + New at the bottom of the Replacements list ②, and type a name for it.
  4. In Typed text ③, type the code, for example ;addr. Start it with a character such as ; so it never matches an ordinary word.
  5. Under What it does, keep Text ④ and type the replacement in Replacement text ⑤.
  6. Click Apply.

Open Notepad, type ;addr and press Space. The code disappears, the address appears, and the space follows it.

The rules

  • Case matters. ;addr expands; ;Addr doesn't.
  • What ends the code: Space, Tab or Enter, or a period, comma, exclamation mark or question mark. The key you pressed is sent after the replacement, so Enter acts on the finished text.
  • A space can't be part of the code, because a space ends it.
  • Holding Ctrl, Alt or Win while typing starts the code over: a shortcut is never typing.
  • Which replacement runs depends on the window you type in: its app group's replacements first, then Global's.

Text types the replacement as keystrokes, which works almost everywhere but is slow for long text. Text via clipboard pastes it, which is instant. See Text expansion.

Advanced mode. The Settings tab also shows Expand on Space, Expand on Tab and Expand on Enter, to choose which keys end a code. In Simple mode it shows only Text expansion enabled, which turns every replacement on or off.

Next

Pause, bypass and exit.

PreviousRun an action from the keyboardNextPause, bypass and exit

Pause, bypass and exit

Pause it

  1. Right-click the tray icon and choose Enabled ① to clear its check mark. A single left-click on the icon does the same.
  2. To turn it back on, choose Enabled again, or click the icon again.

While it is paused, the icon is gray and its tooltip reads i.o - disabled. Gestures and text expansion are off, and the right mouse button and your typing go straight to programs. Hotkeys that are reserved with Windows still take their keys, but do nothing. Input.Observer is always switched on again the next time it starts.

Skip it for one click

Hold Ctrl while you press the right mouse button. That press, the drag and the release go to the program as if Input.Observer weren't there. Release Ctrl when you are done.

Ctrl is the default. You can choose Ctrl, Shift, Alt or several of them under Ignored modifier keys on the General page. See Ignored modifier keys.

Stop a runaway action

Press Ctrl+Shift+Alt+F9. Every running action stops, even one that is stuck. So that nothing starts it again, Input.Observer then also switches off gestures, text expansion, hotkeys, script timers and folder watches, and shows a notification saying so. Hotkeys reserved with Windows stay reserved, so their keys still don't reach other programs, but they run nothing. The keys work even in the middle of a gesture or a macro recording.

To switch everything back on, right-click the tray icon and choose Reload Config ②.

The keys can be changed, or turned off, under Stop all actions hotkey on the General page. They must include Ctrl, Alt or Win, so ordinary typing can't set them off.

Safe Mode

Use Safe Mode when an action or script misbehaves as soon as Input.Observer starts.

  1. If Input.Observer is running, exit it (below).
  2. Hold Ctrl while you start Input.Observer, and keep holding it until a question appears.
  3. i.o - Safe Mode asks Start Input.Observer in Safe Mode? Choose Yes.

In Safe Mode there are no mouse or keyboard hooks, no hotkeys, no plugins, and none of your actions or Config loaded and Engine shutting down scripts run. You are still asked for your password and license as usual. The tray icon is gray, and its tooltip reads i.o - Safe Mode (restart to resume normal operation). The configuration window works, so you can fix the problem there. Safe Mode lasts until you exit and start Input.Observer again normally.

Exit

Right-click the tray icon and choose Exit ③.

  • If the configuration window has unsaved changes, it asks first: Save or Discard changes. Input.Observer exits either way.
  • The configuration window closes too.
  • Windows that a script hid, or minimized to the tray, are shown again.

See The tray icon for every menu item.

Next

You have finished the quick start. The User manual covers every feature in detail.

PreviousType less with text expansionNextUser manual

User manual

The manual explains every feature and every page of the configuration window, and states the rules exactly: what matches, what wins, and what each setting does, with its default. To get something done quickly, start with the Quick start instead.

How it is organized

Part What it covers
The basics How Input.Observer works, the configuration window, the tray icon, and a glossary of terms.
Gestures Drawing a gesture, the gesture library, and how a stroke is matched.
Where actions apply App groups, scope and fallback, ignore groups, regions, modifiers and timing, profiles, and actions that run before or after others.
Keyboard Hotkeys, text expansion, ignore keys, and touch and pen input.
Actions The Actions page, the ways an action can run, snippets, the macro recorder, the sandbox, and global events.
On screen Appearance, gesture trails, hints and messages, and exclusion zones.
Settings and maintenance General settings, scripts, plugins, security, import and export, the configuration file, the console, the license, and troubleshooting.

Two more parts of the help go into depth on what an action does:

  • Steps — building an action from steps in the Steps editor.
  • Script language reference — the script language, every builtin and a library of examples.

Conventions

  • Bold text is a label exactly as the program shows it: a page, card, setting, button or menu item.
  • The manual uses the names Simple mode shows. Where Advanced mode names something differently, the page says so once.
  • A section that starts with a note saying Advanced mode. describes something that only Advanced mode shows. See Simple and Advanced.
  • The basicsHow Input.Observer is put together, the configuration window, the tray icon and the terms it uses.
  • GesturesDrawing gestures, the gesture library, and how a drawn stroke is matched.
  • Where actions applyApp groups, scope and fallback, ignore groups, regions, modifiers, profiles and before/after actions.
  • KeyboardHotkeys, text expansion, ignored modifier keys, and touch and pen input.
  • ActionsWhat an action is, and the pages that build, store, record and test actions.
  • On screenWhat Input.Observer draws on your screen while you work: gesture trails, hints and messages, and where it never reacts to a click.
  • Settings and maintenanceGeneral settings, script settings, plugins, security, import and export, the configuration file, the console, the license and troubleshooting.
PreviousPause, bypass and exitNextThe basics

The basics

Start here to understand the parts of Input.Observer and the words the rest of the manual uses.

Page What it covers
How it works The engine and the configuration window, where your settings are kept, and what happens from the moment you press the draw button to the moment an action runs.
The configuration window The list of pages, lists and editors, saving and applying, the status bar, theme, Simple and Advanced mode, and Quick create.
The tray icon What each icon and tooltip means, and every item on the tray menu.
Glossary Every term you meet, with a link to the page that explains it.
  • How it worksThe engine and the configuration window, where your settings are kept, and what happens from a button press to an action.
  • The configuration windowThe list of pages, lists and editors, saving and applying, the status bar, theme, Simple and Advanced mode, Quick create, and the help window.
  • The tray iconWhat each tray icon and tooltip means, what clicking the icon does, and every item on the tray menu.
  • GlossaryEvery term Input.Observer uses, with a link to the page that explains it.
PreviousUser manualNextHow it works

How it works

Two programs

Input.Observer is two programs that work together.

  • The engine runs in the background, with its icon in the notification area of the taskbar. It receives mouse and keyboard input, draws the gesture trail and the hint, recognizes gestures, hotkeys and typed codes, and runs your actions. It also has the diagnostic console. The engine works on its own: it needs nothing else running.
  • The configuration window is where you change what the engine does. It is a separate program that you open from the tray icon and close whenever you like; closing it changes nothing in the engine. It can only run while the engine runs: started on its own, it says that Input.Observer isn't running and closes. When the engine exits, the configuration window closes too.

Plugins are further separate programs that the engine starts and stops. The bundled Styles plugin draws animated trails, themed hints and messages, and plays sounds, when you choose a style for them. See Plugins.

The engine receives mouse input only while something you configured needs it: at least one draw button, a draw key, a global mouse or wheel event, or text expansion. While the engine is paused from the tray it receives neither mouse nor keyboard input.

Where your settings are kept

  • The configuration file. Everything you set up — gestures, actions, app groups, settings — is in one file, config.toml, in the Input.Observer folder of your roaming application data (%APPDATA%\Input.Observer). If a config.toml sits in the same folder as the engine's program file, that one is used instead, which lets you run Input.Observer from a folder you carry with you. The tray menu's Open Config Folder opens the folder in use.
  • Who writes it. The engine reads the file when it starts. The configuration window gets the settings from the engine and hands your changes back when you apply them; the engine writes the file and starts using the changes at once. If you edit the file by hand, choose Reload Config from the tray menu to use your edits.
  • Next to it are your license, the console's settings, the active profile, your macro recordings, and a Backup folder with up to 10 earlier versions of the file.
  • The configuration window's own preferences — its size and position, Simple or Advanced mode, the page you last had open, and the sandbox layouts — are kept for this computer only, in %LOCALAPPDATA%\Input.Observer. The theme and the language are in the configuration file, because the engine uses them too.

The configuration file can be protected with a password. See The configuration file and Security.

From a button press to an action

This is what happens when you draw a gesture with the default settings.

  1. You press the right mouse button. At once, before anything else, the engine decides whether this press is a possible gesture. It isn't, and the press goes to the program untouched with no delay, when:

    • an ignored modifier key (Ctrl by default) is held,
    • the pointer is in an exclusion zone,
    • the window under the pointer belongs to an ignore group,
    • the window's app group has Draw buttons start gestures here turned off, or
    • neither the window's app group nor Global has gestures to offer there.

    The window that counts is the top-level window under the pointer. Ignore groups are checked first, then app groups in their list order; a window no group claims belongs to Global. See Scope and fallback rules. Holding the draw key instead of a mouse button works the same way, except that Draw buttons start gestures here doesn't apply to it. See The draw key.

  2. The press is held back while you draw. Once the pointer moves 5 pixels, the press is a gesture and the trail appears. If you let go before that, the program gets an ordinary click. If the pointer stays still for half a second, the gesture is cancelled and the program gets the press. A gesture can last at most 10 seconds. While you draw, keys you press and other mouse buttons go to the gesture, not to the program. See Drawing a gesture.

  3. The stroke is compared as you draw. It is scored against the gestures that the window's app group and Global use. The hint shows what it matches so far. See How a stroke is matched.

  4. You let go, and the action is chosen. The best-scoring gesture counts only if its score reaches the match threshold (75 by default). Among the app group's actions, the first one in the list whose trigger fits — gesture, draw button or draw key, held modifiers, region and profile — is chosen. If the app group has none, Global's actions are tried, unless the group's Fall back to Global is off.

  5. The action runs. The window you started drawing over comes to the front, then any actions set to run before it, the action itself, and any set to run after it. See Before and after actions.

If nothing matches, nothing runs, and the press doesn't reach the program. The Nothing matched global event can run an action for that case. See Global events.

Hotkeys and text expansion follow the same app-group rules, but the window that counts is the window in front, not the window under the pointer. See Hotkeys and Text expansion.

Simple and Advanced mode

The configuration window has two modes. Simple shows what most people need. Advanced adds pages and settings for finer control, such as modifier timing, regions, profiles, the code behind steps, global events, exclusion zones, plugins and the console. The mode changes only what the window shows. Every setting works the same in both modes, and settings you changed in Advanced mode stay in effect in Simple mode. See The configuration window.

PreviousThe basicsNextThe configuration window

The configuration window

Open the configuration window by double-clicking the tray icon, or by choosing Open from the tray menu. Only one configuration window runs at a time; opening it again brings the open one to the front.

The parts of the window

  • Title bar. The Simple | Advanced switch ①, the theme switch ② (System, Light, Dark), and the More button (⋯), whose menu ③ holds Import…, Import from StrokesPlus.net…, Export… and Show welcome…. See Import and export.
  • The list of pages, in three sections: Automation, Engine and Setup. A number beside a page counts what it holds, such as actions or app groups; it is hidden at zero. Drag the divider beside the list to make it wider or narrower. Help, above About, isn't a page: it opens the help window.
  • Quick create… ④, under the list of pages, opens the wizard described in Quick create.
  • At the foot of the list of pages, the active profile's name and how many profiles there are.
  • The page header shows the page's name and a one-line summary, such as how many items it holds. The ? button at its end (or F1) opens this help on the page that describes it.
  • The page body. Many pages have a list on one side and an editor for the selected item beside it. On Actions, Text expansion, Snippets, Recorder, App groups and Ignore groups, drag the gap between the list and the editor to make the list wider or narrower; those pages share one list width.
  • The save bar ⑤ appears at the bottom while anything is unsaved. See Saving.
  • The status bar along the bottom edge. See The status bar.

The window remembers its size and position, the width of the list of pages and of the item lists, the mode, the page you were on, and the item you had selected on each page. It doesn't remember filters or search text.

The pages

Section Page Shown in Simple mode Help
Automation Actions Yes The Actions page
Automation Text expansion Yes Text expansion
Automation Snippets Yes Snippets
Automation Recorder No Macro recorder
Automation Sandbox Yes Sandbox
Automation App groups Yes App groups
Automation Ignore groups Yes Ignore groups
Automation Gestures Yes The gesture library
Engine Global events No Global events
Engine Exclusion zones No Exclusion zones
Engine Scripts No Script settings
Engine Plugins No Plugins
Setup General Yes General settings
Setup Appearance Yes Appearance
Setup Profiles No Profiles
Setup Console No Console
Setup Security Yes Security
Setup About Yes About and license

Lists and editors

Pages that hold many items show them in a list:

  • Filter… at the top narrows the list to the items that match what you type, and the count then reads as shown out of the total, for example 3/24. The X at the end of the box clears it.
  • + New at the bottom adds an item and puts the cursor in its name, with the new name selected, so you can type the name right away. The button beside it duplicates the selected item.
  • Hovering over a row shows a delete button. Deleting asks first, and says what else is affected.
  • A turned-off item is grayed and its name ends in · disabled.
  • A row with a conflict icon has a problem; open it to see the details.
  • Select a row to edit it beside the list.

On the Actions and Text expansion pages, an App group box above the list chooses which group's items are listed, or All. A new item always belongs to one app group, so + New needs a group selected. Where order decides which item runs, the list order is that order, and Move up and Move down change it.

Saving and applying

Nothing you change takes effect until you apply it. While anything is unsaved, the save bar at the bottom shows how many changes are waiting, and three buttons:

Button What it does
Discard Asks first, then undoes every change made since the window opened, including ones already applied, and closes the window.
Apply (Ctrl+S) Saves every change, and the engine starts using them at once. The window stays open.
Save and close Saves whatever is left, then closes the window.

After Apply, the bar reads Changes applied until you close the window, so that Discard can still undo them.

When the engine applies changes, actions that are still running are stopped, and the Config loaded global event runs again.

Some changes don't wait for Apply:

  • the Plugins and Security pages, which act at once and say so;
  • choosing what draws the trail, the hints and the messages on the Appearance page;
  • the theme, which is saved on its own.

Closing with unsaved changes

Esc closes the window, like its close button, unless the control you're in uses it first (an open list, menu or pop-up, a find bar, or a name you're editing). In a text box or the script editor, the first Esc only leaves the box, keeping what you typed; the next one closes the window. With nothing unsaved, the window closes at once.

Closing the window with unsaved changes asks Save changes before closing? with Save, Discard changes and Keep editing. While the engine can't be reached, Save to file… takes the place of Save: it writes your unsaved changes to a file so they aren't lost, but that file can't be imported back.

If you exit Input.Observer from the tray while the window has unsaved changes, the window asks Input.Observer is closing with Save and Discard changes. The engine exits either way.

When the file changed on disk

If the configuration file was changed outside the window after you opened it — edited by hand, or restored from a backup — saving asks The configuration changed on disk:

  • Reload throws away your unsaved changes and reads the file again.
  • Overwrite replaces the file with the window's version.
  • Keep editing does neither.

Notes from the engine

When the engine had to repair something in the configuration while reading it — a value out of range, an entry it couldn't use — or has advice about it, such as two triggers that tie, a bar above the save bar says how many notes there are. Show lists them. Repairs are also shown when the window opens and right after a save that needed them. A note disappears once you delete the item it is about.

The status bar

The bar along the bottom edge shows, from left to right:

  • Engine connected, or Engine not reachable — retrying in red. While the engine can't be reached you can keep editing, but you can't apply; the window keeps trying every 3 seconds and reconnects on its own.
  • The active profile, or No profile. See Profiles.
  • Saved, or Unsaved changes with the number of changes.

Theme and language

The theme switch in the title bar chooses System (follow Windows), Light or Dark. The same choice is the Theme row on the Appearance page. The engine's own windows, its splash screen and its dialogs follow it too. Changing it never counts as an unsaved change.

The language is the Language row on the Appearance page. Windows default follows the Windows display language. The configuration window shows a new language after you close and reopen it. See Appearance.

Simple and Advanced

The Simple | Advanced switch in the title bar changes what the window shows:

  • Simple hides the Recorder, Global events, Exclusion zones, Scripts, Plugins, Profiles and Console pages, and hides advanced settings on the other pages.
  • Advanced shows everything.

Simple mode only hides things. It never changes, clears or resets a setting, so a setting you changed in Advanced mode keeps working in Simple mode. A page that hides settings shows a banner at the bottom saying how many, for example 3 advanced settings are hidden in Simple mode. When a hidden setting has a value other than its default, the banner says it is still in effect. Show advanced on the banner switches the window to Advanced mode.

If one of those Advanced-only pages is open when you switch to Simple, the window moves to the first page, Actions. The mode is remembered for the next time you open the window, and so is the open page, except that the window never reopens on an Advanced-only page in Simple mode: it opens on Actions instead. The tray's Profile > Manage... switches the window to Advanced mode and opens Profiles.

Quick create

Quick create… (or Ctrl+N) asks one question at a time and makes one of four things:

Choice What it makes
Do something when I draw a shape An action with a gesture trigger.
Do something when I press keys An action with a hotkey trigger. The hotkey is reserved with Windows.
Replace something I type A text expansion replacement.
Leave a program alone An ignore group for one program.

The pages ask what to make, where it should work, the trigger, what it does and a name; an ignore group skips the trigger and what it does. Your answers so far are shown under the heading. A red notice explains anything that stops you going on; other notices are advice.

  • Where it goes. In every program uses the Global group. For one program, the wizard uses the app group that already covers that program, or makes a new one with a rule for the program file. A program that an ignore group leaves alone can't be chosen.
  • Turned-off groups. If the group it uses is turned off, or has gestures or hotkeys turned off, the wizard offers to turn them back on, so the new action can run.
  • Nothing changes until you click Create. Create and apply also applies every other unsaved change; Create, apply later leaves everything waiting for Apply. Either way, the page that shows the new item opens with it selected, and Discard on the save bar can still undo it.

The walk-throughs are in the Quick start: a gesture, one program and leaving a program alone.

The help window

This help opens in a window of its own, in the language Input.Observer uses (or English when there is no help in that language). It opens from:

  • the ? button in a page's header, or F1: the help for that page;
  • Help in the list of pages: the help's first page;
  • Help on the tray menu, even when the configuration window isn't open (The tray icon);
  • Script Help in the diagnostic console: the script language reference (Console).

There is only ever one help window: opening the help again shows the new page in the open window and brings it to the front. It has its own taskbar button and stays open when you close the configuration window. It remembers its size and position, and follows the theme until you choose one with the page's own theme button.

  • Open in browser shows the current page in your default web browser.
  • Copy link copies the current page's address to the clipboard. It is a file:/// address, so it works on this computer only.

A link to a website opens in your default browser. If Windows is missing the Microsoft Edge WebView2 Runtime that the help window needs, the help opens in your default browser instead.

Keyboard shortcuts

Keys What they do
F1 Open the help for the current page.
Ctrl+N Open Quick create.
Ctrl+S Apply all changes.
Escape In a key-combination box that is waiting for keys, stop waiting without changing it.
PreviousHow it worksNextThe tray icon

The tray icon

The engine shows one icon in the notification area of the taskbar while it runs. If Windows hides it, click the Show hidden icons arrow on the taskbar and drag the icon onto the taskbar. If Windows Explorer restarts, the icon comes back on its own.

Clicking the icon

Do this What happens
Click once Turns Enabled on or off (see Enabled). It takes effect after your double-click time has passed, so a double-click doesn't also toggle it.
Double-click Opens the configuration window, or brings it to the front.
Right-click Opens the tray menu.

What the icon and tooltip say

Hover over the icon to see its tooltip. When more than one state applies, the first one in this table is shown.

Icon Tooltip When
Gray i.o - Safe Mode (restart to resume normal operation) Input.Observer was started in Safe Mode. See Safe Mode.
Gray i.o - disabled You turned Enabled off.
Gray i.o - auto-disabled (Games), where Games is a group's name The window in front belongs to that group, and the group has Pause everything while focused on. It ends when another window comes to the front.
Green i.o - recording macro A macro is being recorded. See Macro recorder.
Red i.o - training mode The Gestures page's training window is open. See The gesture library.
Red i.o - Global Actions disabled Global Actions is off: the Global group is turned off.
Red i.o - no Global Actions for Notepad, where Notepad is a group's name The window in front belongs to an app group whose Fall back to Global is off, so Global's actions don't run there. This only reports it; nothing is wrong.
Standard i.o - active Everything else: Input.Observer is working normally.

Two tooltips appear for a few moments while something is being saved, whatever the state: i.o - applying password... while a password is set or changed, and i.o - saving license... while a license key is saved.

The tray menu

① Enabled

Checked while Input.Observer is working. Choose it to pause everything: the engine stops receiving mouse and keyboard input, so gestures, text expansion and hotkeys that aren't reserved with Windows stop, and the right mouse button and your typing go straight to programs. Hotkeys that are reserved with Windows still take their keys, but do nothing. A gesture you are drawing at that moment ends without running anything. Choose Enabled again to switch back on.

A pause you set here is never undone by Pause everything while focused: only you can switch it back on. Choosing Enabled while an automatic pause is in effect switches Input.Observer on until the next time a window with that setting comes to the front. Enabled is not remembered: Input.Observer is always on when it starts.

② Global Actions

Shown only when your configuration has a Global group. Checked while that group is turned on. Choose it to turn the whole Global group off or on: with it off, no Global action runs anywhere, and no app group falls back to Global. This is the same switch as Enabled on the Global group in the App groups page, and it is saved in your configuration.

While the configuration window is open, the item is grayed and reads Global Actions (configuration window open): change it on the App groups page instead, so that saving the window doesn't undo it. If your configuration is protected with a password and the password isn't remembered, you are asked for it; if you cancel, the change lasts only until Input.Observer exits.

③ Open

Opens the configuration window, or brings it to the front. Same as double-clicking the icon.

④ Show Console

Opens the diagnostic console, where the engine and your scripts write messages and where you can run a script directly. See Console.

⑤ Show Hidden Windows

Shown only while a script has hidden one or more windows. Shows them all again. Exiting Input.Observer also shows them. A window that a script or its program shows again by itself leaves the list.

⑥ Profile

Switches the active profile. The submenu lists No profile, then every profile in the order the Profiles page lists them, up to 64, with a check mark beside the active one. Manage... opens the configuration window on the Profiles page, switching it to Advanced mode if it is in Simple mode. With no profiles yet, the submenu holds only Manage.... See Profiles.

⑦ Reload Config

Reads the configuration file again and starts using it, for example after you edited it by hand. Running actions are stopped first. Also use it to switch everything back on after the stop-all-actions hotkey.

  • If the file can't be used, the running configuration stays in effect and a Configuration Not Reloaded message says why:
    • The file has a mistake. The message names the line and column, and the reason in English as the file reader reports it. Fix the file, then choose Reload Config again.
    • The file can't be opened. Another program may have it locked, or you may not have permission to read it.
    • The file is protected with a password. Reload Config can't read a protected file; the configuration window's Apply works for it.
    • The file points to another file that doesn't exist. See Keeping the configuration somewhere else.
  • If the file is missing, Reload Config starts over with the built-in defaults and writes a new file, without the starter set. Earlier versions of the file, saved when Input.Observer exited, are in the Backup folder beside it.

See The configuration file.

⑧ Open Config Folder

Opens the folder that holds the configuration file in use, in File Explorer.

⑨ Set Password... / Change Password...

Set Password... when the configuration file isn't protected, Change Password... when it is. It is grayed while a password change is being applied. See Security.

⑩ Apply License Key...

Enter or replace your license key without restarting. Grayed while a license key is being saved. See About and license.

⑪ Help

Opens this help in the help window, on its first page, or brings an open help window to the front. The configuration window doesn't have to be open. See The help window.

⑫ Exit

Closes Input.Observer. If the configuration window has unsaved changes, it asks you to save or discard them first. Exiting also closes the configuration window, stops plugins, shows windows a script hid, and puts back windows a script minimized to the tray.

In Safe Mode

In Safe Mode the icon is gray, Enabled and Global Actions are grayed, and clicking the icon once does nothing. Every other item works.

Icons for minimized windows

A script can minimize a window to the tray. Each such window gets its own icon, showing that window's icon and title. Click it once to bring the window back. Exiting Input.Observer brings them all back.

PreviousThe configuration windowNextGlossary

Glossary

Action

Something Input.Observer does for you, such as sending keys, moving a window or opening a program. An action has one or more triggers that start it, and belongs to one app group. See Actions.

App group

A named set of windows, described by rules, such as "every window of notepad.exe". Its actions work only in those windows. See App groups.

Apply

Saving your changes in the configuration window so the engine starts using them. Nothing you change takes effect before that. See Saving and applying.

AutoHotkey

One of the ways an action can be written, run by an AutoHotkey installation you provide. See Steps, Script and AutoHotkey.

Before and after actions

Actions that run just before, or just after, the actions of an app group. Advanced mode only. See Before and after actions.

Button chord

Two mouse buttons pressed together without drawing, such as holding the right button and clicking the left one. A button chord trigger runs an action from one. StrokesPlus.net calls these rocker gestures. See Button chord triggers.

Configuration window

The program you open from the tray icon to change what Input.Observer does. It is separate from the engine and can be closed at any time. See The configuration window.

Console

The engine's diagnostic window, opened with Show Console on the tray menu. It shows messages from the engine and from scripts, and can run a script directly. See Console.

Draw button

A mouse button that starts a gesture when you press it. The right button is the only draw button unless you choose others on the General page. See Drawing a gesture.

Draw key

A keyboard key that starts a gesture while you hold it, like a draw button: hold it, move the mouse, and let go. There is none unless you choose one on the General page. Advanced mode only. See The draw key.

Engine

The part of Input.Observer that runs in the background with the tray icon. It recognizes your gestures, hotkeys and typed codes and runs your actions. See How it works.

Example

One saved drawing of a gesture. A gesture can have several examples; a stroke is scored against each of them. See The gesture library.

Exclusion zone

An area of the screen where pressing a draw button or the draw key never starts a gesture, so the press reaches the program. See Exclusion zones.

Fall back to Global

An app group setting, on unless you turn it off. When the app group has no action for a gesture, hotkey or typed code, Global's action runs instead. See Scope and fallback rules.

Gesture

A named shape you draw with a draw button or the draw key held, such as "a straight line up" or "the letter C". The shapes live in the gesture library; an action's gesture trigger names one. See Gestures.

Gesture library

Every gesture you have, on the Gestures page, whether or not an action uses it. See The gesture library.

Global

The app group that applies to every window. It is used for a window that no other group claims, and as the fallback for groups that have no action for a trigger. It has no rules and can't be deleted. See App groups.

Global event

One of a fixed set of moments, such as Nothing matched or Draw button released, that can run an action. See Global events.

Hint

The small window near the pointer that shows, while you draw, which action your stroke matches. See Hints and messages.

Hint note

An action's Hint note: a short text the hint shows under the action's name. See The Actions page.

Hotkey

A key combination that runs an action. See Hotkeys.

Ignore group

A set of windows Input.Observer leaves alone: no gestures, no text expansion and no actions run in them. Ignore groups are checked before every app group. See Ignore groups.

Ignored modifier keys

Keys that, held while you press a draw button or the draw key, send that press to the program instead of starting a gesture. Ctrl by default. See Ignored modifier keys.

Match threshold

How closely a stroke must match a gesture to count, from Forgiving to Strict. 75 by default. See How a stroke is matched.

Modifier

A key or mouse button held with a gesture, such as Shift or the wheel, so the same shape can run different actions. See Modifiers and timing.

Modifier timing

Whether a gesture's modifier must be held before you start drawing, pressed while drawing, or either. Advanced mode only. See Modifiers and timing.

Not reserved

A hotkey that isn't reserved with Windows: Input.Observer recognizes the keys, and the program in front receives them too. Advanced mode only. See Hotkeys.

Plugin

A separate program the engine starts to add features, such as the Styles plugin that draws styled trails. See Plugins.

Profile

A named mode, such as "Work" or "Gaming". Actions and app groups can be limited to some profiles, and you switch profiles from the tray menu. Advanced mode only. See Profiles.

Quick create

The step-by-step wizard that makes a gesture action, a hotkey action, a text expansion or an ignore group. See Quick create.

Region

A cell of a grid laid over a window, so the same gesture can do different things in different parts of the window. Advanced mode only. See Regions.

Replacement

One text expansion entry: the code you type and the text it turns into. See Text expansion.

Reserved with Windows

A hotkey that Windows hands only to Input.Observer, so no other program receives those keys. Every hotkey made in Simple mode is reserved. Advanced mode calls this Registered. See Hotkeys.

Rule

One line in an app group's or ignore group's Which windows count as this group table, such as "program name is notepad.exe". See App groups.

Safe Mode

Starting Input.Observer with Ctrl held: no hooks, hotkeys, plugins or actions, so you can fix a problem in the configuration window. See Pause, bypass and exit.

Sandbox

A pretend desktop where you can run steps without touching your real windows. See Sandbox.

Scope

Where an action applies: which app group it belongs to, and so which windows it works in. See Where actions apply.

Script

What an action does, written as text in Input.Observer's script language. See Script language reference.

Simple and Advanced mode

The two modes of the configuration window. Simple hides advanced pages and settings without changing them. See Simple and Advanced.

Snippet

A reusable piece of steps or script, kept on the Snippets page, that actions can run by name. See Snippets.

Starter set

The gestures, actions and groups Input.Observer adds the first time it runs, which you can keep or remove in the welcome. See First run.

Step

One instruction in an action written as Steps, such as Send keys or Wait. See Steps.

Stop all actions hotkey

Ctrl+Shift+Alt+F9 by default. Stops every running action, then switches off input handling until you choose Reload Config. See Pause, bypass and exit.

Stroke

The path you actually draw with a draw button or the draw key held. It is compared with your gestures. See How a stroke is matched.

Style

A ready-made look for the trail, the hint and messages, with sounds, chosen on the Appearance page. See Gesture trails.

Text expansion

Replacing a short code you type with longer text. See Text expansion.

Trail

The line drawn behind the pointer while you draw a gesture. See Gesture trails.

Training

Drawing a gesture several times in the Gestures page's training window, to see how it scores and save the drawings as examples. See The gesture library.

Trigger

What starts an action: a gesture, a wheel turn while a draw button is held, a hotkey or a typed code. One action can have several triggers. See The Actions page.

Wheel trigger

A trigger that runs an action once for each wheel tick while you hold a draw button, for example to zoom. See Wheel triggers.

PreviousThe tray iconNextGestures

Gestures

A gesture is a shape you draw with a mouse button held down, or with the draw key held while you move the mouse. Input.Observer compares the shape with the gestures you saved and, when one matches, runs the action bound to it for the window you drew over.

Three things work together:

Part What it is Where you set it up
Drawing Which buttons and which key draw, when a press becomes a gesture, and what happens to the original click Drawing a gesture
The gesture library The shapes themselves, each with one or more saved examples The gesture library
Matching How a drawn stroke is scored against the shapes, and how strict that is How a stroke is matched

A shape on its own does nothing. An action uses it through a gesture trigger, and the action belongs to an app group, so the same shape can do different things in different programs. Which action runs for a stroke is decided by the rules in Where actions apply.

  • Drawing a gestureWhich buttons draw, how a capture starts and ends, and what happens to the original click.
  • The gesture libraryThe Gestures page: adding, training, renaming and deleting gestures.
  • How a stroke is matchedHow a drawn stroke is scored against your gestures, the match threshold, and what no match does.
PreviousGlossaryNextDrawing a gesture

Drawing a gesture

You draw a gesture by holding a draw button, moving the mouse, and letting go. Input.Observer holds back the press while you draw. When you let go, it either runs an action, or hands the press back to the window as if Input.Observer weren't there. A keyboard key can draw the same way: see The draw key.

Draw buttons

The right button is the only draw button at first. You can add or remove buttons on the General page:

  1. Open General and find the Starting a gesture card.
  2. In Draw buttons ①, select every button that should draw. Select a selected button again to turn it off.
  3. Apply your changes.

Rules:

  • Any of Left button, Right button, Middle button, Side button 1 and Side button 2 can draw, and several can draw at once. Each one starts its own gesture.
  • With no draw button selected, mouse gestures are off entirely. Hotkeys and text expansion keep working.
  • An action's gesture trigger can ask for one draw button, or accept Any draw button. A trigger that names a button you turned off here never matches. See The Actions page.
  • The left button is unusual. Every left-button drag of 5 pixels or more over a window where gestures work becomes a gesture, so selecting text, dragging files and moving windows stop working there. It is useful for pen and tablet input, which has no second button.
  • Swapped mouse buttons. When Windows has the primary and secondary buttons switched, the names follow Windows: Right button is the button that opens context menus, which is the physical left button.
  • Each draw button can draw its own trail style. See Gesture trails.

The draw key

Advanced mode. The Draw key row is on the General page, in the Starting a gesture card.

The draw key is a keyboard key that works like a draw button: hold it, move the mouse, and let go. It helps on a touchpad, where holding a button while you move is awkward. It also helps in programs that use right-button drags themselves, such as CAD or 3D tools: turn off Draw buttons start gestures here for them (see App groups), and draw there with the key.

  1. Open General and find the Starting a gesture card.
  2. In Draw key ①, pick a key. None turns the draw key off.
  3. Apply your changes.

Rules:

  • The keys you can pick are Caps Lock, Scroll Lock, Pause, Insert, the Menu key and F13 to F24. Keys you type with, and Ctrl, Shift, Alt, Win and AltGr, can't be the draw key: holding one back would break every shortcut that uses it.
  • Everything on this page works the same way with the draw key: the press that starts a gesture, a click or a gesture, what is held back while you draw, and how a gesture ends. Where the page says "the press", it is the key's press.
  • A tap of the draw key, without moving the mouse, reaches the window as a normal key tap, so a tap of Caps Lock still turns Caps Lock on or off. The tap takes effect when you let go of the key.
  • Holding the key still for the cancel timeout gives the key press back to the window, and your release follows.
  • The window that counts is the top-level window under the pointer when you press the key.
  • The draw key draws the trail style chosen for all gestures (see Gesture trails).
  • An action's gesture trigger can ask for Draw key, or accept Any draw button, which includes it. See The Actions page.
  • A hotkey that uses the draw key runs only where the key doesn't start a gesture. The Actions page marks such a hotkey.
  • Over a Remote Desktop or virtual machine window, the remote program may take the key before Input.Observer sees it.
  • On a Japanese keyboard, the Caps Lock (英数) key pressed on its own goes to the input method, so it can't draw. Pick another key from the list.

When a press starts a gesture

Pressing a draw button starts a gesture capture unless one of these is true. In each case the press goes to the window untouched, with no delay:

The press passes through when… Where it is set
Input.Observer is turned off, or paused while a window is focused The tray icon, App groups
A key in Ignored modifier keys ② is held (Ctrl unless you change it) Ignored modifier keys
The window is in an ignore group Ignore groups
No app group, and no Global group, has gestures working for the window Scope and fallback rules
The window's app group has Draw buttons start gestures here off (draw buttons only, not the draw key) App groups
The press is inside an exclusion zone Exclusion zones
The previous gesture's trail is still being erased (the built-in trail only, for a split second) Gesture trails
A script asked to let the next gesture through (EngineDisableNextGesture) Builtins

The window that counts is the top-level window under the pointer at the moment you press. A gesture drawn from a text box inside a browser counts as drawn over the browser window. Moving onto another window while you draw changes nothing.

A click or a gesture

A press is not a gesture until the pointer has moved far enough from where you pressed:

  • Minimum gesture movement is 5 pixels, measured in a straight line from the press point.
  • Released before that: it was a click. Input.Observer sends the press and the release to the window at the press point, so a right-click still opens the context menu.
  • Moved that far: it is a gesture from then on, even if you move back to the start point.

Advanced mode. Minimum gesture movement (0 to 200 pixels) is on the General page's Starting a gesture card. At 0, the slightest movement makes a gesture.

While you draw

  • The trail appears once the stroke is a gesture. The classic line also waits until the stroke has moved 8 pixels from the start (Draw after moving). The trail is drawn over every monitor, so a stroke can cross from one monitor to another. See Gesture trails.
  • The hint names the action that would run if you let go now. It appears once the stroke has lasted 150 milliseconds or moved 24 pixels, follows every change, and disappears whenever the stroke so far matches nothing. What the hint shows is exactly what runs when you let go. See Hints and messages.
  • Keys and other buttons are held back. Until you let go, keystrokes, mouse wheel turns and other mouse buttons reach no window. Pressing Ctrl, Shift, Alt or Win, another mouse button, or turning the wheel counts as a modifier for the gesture (see Modifiers and timing); other keys are simply dropped. Releasing Ctrl, Shift, Alt or Win always reaches the window. The stop-all-actions hotkey still works.
  • The wheel can run actions. A wheel tick that fits a wheel trigger runs its action at once, and from then on the press is no gesture: no trail, no hint, and letting go gives no click back.
  • Another button can run actions. Before you have moved far enough to start a gesture, clicking another mouse button that fits a button chord trigger runs its action at once, with the same result for the press as a wheel trigger.
  • Keys held before you pressed. If you let go of such a key while drawing, its release is held back too. Release keys let go during a gesture (on by default, Advanced mode, General page, Fine-tuning card) sends that release once the gesture ends, so the window doesn't think the key is still down.

Ending a gesture

What happens What the window under the pointer gets What runs
You let go before moving 5 pixels The click, at the press point Nothing
You let go after drawing, and the stroke matches an action Nothing: the press is used up The action
You let go after drawing, and nothing matches Nothing: the press is used up The Nothing matched global event, if you set one up
You turned the wheel and a wheel trigger ran, then let go Nothing: the press is used up The wheel trigger's action, once for each tick, while you held the button
You clicked another button and a button chord trigger ran, then let go Nothing, for either button: the press is used up The chord trigger's action, once for each click, while you held the button
You held another button, then let go before moving 5 pixels, and a button chord trigger fits Nothing for this button; the held button's own click is the window's The chord trigger's action
You hold still for the cancel timeout The press, at the press point, then the pointer at its current position; your own release follows Nothing
The gesture reaches the maximum gesture duration The press, if the button is still down and no wheel or chord trigger ran Nothing

In every case where the capture was started, the Draw button released global event runs when you let go, if you set one up, except after a cancel timeout or the maximum duration. See Global events.

Cancel timeout

The cancel timeout gives the press back to the window when you hold still:

  • Cancel timeout is 500 milliseconds by default (General, Ending a gesture). Turn it off to let a capture stay open until you let go. Its range is 0 to 10,000 milliseconds; at 0, every capture is cancelled as soon as it starts.
  • Any mouse movement, key press or wheel tick during the gesture restarts it, so it only counts time you spend holding still. Pausing that long in the middle of a stroke ends the gesture and hands the press back: the window then sees an ordinary drag with that button.
  • A cancelled gesture runs nothing.
  • Once a wheel trigger has run, the cancel timeout no longer applies to that press: you can hold still between wheel ticks for as long as you like (Wheel triggers). The same goes once a button chord trigger has run (Button chord triggers).

Advanced mode. Drawing extends the cancel timeout (on by default) is the switch behind the restart rule. Turned off, the whole gesture must be finished within the cancel timeout, counted from the press, even while you keep drawing. An app group can override the cancel timeout for its own windows with its Cancel timeout card (0 to 60,000 milliseconds); see App groups.

Maximum gesture duration (10,000 milliseconds by default, 0 for no limit) ends any gesture that is still open after that long, counted from the press, whatever you are doing. It exists for a release that never reaches Input.Observer, for example because you let go on the Ctrl+Alt+Del screen. After a wheel or button chord trigger has run, it ends the press without giving it back, and your release stays with Input.Observer too, so no context menu opens.

After a match

When a stroke matches an action:

  1. Activate the window under the gesture (on by default, General, When a gesture matches) brings the window you pressed over to the front, so anything the action types goes there.
  2. The action runs, with any Before and After actions around it. See Before and after actions.

Settings on this page

Setting Page and card Default Range
Draw buttons General, Starting a gesture Right button Any combination, or none
Draw key (Advanced) General, Starting a gesture None None, Caps Lock, Scroll Lock, Pause, Insert, Menu key, F13–F24
Ignored modifier keys General, Starting a gesture Ctrl Ctrl, Shift, Alt
Minimum gesture movement (Advanced) General, Starting a gesture 5 px 0–200 px
Wheel modifier window (Advanced) General, Starting a gesture 500 ms 0–10,000 ms
Cancel timeout General, Ending a gesture 500 ms Off, or 0–10,000 ms
Drawing extends the cancel timeout (Advanced) General, Ending a gesture On
Maximum gesture duration (Advanced) General, Ending a gesture 10,000 ms 0 (no limit)–600,000 ms
Activate the window under the gesture General, When a gesture matches On
Release keys let go during a gesture (Advanced) General, Fine-tuning On

Wheel modifier window is explained in Modifiers and timing.

PreviousGesturesNextThe gesture library

The gesture library

The Gestures page holds every shape Input.Observer knows. The library is shared: one "Swipe left" serves every app group, and each group's actions decide what it does there.

A gesture is a name plus one or more examples: strokes you drew and saved. A drawn stroke is compared with the examples, never with the name. A gesture with no examples can never match.

The page

  • The Shapes tab shows the gallery on the left and the selected gesture on the right. The Settings tab holds the Gesture matching card; see How a stroke is matched.
  • All / Bound / Unused ② filters the gallery: Bound shows gestures at least one action uses, Unused the rest. The search box filters by name.
  • Each gallery card shows the shape (the average of its examples; the red dot is where it ends), its name, how many examples it has and how many actions use it. Point at a card to watch it being drawn.

Adding a gesture

Train… ① opens the Gesture training window. While it is open, gestures don't run their actions: every stroke you draw is captured for training instead.

  1. Select Train… ①.
  2. Draw the shape anywhere on screen with one of your draw buttons (chosen under Draw buttons on the General page) or the draw key, over any window. Ignore groups, exclusion zones and Draw buttons start gestures here don't apply while training.
  3. The window shows your stroke and the Closest gestures: the five gestures in the library it scores highest against, with their scores. A score at or above the match threshold is marked matches.
  4. Choose one:
    • Save as an example of the selected gesture, to teach an existing gesture another way it is drawn.
    • Type a name in New gesture name and select Save as new gesture.
    • Discard, to throw the stroke away.
  5. Draw the next stroke, or Close the window. Closing it turns training off.

The suggested choice follows the Training suggest threshold (80 by default): when the closest gesture scores at or above it, saving as an example of that gesture is the default button; below it, saving as a new gesture is. Enter in the name box always saves a new gesture.

You can also create a gesture where you need it: the gesture chooser in the action editor has a New… button, and Quick create… has Draw a new shape (see the quick start). Both ask you to draw the shape three times.

Save three to five examples of each gesture, drawn the way you really draw it: a little faster, slower, bigger and smaller. More examples that agree make matching more reliable. Examples that disagree make the gesture match more strokes, including ones you meant as something else.

Testing and refining a gesture

Select a gesture in the gallery to work on it:

  1. In Draw to test ④, draw the shape with the left mouse button. A stroke shorter than 12 pixels in both directions is ignored.
  2. Read the score in the corner: green means at or above the match threshold, amber below it. The sentence under the canvas says what the score means:
    • below the match threshold: the engine would not take this stroke as this gesture;
    • above the match threshold but below the training suggest threshold: it matches, and saving it would widen what counts as this gesture;
    • above the training suggest threshold: worth keeping as another example.
  3. Read the line under it, which compares the stroke with every other gesture in the library:
    • "n points ahead of other": a clear lead of 5 points or more;
    • "Only n points ahead of other": a slightly different stroke could match the other gesture;
    • "other scores n points higher": this stroke would match the other gesture instead.
  4. Save as an example adds the stroke to Examples ⑤. Clear empties the canvas.
  5. To remove an example that misleads matching, select its ✕ in Examples ⑤.

The score here uses the same calculation, threshold and Example scoring as the engine. The comparison line ranks the stroke against the whole library; when you draw over a real window, only the shapes that window's app group uses compete (see How a stroke is matched).

Runs other actions appears only when it has something to report: for an app group where this shape is not bound to anything, a stroke like it scores closest to another shape and runs that shape's action. The App groups page offers the fix; see How a stroke is matched.

Used by ⑥ lists every action with a trigger on this gesture, and its app group. Select a row to open that action. A Conflict badge marks an action whose trigger on this gesture competes with another action's trigger in the same app group, so only one of them can ever run there; point at the badge to see which one wins.

Advanced mode. Similar shapes lists the three other gestures that score highest against this gesture's own examples, with their scores. It measures how alike two shapes are, not whether a real stroke will be mistaken: for that, draw the stroke in Draw to test or in the training window.

Renaming, duplicating and deleting

In the name card ③:

  • Rename by editing the name; it is saved when you leave the box or press Enter. An empty name is refused. Names need not be unique. Actions refer to the gesture itself, not its name, so renaming breaks nothing, but a script that reads the gesture's name (ContextGetGestureName) sees the new one.
  • Duplicate gesture makes a new gesture with copies of the same examples and a new name. No action uses the copy.
  • Delete is refused while any action has a trigger on the gesture: a message lists those actions. Give them another gesture, or remove those triggers, first.

Changes take effect when you apply them. See The configuration window.

PreviousDrawing a gestureNextHow a stroke is matched

How a stroke is matched

When you let go of a draw button or the draw key, Input.Observer decides in two stages what to run:

  1. Which shape did you draw? The stroke is scored against the gestures in scope, and the best score wins if it reaches the match threshold. This page explains this stage.
  2. Which action uses that shape here? The app group's triggers for that shape are checked for modifiers, draw button, region and profile. See Scope and fallback rules.

The live hint uses exactly the same two stages on the stroke drawn so far, so the hint always names what would run if you let go at that moment.

How a stroke is scored

Each comparison gives a score from 0 to 100:

  1. The stroke is smoothed slightly, to remove hand tremor.
  2. It is resampled into a fixed number of evenly spaced points along its length (36 by default).
  3. The direction of each short segment between two points is compared with the direction of the same segment in a saved example.
  4. The average difference becomes the score: 100 when every segment points the same way, 0 when every segment points the opposite way.

What that means when you draw:

What changes Effect on the score
Size, or where on the screen you draw None
Drawing speed None
Direction: right-to-left instead of left-to-right The opposite direction scores near 0
Rotation: a shape drawn tilted Lower, more so the more it is tilted
Starting point: a circle started at the top or at the bottom, clockwise or counterclockwise Each is a different shape
Proportions: an L with a long or a short foot Lower: each part takes a different share of the stroke

A gesture with several examples is scored against each of them. Example scoring decides how those scores combine: Best example (the default) takes the highest; Average of all examples takes their average, so a stroke close to one example but far from the others scores lower.

Which shapes compete

A stroke is not compared with the whole library, only with the shapes in scope for the window you pressed over:

  • every shape a gesture trigger uses in the app group that owns the window, and
  • every shape a gesture trigger uses in the Global group, when that group can fall back to Global (see Scope and fallback rules).

A shape counts as soon as any trigger in those groups uses it, even when that trigger can't run right now: its action is turned off, it is limited to another profile, it needs a modifier you didn't press, or it needs another draw button or region. Such a shape can still win the stroke, and then nothing runs. A shape no trigger in scope uses never competes, so it can never win there.

The winner

  • The highest score wins, provided it is at or above the match threshold. With nothing at or above the threshold, nothing matches.
  • Exactly equal scores: the shape met first wins: the app group's own shapes before Global's, in the order of the group's action list.
  • There is no second choice. Once a shape wins, only actions for that shape are looked for: in the app group first, then in Global if the group falls back. If none fits (for example, it needs Shift and you didn't press it), nothing runs, even if a lower-scoring shape had an action that would have fit.

The nearest shape in scope wins

Because only shapes in scope compete, a stroke that plainly is some other shape still matches the closest shape in scope, if that one reaches the threshold.

Example: the Global group uses three shapes: Swipe down, Swipe left and Checkmark. Over a window no app group owns, you draw Swipe up. Swipe up is in the library, but no trigger in scope uses it, so it doesn't compete. The stroke is scored against the three shapes in scope; if Checkmark scores highest and reaches the threshold, the Checkmark action runs.

Two ways to stop this:

  • Bind the shape in scope to an action that does nothing. It then competes, scores highest for its own stroke, and runs nothing. When the App groups page finds such a case it shows the banner "A stroke here can run the wrong action", and its Add do-nothing action button adds that action for you. See App groups.
  • Raise the match threshold, so a stroke has to be closer to a shape to count.

The gesture's own Runs other actions card on the Gestures page lists the same cases from the shape's side.

When nothing matches

A stroke that matches no action, at any scope:

  • runs nothing;
  • does not give the click back: the window under the pointer receives nothing;
  • runs the Nothing matched global event, if you set one up (for example, to play a sound). See Global events.

The hint disappears while the stroke so far matches nothing, so a missing hint tells you in advance.

Settings

Matching settings are on the Gestures page, Settings tab, in the Gesture matching card.

Match threshold

Match threshold ① is the lowest score that counts as a match: 75 by default, from 50 (Forgiving) to 100 (Strict).

  • Raise it when the wrong action runs, or a stroke you didn't mean as a gesture runs something. Sloppy strokes then match nothing more often.
  • Lower it when a stroke you meant as a gesture often matches nothing. Strokes that resemble none of your shapes then get taken by the nearest shape in scope more often.

The Gestures page's Draw to test card shows a stroke's score against this threshold. See The gesture library.

Stroke smoothing quality

Stroke smoothing quality ② trades matching speed for accuracy. Each choice sets the number of resampled points and Example scoring together:

Choice Points Example scoring
Fast 24 Best example
Balanced (default) 36 Best example
Precise 64 Average of all examples

More points notice smaller details of a shape. Any other combination, set in Advanced mode, shows as Custom.

Advanced mode. The card adds three rows:

  • Resample precision: the number of points a stroke is resampled to, 8 to 128 (36 by default).
  • Example scoring: Best example or Average of all examples.
  • Training suggest threshold: the score, 0 to 100 (80 by default), at or above which the training window suggests saving a stroke as another example of the closest gesture rather than as a new gesture. It doesn't affect matching.
PreviousThe gesture libraryNextWhere actions apply

Where actions apply

Every action belongs to one app group. An app group is a set of windows, described by rules such as "the program name is exactly chrome.exe". The reserved Global group holds the actions for every window.

When you draw a gesture, Input.Observer answers these questions in this order. The first "no" ends it.

  1. Does this press start a gesture at all? Not if the window is in an ignore group, a modifier key you set to be ignored is held, the press is inside an exclusion zone, or the press is a draw button's and the window's app group has Draw buttons start gestures here off (App groups).
  2. Which app group owns the window? The first group in the list whose rules match the window you pressed over. Only one group ever owns a window. See App groups.
  3. Does that group work here right now? Its Gestures work here switch and its profile restriction decide. If it doesn't, the Global group takes over, but only when Fall back to Global allows it.
  4. Which shape did you draw? The stroke is compared with the shapes that group (and Global, when it can fall back) uses. See How a stroke is matched.
  5. Which of the group's actions has a trigger for that shape that fits? Each trigger can also ask for modifier keys, a draw button or the draw key, region cells and a profile. The first action in the list that fits runs.
  6. Nothing in the group? The Global group's actions are tried next, if Fall back to Global allows it.
  7. Run it, wrapped in any Before and After actions.

Scope and fallback rules states every one of these steps exactly, with worked examples. Hotkeys and typed text expansions follow the same group rules; the differences are listed there too.

  • App groupsGrouping programs and windows so actions apply only to them.
  • Scope and fallback rulesExactly which action runs: the window that counts, which app groups apply, and every tie-break.
  • Ignore groupsPrograms and windows where Input.Observer stays out of the way: what ignored means, fullscreen-only groups, pausing everything, and which group wins.
  • RegionsSplitting a window or screen into cells so the same gesture does different things in different places.
  • Modifiers and timingKeys and mouse buttons held with a gesture, when they must be pressed, and how they decide which action runs.
  • ProfilesSwitching between sets of actions with gesture profiles.
  • Before and after actionsRunning an action before or after another one, and in what order everything runs.
PreviousHow a stroke is matchedNextApp groups

App groups

An app group is a set of windows, described by rules, with its own actions. Actions in a "Browsers" group run only over browser windows; actions in the reserved Global group run everywhere else, and wherever a group falls back to Global.

Each window belongs to at most one app group: the first one in the list whose rules match it. The exact rules are in Scope and fallback rules.

The page

Below the group's card, a row of tabs splits its settings. Simple mode has two:

  • General: what happens in the group's windows (see What happens in these windows).
  • Windows: the rules for which windows count as the group (see Rules). The Global group has no Windows tab: it applies to every window no other group owns.

Advanced mode adds four more tabs (see Advanced settings). The tab you pick stays chosen while you select other groups, so you can compare the same settings group by group. A group without that tab shows General.

The Windows tab:

To make a group for a program:

  1. Select + New at the bottom of the list. A group named "New app group" appears, with no rules.
  2. Give it a Name.
  3. On the Windows tab, select + Rule and fill in the row ⑤: what to LOOK AT, how to COMPARE, the VALUE, and whether to MATCH CASE. Or drag the row's magnifier onto the program's window (see Rules).
  4. Check the MATCHES? column: it counts the open windows the rule matches.
  5. Add actions to the group on the Actions page, with the group chosen in its group list. See The Actions page.
  6. Apply your changes.

The quick start walks through the same task.

Rules

A rule tests one fact about the window's top-level window (the whole program window, never a button or text box inside it):

LOOK AT What it reads Example VALUE
Program name The program's file name chrome.exe
Program path The program's full path C:\Program Files\Mozilla Firefox\firefox.exe
Window title The text in the window's title bar Visual Studio
Window class The window's class name, a fixed name the program gives its windows Notepad
COMPARE Matches when the text…
is exactly is exactly VALUE
contains contains VALUE anywhere
starts with starts with VALUE
ends with ends with VALUE
matches wildcard as a whole matches VALUE, where * stands for any run of characters (including none) and ? for exactly one
matches pattern contains a match for the regular expression VALUE (use ^ and $ to match the whole text)
  • MATCH CASE, off by default, decides whether upper and lower case count. Off, they don't: notepad.exe also matches Notepad.exe, for every COMPARE choice and the same way in every language. On, the rule's VALUE is compared with exact case, matches pattern included.
  • Patterns use the ECMAScript regular expression rules. Lookbehind ((?<=…)), named groups ((?<name>…)), inline flags such as (?i) and \p{…} are not supported: such a pattern shows invalid pattern in MATCHES? and never matches. Script functions use a different, larger pattern dialect, so a pattern that works in a script may not work here.
  • Store apps. A Program name or Program path rule matches both the app's own program (for example CalculatorApp.exe) and ApplicationFrameHost.exe, the program that hosts its window.
  • A rule with no VALUE is dropped when you save.
  • A group with no rules matches no window at all.

Drag to identify. Press and hold a row's magnifier, move the pointer over a window, and release. The configuration window gets out of the way while you do it, and the row's VALUE is filled from that window for the row's LOOK AT choice. Esc cancels.

MATCHES? shows, for each rule on its own, how many open windows it matches: "✓ 3 open" or "none open". It ignores the group's other rules and the groups above it.

Several rules

Once a group has two or more rules, choose ④ how they combine under A window belongs to this group when:

  • All rules match: every rule must hold for the same window (the default).
  • Any rule matches: one matching rule is enough.

This choice shows in Simple mode too. Advanced mode adds a note under it that explains the two choices.

Order

When a window matches more than one group, the group higher in the list owns it. The other groups are never consulted for that window, not even when the owning group has no action for what you did; only the Global group can take over then (see Fall back to Global).

  • Move up and Move down ② move a group past the next app group.
  • Ignore groups are always checked first. A window any enabled ignore group matches never gets an app group, wherever the groups sit. See Ignore groups.
  • Global is always last and has no Move up or Move down: it is not matched by rules; it is what a window gets when no group owns it.

What happens in these windows

These switches are on the General tab; Enabled is on the group's card above the tabs.

Setting When on When off
Enabled The group is in use. The group is skipped entirely, as if it weren't there: its rules match nothing, its actions never run, and the next group in the list can own the window.
Gestures work here Gestures over these windows use this group. The group still owns its windows, but no gesture uses its actions; Global's are used instead if the group falls back to Global, otherwise a draw-button press passes straight through.
Hotkeys work here Hotkeys pressed while one of these windows is focused use this group. As for gestures: Global's hotkeys if the group falls back, otherwise none.
Fall back to Global ③ When this group has nothing for a gesture, hotkey or typed text, or doesn't apply in the active profile, Global's actions are tried. Never Global's actions in these windows.

Fall back to Global also has a switch for every group at once on the General page; both must be on. See Scope and fallback rules.

There is no switch for text expansion per group: it follows the group's rules, profile and fallback, and the master switch on the Text expansion page. See Text expansion.

Advanced mode. Pause everything while focused turns all of Input.Observer off while a window in this group has the focus, for example a game, and back on when the focus moves elsewhere. A manual Enabled switch-off from the tray always wins. See The tray icon.

Draw buttons start gestures here (on by default), below Hotkeys work here: turned off, a draw-button press over these windows passes straight through to the program, which keeps its own button drags, for example in a CAD or 3D tool. The press doesn't fall back to Global. The draw key still draws gestures there; see The draw key.

The Global group

The Global group is reserved. It has no rules: it applies to every window no other group owns, and it is where groups fall back to.

  • It is always the last row, marked RESERVED, and can't be deleted, duplicated or turned into an ignore group.
  • Its Enabled switch turns Global off: windows no group owns then get nothing, and no group has anything to fall back to. The tray menu's Global Actions item is the same switch.
  • Gestures work here and Hotkeys work here apply to Global both as a window's own group and as the group others fall back to.
  • In Advanced mode it also has Draw buttons start gestures here. Global's switch decides for windows no group owns, and for windows whose group sends its gestures to Global (Gestures work here off, or a profile the group doesn't apply in).
  • It has no Fall back to Global or Pause everything while focused of its own.

Advanced settings

Advanced mode. These tabs appear after Windows:

  • Gesture regions: divide the window into a grid so one gesture can do different things in different places. See Regions.
  • Before and after: a script that runs before or after every action in the group. See Before and after actions.
  • Profiles and timeout, two cards:
    • Only in these profiles: the profiles the group applies under. Leave it empty for every profile. In any other profile, the group still owns its windows, but they get Global's actions if the group falls back to Global, and nothing otherwise. See Profiles.
    • Cancel timeout: Override the General setting for this group sets a cancel timeout (0 to 60,000 milliseconds) for gestures over these windows. Off means the General page's value applies. See Drawing a gesture.
  • Exclusion zones: zones that apply only to windows in this group, on top of the zones for every window. See Exclusion zones.

Simple mode hides seven settings on an ordinary group: Gesture regions, Before and after, Only in these profiles, Cancel timeout, Pause everything while focused, Exclusion zones and Draw buttons start gestures here. On the Global group it hides five: the first four of these and Draw buttons start gestures here. Simple mode never changes their values: they keep working while hidden. The banner at the bottom of the page counts them, names them, and says when one holds a value other than its default. Show advanced on the banner switches to Advanced mode.

Problems the page reports

Banners under the group card, above the tabs, point out problems with the selected group. Problems of the same kind share one banner: its title once, a count ahead of it, and one line per problem. A banner with more than four lines shows the first three; Show all lists the rest, and Show fewer folds them away again. The same holds for the problem banners on the Actions, Ignore groups, Text expansion and Exclusion zones pages.

Hide problems, under the banners, folds them into one line with a count, so the tabs keep their room. That line takes the color of the most serious problem, and Show problems on it brings the banners back. The page remembers your choice.

Banner What it means What to do
Two gestures in this group can't be told apart Two actions have a trigger that the same stroke satisfies. The one declared first always wins; the other never runs for that gesture. Change one trigger (another gesture, modifier, button or region), or reorder the actions on the Actions page.
A stroke here can run the wrong action A shape drawn over these windows scores closest to another shape in scope, and runs that shape's action. See How a stroke is matched. Add do-nothing action, or raise the match threshold. When the banner lists several strokes, each line has its own Add do-nothing action link, and Add do-nothing actions for all adds one for every stroke listed.
This group matches no windows It has no rules. Add a rule.
A rule has no value It is dropped when you save. Fill in VALUE or remove the row.
Another group already has these rules A group checked first has the same rules, so no window ever reaches this one. Change the rules, or the order.
Outside its profiles its windows get nothing The group is limited to some profiles and doesn't fall back to Global. Turn on Fall back to Global, or accept it.
A gesture can never match Regions are on, and a gesture trigger has no region cell. Choose cells for the trigger. See Regions.
A gesture points outside the grid A trigger names a cell the current grid doesn't have. Choose cells again for that trigger.

A disabled group, or one with Gestures work here off, reports no gesture problems.

Adding, copying and removing groups

  • + New adds an empty group at the end of the app groups.
  • The duplicate button beside + New copies the selected group, everything included, and places the copy right below it. Until you change the copy's rules, the original owns every window the copy would, so the copy shows Another group already has these rules.
  • A row's delete button removes a group after a confirmation that says how many of its actions are deleted with it.
  • Convert to ignore group… turns the group into an ignore group. The confirmation lists what is removed: its actions, regions, before and after scripts, cancel timeout and exclusion zones. The group then appears on the Ignore groups page. See Ignore groups.
PreviousWhere actions applyNextScope and fallback rules

Scope and fallback rules

This page states exactly how Input.Observer picks the action for a gesture: which window counts, which group owns it, when the Global group takes over, and which action wins when several could run. Hotkeys and text expansion follow the same group rules, with the differences listed at the end.

Terms

  • Scope: the app group whose actions are tried for a gesture. A gesture has one scope, plus Global as a possible fallback.
  • Owning group: the one app group a window belongs to. See App groups.
  • Fall back to Global: trying the Global group's actions when the owning group has nothing. Two switches control it, and both must be on:
    • Fall back to Global on the General page, When a gesture matches card: for every group at once (on by default);
    • Fall back to Global on each app group's What happens in these windows card: for that group (on by default).

The window that counts

For a gesture, the window that counts is the top-level window under the pointer at the moment you press the draw button (or the draw key):

  • Where the stroke goes afterwards doesn't matter. A stroke that starts over Notepad and ends over a browser is a Notepad gesture.
  • A control inside a window (a text box, a browser page) counts as its whole program window.
  • The owning group, the profile check and the region cell are all decided once, at the press. A window title that changes while you draw, or a profile switch during the gesture, doesn't change the outcome of that gesture.

The decision, step by step

At the press

  1. Find the owning group. Check the groups in this order and stop at the first one whose rules match the window:

    1. every ignore group, top to bottom on the Ignore groups page;
    2. every app group, top to bottom on the App groups page.

    Skipped as if absent: a group that isn't Enabled, a group with no rules, and an ignore group set to Only while the window is fullscreen whose window isn't fullscreen right now.

  2. An ignore group owns it: the press passes straight through. Nothing else is checked: no fallback to Global, no gesture, and no hotkey or text expansion runs for that window either. See Ignore groups.

  3. An app group owns it: its scope is that group if Gestures work here is on and it applies in the active profile (see Profiles). If not, the scope is Global, but only if both Fall back to Global switches are on; otherwise the press passes straight through.

  4. No group owns it: the scope is Global. The Fall back to Global switches don't matter here: Global is that window's own group.

  5. Global as the scope works only if it is Enabled, its Gestures work here is on, and it applies in the active profile. Otherwise the press passes straight through.

    A draw-button press also passes straight through when the window's own group has Draw buttons start gestures here off (Advanced mode), even if the scope fell back to Global. The draw key isn't affected.

  6. Exclusion zones are checked, for every window and for the scope group. A press inside one goes back to the window. See Exclusion zones.

  7. The capture starts. The region cell is worked out now, for the scope group and, separately, for Global (see Regions).

A press that passes through in steps 2 to 6 is handed on untouched and without delay, and draws no trail.

At the release

  1. The shape. The stroke is scored against the shapes the scope group's triggers use, plus Global's when the scope group can fall back. The best score at or above the match threshold wins; otherwise nothing matches. See How a stroke is matched.

  2. The scope group's actions. Go through its actions in list order, and each action's triggers in order. A trigger fits when:

    • it is a gesture trigger for the winning shape,
    • its action is turned on,
    • its action applies in the active profile,
    • the modifiers you pressed are exactly the ones it asks for (see Modifiers and timing),
    • it accepts the draw button you used,
    • when the group has regions on, it covers the region cell you pressed in.

    With regions off, the first trigger that fits wins. With regions on, the fitting trigger with the fewest cells wins, and among equally few, the first.

  3. Fall back to Global when nothing in step 9 fits and all of these hold: the scope group isn't Global itself, both Fall back to Global switches are on, and Global is enabled, has Gestures work here on and applies in the active profile. Global's actions are then checked exactly as in step 9, with Global's own region cell.

  4. Run the winning action, inside the matched group's Before and After actions. See Before and after actions.

  5. Nothing fits: nothing runs, the press is not given back, and the Nothing matched global event runs if you set one up.

What wins, in order

Question Rule
Two groups' rules match the window The ignore group wins over any app group; otherwise the higher one in its list. Only one group ever owns a window.
The owning group has no action for the gesture Global's actions, if fallback is allowed. Never a lower app group.
An app group's action and a Global action both fit The app group's action, always, whatever their modifiers, buttons or regions.
Two shapes score above the threshold The higher score.
Two actions in one group fit (regions off) The one higher in the group's action list.
Two actions in one group fit (regions on) The one whose trigger covers fewer cells; equal counts, the one higher in the list.
Two triggers of one action fit Regions off: the first trigger. Regions on: the one that covers fewer cells; equal counts, the first. The same action runs either way, but the chosen trigger's own settings apply, such as Held modifier keys.
A plain trigger and a trigger asking for Shift, same shape Only one can fit: the plain one needs no modifier at all during the gesture, the other needs Shift.

Reorder actions on the Actions page (Move up and Move down), and app groups on the App groups page. The App groups page and the action editor warn when one trigger always hides another.

Fallback in short

Situation Without fallback With fallback (both switches on)
No group owns the window Global Global
The owning group has Gestures work here off Press passes through Global
The owning group doesn't apply in the active profile Press passes through Global
The owning group has no action for the stroke Nothing matched Global's actions are tried
An ignore group owns the window Press passes through Press passes through
The owning group is turned off (Enabled off) The window is matched against the groups below it, as if this group weren't there Same
Global is turned off Nothing anywhere Global would be used Same

The tray menu's Global Actions item is Global's Enabled switch. While the focused window's group doesn't fall back to Global, the tray icon's tooltip says so, naming the group. See The tray icon.

Worked examples

The examples use this setup:

List Group Rules Actions
Ignore groups Remote desktop Program name is exactly mstsc.exe none
App groups, 1st Browsers Program name is exactly chrome.exe "Back" on Swipe left; "Close tab" on Swipe down
App groups, 2nd Text files Window title ends with .txt - Notepad "Save" on Swipe down
App groups, 3rd Notepad Program name is exactly notepad.exe "Undo" on Swipe left
— Global none "Minimize" on Swipe down; "Maximize" on Swipe up

Both Fall back to Global switches are on unless an example says otherwise.

1. A shape the group has. You draw Swipe down over Chrome. Browsers owns Chrome and has "Close tab" on Swipe down, so "Close tab" runs. Global's "Minimize" on the same shape never gets a chance: the owning group always wins.

2. A shape only Global has. You draw Swipe up over Chrome. Browsers has nothing for Swipe up, so the gesture falls back to Global and "Maximize" runs, wrapped in Global's Before and After actions, not Browsers'.

3. Fallback off. Turn off Fall back to Global on Browsers, and draw Swipe up over Chrome. Global's shapes no longer compete, so the stroke is compared only with Swipe left and Swipe down. If neither reaches the threshold, nothing matches and the Nothing matched event runs. If one of them does (a sloppy stroke can), that one's action runs. The right-click is not given back either way.

4. Two groups match; only the first counts. Notepad has a file named notes.txt open, so its title is "notes.txt - Notepad". Both Text files and Notepad match it; Text files is higher, so it owns the window. You draw Swipe left: neither Text files nor Global uses that shape, so it isn't even among the shapes compared, and nothing matches. "Undo" in the Notepad group never runs for this window, because a window never falls to a lower app group. To get "Undo" here, add it to Text files, or move Notepad above Text files.

5. An ignore group. You draw over a Remote Desktop window. The ignore group owns it, so the press goes straight to the remote computer: no trail, no Global. While that window has the focus, no hotkey action or text expansion runs either.

6. A group turned off, and a group with gestures off. Turn off Enabled on Text files and draw Swipe left over "notes.txt - Notepad": Notepad now owns the window and "Undo" runs. Turn Text files back on but turn off its Gestures work here instead: Text files owns the window again, so Notepad is never reached; the gesture goes to Global, which doesn't use Swipe left, and nothing runs.

7. Profiles. Limit Browsers to a "Work" profile and make no profile active. Browsers still owns Chrome, but doesn't apply, so a gesture over Chrome goes to Global: Swipe down runs "Minimize", not "Close tab". With Fall back to Global off on Browsers, the press passes straight through instead, and the page warns Outside its profiles its windows get nothing.

Hotkeys and text expansion

Hotkeys and text expansion use the same ignore groups, group order, Enabled switches, profiles, Fall back to Global switches, Global group and Before and After actions. These differ:

Gestures Hotkeys Text expansion
The window that counts The top-level window under the pointer at the press The focused window when you press the keys The focused window when you finish typing the text
The group's switch Gestures work here Hotkeys work here none (the Text expansion page has one switch for everything)
Regions, draw button Yes No No
When the group is decided Once, at the press At each key press At each expansion

See Hotkeys and Text expansion for what else is particular to each.

PreviousApp groupsNextIgnore groups

Ignore groups

An ignore group names windows that Input.Observer leaves alone. Use one for remote desktops, virtual machines and games, where your gestures and shortcuts should reach the program inside, untouched.

An ignore group has rules that pick its windows, like an app group, but no actions. The windows it matches are ignored in every profile.

What "ignored" means

In a window that an ignore group matches:

Input What happens
Draw-button press (for example a right-click or right-drag) Goes straight to the window. No gesture starts, no trail is drawn, and the press is not delayed.
Reserved hotkey (Reserved with Windows) Nothing runs. Windows still hands the keys to Input.Observer, so the window doesn't get them.
Hotkey that isn't reserved (Not reserved) Nothing runs, and the keys reach the window.
Typed text Nothing expands, and every key reaches the window.
Global events Still fire. Mouse-button and wheel global events fire wherever the pointer is (Global events).

"The window" means the window under the pointer for a draw-button press, and the window in front (with keyboard focus) for hotkeys and typed text.

An ignored window never falls back to Global. That is the difference from an app group with Gestures work here or Hotkeys work here off, which can still fall back to Global's actions.

To also stop global events while one of the group's windows has focus, turn on Pause everything while focused.

Create an ignore group

  1. Open the Ignore groups page and click + New at the bottom of the list ①. A group named New ignore group appears. Give it a name.
  2. In Which windows count as this group ②, click + Rule and set what to look at (Program name, Program path, Window title or Window class), how to compare it, and the value. Turn on MATCH CASE only when upper and lower case must match exactly. Or press and hold the magnifier on a rule, release it over the window, and the rule is filled in from that window. The MATCHES? column shows how many open windows the rule matches now.
  3. To ignore the windows only while they are fullscreen, turn on Only while the window is fullscreen ③.
  4. To turn Input.Observer off entirely while one of these windows has focus, turn on Pause everything while focused ④.
  5. Save.

With two or more rules, A window belongs to this group when chooses between All rules match and Any rule matches. The rules work exactly as on the App groups page (App groups).

To ignore one program from a guided dialog instead, use Quick create… in the navigation rail and choose to leave a program alone (Keep a program out).

Which group a window belongs to

Every window belongs to at most one group. To find it, Input.Observer checks:

  1. Every ignore group, before any app group, in the order of the Ignore groups list. The first one whose rules match the window wins.
  2. Then every app group, in the order of the App groups list.
  3. A window no group matches uses the Global group.

So a window an ignore group matches is ignored even when an app group also matches it, wherever either sits in the configuration file. Move up and Move down change the order among ignore groups only. To make an exception for one program inside a broad ignore rule, narrow the ignore group's rules; an app group can't win over it.

Ignore groups that are turned off (Enabled off) are skipped entirely: Input.Observer behaves normally again in their windows. Active profiles don't apply to ignore groups.

Only while the window is fullscreen

With Only while the window is fullscreen on, the group matches a window only while that window covers its whole monitor, taskbar area included. A maximized window that leaves the taskbar visible is not fullscreen.

While the window is not fullscreen, the group doesn't match it at all. The window then belongs to the next group that matches it: a later ignore group, or an app group. A game can therefore run its own gestures while windowed and be left alone while fullscreen.

Pause everything while focused

Pause everything while focused turns the whole app off while a window of this group has keyboard focus, as if you had turned off Enabled on the tray menu:

  • No gestures start anywhere, even over other windows.
  • No hotkey action runs and no text expands. Reserved hotkeys still keep their keys from every program.
  • No global event fires.

Input.Observer turns itself back on as soon as focus moves to a window outside the group. With Only while the window is fullscreen also on, the pause applies only while the window is fullscreen; Input.Observer notices a window going into or out of fullscreen within about a second. While paused, the tray icon's tooltip says auto-disabled. If you turned the app off from the tray yourself, it stays off.

Ordinary app groups have the same switch, in Advanced mode.

Problems the page reports

Banners under the group's card point out problems with the selected group, as on the App groups page (Problems the page reports):

Banner What it means What to do
This group matches no windows It has no rules, so it leaves no window alone. Add a rule.
A rule has no value It is dropped when you save. Fill in VALUE or remove the row.
Another group already has these rules An ignore group higher in the list has the same rules, so no window ever reaches this one. Change the rules, or the order.

Convert between ignore groups and app groups

  • Convert to app group… in the group's card turns an ignore group back into an ordinary app group, with its rules. Nothing is lost.
  • On the App groups page, Convert to ignore group… does the reverse. It first lists what the group loses (its actions, regions, before and after actions, cancel timeout and exclusion zones) and asks you to confirm.

The Global group can never be an ignore group.

PreviousScope and fallback rulesNextRegions

Regions

Advanced mode. Regions are set up on the App groups page and in the action editor, and both controls appear in Advanced mode only. Regions you set up keep working in Simple mode.

Regions divide a window into a grid of cells. A gesture trigger then names the cells it applies in, so the same shape can run one action when you start it in the left half of a window and another in the right half.

Turning regions on for a group

  1. On App groups, select the group and open its Gesture regions tab.
  2. Choose a layout ①:
    • Off: no regions (the default).
    • Halves: one row, two columns, a left and a right half.
    • Quadrants: two rows, two columns.
    • Custom grid: choose Rows and Columns, each from 1 to 16.
  3. Choose the cells on each of the group's gesture triggers (below).
  4. Apply your changes.

The cells are equal in size. Rows count from the top and columns from the left, in every language.

What is divided

Group Divided rectangle
An ordinary app group The top-level window under the pointer at the press: its whole visible frame, title bar included, never a control inside it. A maximized window is divided across the whole window.
The Global group The whole monitor you pressed on, taskbar included.

The cell is decided once, at the press. The cell is the one the press point is in. Drawing into another cell, or across monitors, doesn't change it.

Choosing a trigger's cells

  1. On Actions, select the action and expand its gesture trigger.
  2. Under Regions, select the cells ① the trigger applies in. Select a cell again to clear it.

A trigger can name any number of cells. See The Actions page for the rest of the trigger.

Rules

Every trigger needs cells

Once a group's regions are on, every gesture trigger in that group must name at least one cell. There is no "any cell": a trigger with no cells never matches, and the App groups page warns A gesture can never match. To keep a trigger working everywhere, select all its cells.

Turning regions off again makes every trigger in the group match anywhere; the cells stay stored for when you turn regions back on.

Fewer cells wins

Within one group, when two triggers for the same shape both fit (same draw button, the modifiers you pressed, the active profile) and both cover the cell you pressed in, the trigger with fewer cells wins. Only when they cover equally many cells does the one higher in the action list win. This is the one place where list order comes second.

Example: in Browsers (Quadrants), "Minimize" has Swipe down in all four cells and "Close" has Swipe down in the top-right cell only. Started in the top-right cell, Swipe down runs "Close" (one cell beats four), whichever action is higher in the list. Started in any other cell, it runs "Minimize".

The group still comes first

Regions only choose among the actions of one group. An app group's action always wins over a Global one, whatever their cells. See Scope and fallback rules.

Global's regions

The Global group can have regions too, on its own grid over the monitor:

  • When a window has no group of its own, its gestures use Global's grid.
  • When a gesture falls back from a group to Global, Global's actions are checked against Global's own cell, worked out from the monitor at the same press, not against the group's window cell.

Example: Browsers has Halves; Global has Quadrants. You press in the left half of a Chrome window that sits in the top-right quarter of the monitor. Browsers' triggers are checked against the left half; if none fits and the gesture falls back, Global's triggers are checked against the top-right quarter.

Changing the grid

Triggers keep their cells when you change a group's layout. A cell that the new grid doesn't have (row 3 after you go from three rows to two) never matches; the App groups page warns A gesture points outside the grid. Choose that trigger's cells again.

Moving or copying an action to another group keeps its cells only when both groups have the same grid; otherwise you are asked to confirm that the cells will be cleared.

PreviousIgnore groupsNextModifiers and timing

Modifiers and timing

A gesture trigger can require modifiers: keyboard keys or extra mouse buttons that you hold or press along with the gesture. The same drawn shape can then run a different action with each modifier. This page states the exact rules. Hotkey triggers also have modifiers, with simpler rules (see Modifiers on a hotkey).

Choosing modifiers

Modifiers are part of a gesture trigger in the Action editor.

  1. Open the action on the Actions page and expand its gesture trigger.
  2. Under Modifiers, click each key or button the gesture needs ①. Click it again to remove it.
  3. In Advanced mode, choose Timing ②: Before, After or Either.
  4. In Advanced mode, with a keyboard modifier picked, choose what happens to the held keys while the action runs ③ (see Held modifier keys).

The modifiers you can pick:

Modifier Counts as
Ctrl, Shift, Alt, Win Either key of the pair: left Ctrl and right Ctrl are both Ctrl.
Left button, Middle button, Right button, Side button 1, Side button 2 A mouse button other than the one you draw with.

When Windows has the mouse buttons switched, button names follow Windows: the right button is the one that opens context menus.

Advanced mode. Timing and Held modifier keys are shown in Advanced mode only. In Simple mode a new gesture trigger uses Either and Release, then restore. Simple mode never changes a value you set in Advanced mode.

The exact-match rule

A gesture records two sets of modifiers while you draw it:

  • Held before: the keys and mouse buttons held at the moment you press the draw button (or the draw key), plus a recent wheel turn (Wheel turns).
  • Pressed during: every key and mouse button you press after the gesture started. A key stays in this set even if you release it before you finish. A key you were already holding before the press does not count as pressed during, however long you hold it.

A trigger's modifiers must equal one of these sets exactly. A subset is not enough, and extra keys are not ignored:

  • A trigger that needs Shift does not match while you hold Shift and Alt.
  • A trigger that needs Shift and Alt does not match while you hold only Shift.

The two sets are never combined. Holding Shift before and pressing Ctrl during gives "Shift" before and "Ctrl" during. Neither set is "Shift and Ctrl", so a trigger that needs both keys does not match.

Timing

Timing says which of the two sets a trigger checks:

Timing The trigger matches when
Before The keys held before equal its modifiers. What you press during does not matter.
After The keys pressed during equal its modifiers. What you held before does not matter.
Either Either set equals its modifiers.

A new gesture trigger made in the configuration window uses Either. A gesture trigger written in the configuration file without a timing uses Before.

No modifiers means none at all

A trigger with no modifiers is the exception to the timing rule. It matches only when both sets are empty: nothing held when you pressed the draw button, nothing pressed while you drew, and no recent wheel turn. Its timing does not matter.

So a plain gesture never wins over its modified variant. If one action has a plain Swipe left and another has Swipe left with Ctrl, After, pressing Ctrl while you draw always runs the second one, whichever comes first in the list.

Timelines

In these examples the draw button is the right button, and Ctrl is an ignored modifier key, as it is by default (Ignored modifier keys).

What you do Held before Pressed during Matches Does not match
Hold Shift. Press the right button, draw, release. Release Shift. Shift (none) Shift Before, Shift Either Shift After, no modifiers
Press the right button, start drawing, press and release Ctrl, finish, release. (none) Ctrl Ctrl After, Ctrl Either Ctrl Before, no modifiers
Hold Shift. Press the right button, press Alt while you draw, release. Shift Alt Shift Before, Alt After, Shift Either, Alt Either Shift and Alt (any timing)
Hold Shift and Alt. Press the right button, draw, release. Shift, Alt (none) Shift and Alt Before or Either Shift Before
Press the right button, draw, press and release Shift, then press Alt, release. (none) Shift, Alt Shift and Alt After or Either Shift After, Alt After
Hold Ctrl. Press the right button. Nothing: Ctrl is an ignored modifier key, so the right-click goes to the window as a normal click and no gesture starts.
Hold the left button. Press the right button, draw, release. Left button (none) Left button Before or Either no modifiers
Press the right button, draw, click the middle button, release. (none) Middle button Middle button After or Either no modifiers
Turn the wheel, then press the right button within half a second and draw. Wheel (none) No trigger made in the configuration window no modifiers

When more than one trigger in the same app group matches, as in the third row, the first one in match order runs (Matching).

Mouse buttons as modifiers

  • Held before. A mouse button held when you press the draw button. The press of that button has already reached the window under the pointer, because no gesture was running yet.
  • Pressed during. A mouse button pressed while you draw. Its press and release are kept from the window under the pointer and only count toward the gesture. This includes a second draw button: pressed during a gesture, it is a modifier, not the start of a new gesture.

A mouse-button global event still fires for a button pressed during a gesture (Global events).

To run an action from two buttons alone, without drawing, use a button chord trigger instead. A button you click before you have moved far enough to start a gesture runs a chord trigger that fits it; it is a modifier only when no chord trigger fits, or once the gesture has started.

Keys you can't hold before a gesture

Two kinds of modifier can never be held before a gesture starts:

  • An ignored modifier key. Holding it when you press the draw button means "no gesture this time", so the gesture never starts (Ignored modifier keys).
  • A draw button. Pressing a draw button starts its own gesture, so it can't be held waiting for another one.

With Before timing the modifier picker refuses both, and shows the reason when you point at the refused chip. With After or Either you can pick them, because pressing them during the gesture works. A trigger already set up that way (for example in the configuration file) shows its chip in red with the reason below, and never matches through the before set.

Wheel turns

Turning the mouse wheel shortly before you press a draw button counts as a modifier held before: Wheel modifier window on the General page sets how soon (default 500 ms). Turning the wheel while you draw counts as pressed during. Wheel up and wheel down are separate modifiers.

  • A wheel turn while you draw that runs a wheel trigger is no modifier: the press is then no gesture at all. Only a turn that runs no wheel trigger counts as pressed during.
  • A wheel turn made while a draw button is held never counts as a turn before the next gesture, so a gesture drawn right after zooming with a wheel trigger matches as usual.
  • The horizontal wheel (a tilt wheel or a sideways scroll) is never a modifier.

The engine matches wheel modifiers, but the modifier picker doesn't offer them, so a trigger made in the configuration window never has one. Such a trigger doesn't match a gesture you start within the wheel modifier window after scrolling: the recent wheel turn is a modifier the trigger doesn't list. This is by design. If you often draw right after scrolling, lower Wheel modifier window (Advanced mode); at 0, earlier wheel turns don't count. Wheel turns inside an exclusion zone that covers the wheel never count.

Held modifier keys

When an action starts, the keys you held for its trigger can still be down. An action that types text or presses keys would then send them with Ctrl or Alt still held. Held modifier keys chooses what happens:

  • Release, then restore (the default for a new trigger). Before the action runs, the engine releases the modifier keys the trigger matched. When the action, including any before and after actions, has finished, it presses again only the keys you are still physically holding. While they are released, their key repeat is held back, so a held key doesn't press itself again in the middle of the action. A key you released and pressed again yourself is left to you.
  • Leave held. Nothing is released. The action's script handles the keys itself. A trigger written in the configuration file without this setting uses Leave held.

For a gesture, only keyboard modifiers are released; a held mouse button is never released. The choice is shown only when the trigger has a keyboard modifier. If input handling stops while the action runs (for example the engine is disabled), nothing is pressed again.

How modifiers decide which action runs

Modifiers are one condition of a trigger, checked together with the gesture, the draw button, the active profile and, when the app group uses them, its regions. They never change which app group's actions are tried first:

  1. The app group of the window where the gesture starts is tried first. An action there whose trigger matches runs, even if a Global action would also match.
  2. Within the group, actions are tried in match order, and the first matching trigger wins; with regions on, the matching trigger with the fewest cells wins, and the order breaks ties (Scope and fallback).
  3. Only when nothing in the group matches does the gesture fall back to Global, if fallback is on (Scope and fallback).

The Action editor flags two triggers in one group that the same gesture can satisfy, unless the first one is the narrower of the two, and says which one wins.

Modifiers on a hotkey

A hotkey's modifiers are Ctrl, Shift, Alt and Win, and they must match exactly: Ctrl+K does not run for Ctrl+Shift+K. A hotkey has no timing and no mouse-button modifiers. See Hotkeys.

PreviousRegionsNextProfiles

Profiles

Advanced mode. The Profiles page and the Only in these profiles cards are shown in Advanced mode only. Profile restrictions and the active profile keep working in Simple mode.

A profile is a name you can switch to, such as "Work" or "Presenting". App groups and actions can be limited to some profiles; switching the active profile then turns that whole set on or off at once. One profile is active at a time, or none.

What a profile restricts

Profiles restrict two things, and only through their Only in these profiles cards:

Restricted item While the active profile is not one of its profiles
An app group (App groups page, Advanced) The group still owns its windows, but doesn't apply. Gestures, hotkeys and text expansion in those windows use the Global group's actions if the group falls back to Global, and nothing otherwise.
An action (action editor, Advanced) The action is skipped, as if it weren't there. The next action in the list can run instead.
The Global group Global doesn't apply: windows with no group get nothing, and nothing falls back to it.

Rules:

  • An empty list means every profile. Groups and actions you never restrict are live whatever is active.
  • With no profile active, only unrestricted groups and actions are live. Every restricted item is off.
  • With no profiles at all, everything is always live.
  • A restriction applies to every kind of trigger on the restricted item: gestures, hotkeys and text expansion alike.
  • The profile is checked when the gesture starts, so switching profiles in the middle of a gesture doesn't change it. Hotkeys and text expansion check the profile active when they fire.
  • A shape used only by an action of another profile still competes when you draw. See How a stroke is matched.

Scope and fallback rules has a worked example.

The Profiles page

Each card shows a profile, ACTIVE NOW on the active one, and how many groups, actions and hotkeys are restricted to it.

To set up a profile:

  1. Select New profile ①. A profile named "Profile" appears with its name box open; type a name and press Enter. Names must be unique, ignoring case.
  2. On App groups, open a group's Only in these profiles card and select the profiles it applies in. Do the same for an action in the action editor.
  3. Apply your changes.
  4. Select Make active ② on the profile's card. Make active stays unavailable until the new profile has been applied, since Input.Observer can only switch to a profile it has loaded.

There is no duplicate button: to copy a profile with its restrictions, use export and import. See Import and export.

Switching profiles

The active profile changes at once, without applying anything, and without asking for the configuration password. Input.Observer remembers it across restarts.

Where How
The tray icon The Profile submenu lists No profile and every profile, with a check beside the active one. Manage... opens this page, and switches the configuration window to Advanced mode if it is in Simple mode.
The Profiles page Make active on a card; Deactivate on the active card leaves no profile active.
An action A script step that switches the profile, for example from a hotkey or a gesture. See GestureProfileSwitch in Builtins.

The configuration window shows the active profile's name in the status bar.

Renaming and deleting

  • Rename changes only the name. Groups and actions refer to the profile itself, so nothing else changes.
  • Delete first shows what will change:
    • every group and action that was limited to only this profile becomes unrestricted: it then applies in every profile;
    • every other group or action that also names this profile just loses it from its list;
    • if this was the active profile, no profile is active afterwards.

Deleting a profile can turn on actions you meant to keep limited. A group restricted to "Gaming" alone applies everywhere once "Gaming" is deleted. Read the list in the confirmation before you confirm.

Select a card to see, under Deleting a profile, what deleting it would change, before you delete anything.

The 64-profile limit

You can have at most 64 profiles. The page shows the count against the limit; at 64, New profile is unavailable until you delete one.

PreviousModifiers and timingNextBefore and after actions

Before and after actions

Advanced mode. The Before and after tab on the App groups page, and the Before and after timeout on the Scripts page, are shown in Advanced mode only. Before and after scripts you set up keep running in Simple mode.

A Before script runs ahead of every action an app group runs, and an After script runs once the action has finished. Use them for work every action in a group shares: bringing a window to the front first, saving the clipboard and restoring it afterwards, logging.

They wrap every match in the group: gestures, hotkeys and text expansion alike. They don't wrap global events.

Setting them up

  1. On App groups, select the group and open its Before and after tab.
  2. Under Before every action ①, choose Custom.
  3. Under Written as ②, choose how to write the script: as Steps, as a Script, or (when AutoHotkey is turned on) as AutoHotkey. Then write it, as you would an action. See Steps and the script language.
  4. Do the same under After every action ③, or leave it on Inherit from Global.
  5. Apply your changes.

Each of the two has its own choice:

Choice What runs
Inherit from Global (the default) The Global group's Before (or After) script, if it has one. If it hasn't, nothing.
Custom This group's own script. A Custom script with nothing in it runs nothing, like None.
None Nothing, even if the Global group has a script.

The Global group's scripts are set in the same card on the Global group, which offers only Custom and None: there is nothing above Global to inherit from. They are what every Inherit from Global group runs, and what runs around Global's own actions.

Which group's scripts run

The scripts of the group whose action ran are used, not those of the window's group:

The action that ran came from Before and After used
The window's own app group That group's choice: its own, Global's (Inherit), or none
The Global group, because the window has no group Global's
The Global group, by falling back from the window's group Global's, never the window's group's

The order of everything

When a gesture matches, these run strictly one after another:

  1. Activate the window under the gesture, if that setting is on (gestures only). See Drawing a gesture.
  2. Held modifier keys are released, if the trigger's Held modifier keys is Release, then restore. See Modifiers and timing.
  3. Before, until it finishes or the timeout ends it.
  4. The action, for as long as it takes.
  5. After, until it finishes or the timeout ends it.
  6. Held modifier keys are pressed again, if step 2 released them.

Details:

  • Before can't cancel the action. The action runs once Before ends, even when Before failed with an error or was stopped by the timeout.
  • The action is never cut short by the timeout. After starts only when the action has finished.
  • The stop-all-actions hotkey stops whichever part is running and skips the rest, After included.
  • The same trigger information. Before and After see the same gesture, window and trigger details as the action (the Context builtins in the script reference).
  • Each match runs its own sequence. Two gestures drawn in quick succession run their sequences at the same time, each in its own order.
  • The Draw button released global event is not part of the sequence: it starts when you let go, alongside it.
  • Text expansion: the typed text is erased before Before runs, and the key that ended it (a space, for example) is typed after the action, before After runs. See Text expansion.

When a group resolves to no Before and no After script, the action runs on its own.

Before and after timeout

Before and after timeout on the Scripts page, Limits and timeouts card, limits how long each Before or After script may run: 3,000 milliseconds by default, from 0 to 60,000. A script still running after that is stopped and the next step starts, with no message box; the diagnostic console shows a line about it (see The diagnostic console). At 0, each one gets about 20 milliseconds.

The limit never applies to the action itself.

PreviousProfilesNextKeyboard

Keyboard

Besides gestures, Input.Observer reacts to the keyboard in two ways, both of which run actions:

  • Hotkeys: a key combination runs an action. A hotkey is a trigger on an action, added on the Actions page.
  • Text expansion: a short piece of typed text is replaced with longer text, or runs an action.

Both follow the same app groups as gestures, but use the window in front instead of the window under the pointer (Scope and fallback).

Keys also shape gestures:

  • The draw key: hold a keyboard key instead of a mouse button, and move the mouse, to draw a gesture.
  • Ignored modifier keys: hold one while you press a draw button or the draw key to send a normal click or key press instead of starting a gesture.
  • Modifiers and timing: keys and mouse buttons held with a gesture choose between actions.

Touch and pen explains what happens with touch and pen input, which Input.Observer doesn't support directly.

  • HotkeysRun an action from a key combination: choosing the keys, reserved and unreserved hotkeys, held keys, which action runs, and conflicts.
  • Text expansionType a short abbreviation and have it replaced with longer text: how typed text is matched, what ends and clears it, the four replacement types, and the Settings tab.
  • Ignored modifier keysHold a key while you press the draw button to send a normal click instead of drawing a gesture.
  • Touch and penInput.Observer doesn't support touch or pen input directly; what reaches it is what Windows turns into mouse input.
PreviousBefore and after actionsNextHotkeys

Hotkeys

A hotkey is a trigger on an action: a key combination that runs the action. There is no separate hotkeys page. You add a hotkey to an action on the Actions page, next to its gestures and typed text. One action can have several triggers of any kind.

Add a hotkey to an action

  1. On the Actions page, choose the app group in App group, then select the action (or create one).
  2. In the Triggers card, click + Hotkey ①.
  3. Click the Key combination field ②. It shows Press a key combo… while it waits.
  4. Press the combination, for example Ctrl+Shift+N. The field shows it.
  5. In Advanced mode, choose Registered ③ and Held modifier keys ④ (below).
  6. Save. The hotkey works once the engine has the saved configuration.

The trigger card's second line reads Reserved with Windows or Not reserved, the two kinds of hotkey (Reserved or not).

Advanced mode. Registered, Swallow the final key and Held modifier keys are shown in Advanced mode only. In Simple mode a new hotkey is reserved with Windows and releases held modifier keys before its action runs. Simple mode never changes a value you set in Advanced mode.

Choosing the keys

The key combination field records what you press instead of letting it act: Win+E doesn't open File Explorer while the field is waiting, and an existing hotkey doesn't run.

  • A combination is any number of modifiers (Ctrl, Shift, Alt, Win) and exactly one other key. Modifiers alone don't finish it; the field keeps waiting for the other key.
  • Any other key works as the final key, including function keys, the numeric keypad, the media, volume and browser keys, and keys that have no name in the script key grammar. The field and the engine's messages name a media, volume or browser key by what it does, such as Volume up or Play/Pause.
  • A combination with no modifier, such as F9 alone, is allowed. A reserved one takes that key away from every program (Reserved or not).
  • Escape with no modifier cancels and leaves the field unchanged. Escape with a modifier, such as Shift+Escape, is recorded.
  • Left and right modifier keys are the same modifier: a Ctrl+K hotkey runs for either Ctrl key.
  • The field records only while the configuration window is the active window. Clicking elsewhere stops recording.

Reserved or not

A hotkey is either reserved with Windows (Registered on, the default) or recognized without reserving it (Registered off).

Reserved with Windows Not reserved
Does the program in front get the keys? Never, in any program. Yes, unless Swallow the final key is on and this hotkey's action applies to the window in front.
If another program has already reserved the same keys This hotkey fails. Input.Observer reports it (Keys another program holds). Both run: the other program's shortcut and this action.
While the engine is disabled, or paused by an ignore group The keys are still taken from every program, and nothing runs. The keys reach programs normally, and nothing runs.
Best for Keys you want to belong to Input.Observer everywhere. Keys that should still work normally in programs where the action doesn't apply, or keys another program already reserves.

In either mode, keys that one of your own actions presses (a script's KeyboardPressKeyCombo, for example) never run a hotkey, so an action can press its own keys without running itself again.

Reserving with Windows happens once for each distinct combination, each time the engine loads the configuration. It does not depend on which window is in front, which profile is active, or whether the action applies to the window in front. This is deliberate: reserving a hotkey is a choice to own those keys, so no other program can claim them later, and keeping the reservation avoids releasing and re-reserving keys on every change of window. So a reserved hotkey whose action belongs to another profile or another program still takes its keys and runs nothing. A combination is not reserved when every action using it is turned off, its app group is turned off, or Hotkeys work here is off for its group.

Swallow the final key

For a hotkey that isn't reserved, Swallow the final key (on by default) keeps the last key of the combination from the program in front: its press, its key repeat and its release. Modifier keys always pass through. It applies only when this hotkey runs an action for the window in front; anywhere else the key goes through. A reserved hotkey doesn't show this choice, because Windows already keeps its keys.

Because the modifier keys pass through, Windows can still react to them on their own. With Alt or Win in a combination that isn't reserved, the program in front may see a lone Alt press and select its menu bar, or Windows may open the Start menu. Input.Observer can't fully prevent this. Reserve the combination with Windows, or choose one with Ctrl or Shift, if it happens.

Held modifier keys

A hotkey runs while you still hold its modifier keys. An action that types text would otherwise type with Ctrl or Alt still down. Held modifier keys chooses between Release, then restore (the default for a new trigger) and Leave held. The full rules are in Modifiers and timing.

One run per press

Holding a hotkey runs its action once. Windows' key repeat does not run it again; release the final key and press it again to run it again. This holds for both kinds of hotkey.

Which action runs

A hotkey has no window under the pointer. It uses the window in front (the one with keyboard focus) at the moment you press the final key:

  1. If the window belongs to an ignore group, nothing runs. A reserved hotkey's keys are still kept from that window.
  2. If the window belongs to an app group with Hotkeys work here on and the group applies in the active profile, the first enabled action in that group, in match order, with this exact combination and kind of hotkey runs.
  3. If nothing in that group runs, the hotkey falls back to the Global group's actions, unless Fall back to Global is off for that group or on the General page.
  4. A window that belongs to no app group uses the Global group's actions directly.
  5. If nothing matches, nothing runs.

So one combination can run a different action in each app group, plus a Global action everywhere else. A reserved combination used in several groups is reserved only once. Scope and fallback are explained in full in Scope and fallback. Actions limited to certain profiles are skipped in other profiles (Profiles).

When hotkeys don't run

No hotkey action runs:

  • while a gesture is being drawn;
  • while a macro is being recorded, or while gestures are being trained;
  • while the engine is disabled from the tray, or paused because a window with Pause everything while focused has focus (Ignore groups);
  • after the stop-all-actions hotkey, or after Maximum running actions is reached (Script settings), until you choose Reload Config from the tray menu. Reserved hotkeys keep their keys meanwhile;
  • in Safe Mode, where no hotkey is reserved at all.

The stop-all-actions hotkey on the General page is the exception: it works in every one of these states except Safe Mode.

Conflicts

The Action editor shows a banner on the trigger, and a dot on the action's row in the list, for each of these:

Banner What it means
Another action uses these keys here Two actions in the same app group have the same combination and kind. The one higher in the list runs; the other never runs for these keys. The banner says which one wins.
This key combination is used twice The same combination is reserved on one action and not reserved on another. Both may run for one key press. Resolve it by changing one of them.
These keys stop all actions The combination is the stop-all-actions hotkey on the General page. Pressing it stops every action instead of running this one.
Ctrl+Break stops a macro recording A reserved Ctrl+Break hotkey keeps the recording stop key from working; stop recordings from the tray icon or the Recorder page instead.
Ctrl+Alt types characters on many keyboards Exactly Ctrl+Alt plus a character key. On keyboard layouts with an AltGr key, typing a character such as € or @ sets it off. Adding Shift avoids that.
This key is the draw key The final key is the draw key set on the General page. Where gestures work, pressing it starts a gesture instead, so this hotkey runs only where they don't.
No key set The trigger has no combination yet and never runs.
Windows or another program already uses these keys See Keys another program holds.

The same combination in two different app groups is not a conflict: the window in front decides which one runs (Which action runs).

Keys another program holds

Only one program can reserve a combination with Windows. When the engine can't reserve one of your hotkeys, it shows one Configuration Warning message listing every combination it could not reserve. It reserves your hotkeys again, and shows the message again if one still fails, at startup, after a save or Reload Config, and when Windows wakes from sleep or the displays change. Those hotkeys don't work until the engine reserves them successfully. The Action editor marks them Windows or another program already uses these keys. It also checks a reserved combination as soon as you set it, before you save. Windows itself also reserves some combinations, such as Win+L.

To fix it, choose other keys, close the program that holds them and choose Reload Config from the tray menu, or turn Registered off to recognize the keys without reserving them.

If you have just changed or removed an action that used the keys, save first: Input.Observer keeps its own reservation until then.

PreviousKeyboardNextText expansion

Text expansion

Text expansion replaces a short piece of typed text with something longer. Type btw and a space, and the program you type into receives "by the way" and the space. It works in any program that takes typed text.

The Text expansion page lists the replacements of one app group at a time. Each replacement is an ordinary action with a typed-text trigger. An action that does something else when you type text (runs a script, presses keys, has other triggers) is listed on the Actions page instead, under + Text expansion in its Triggers card. Both follow the rules on this page.

Add a replacement

  1. In App group ①, choose where the replacement works. Global works in every program that no other app group claims, and in groups that fall back to Global.
  2. Click + New at the bottom of the Replacements list ②. A replacement named New replacement appears; rename it in its Name box.
  3. In Typed text ③, type the abbreviation, for example btw.
  4. Choose the type ④ (Types).
  5. Enter the Replacement text ⑤, or for RTF and HTML, copy the content in another program and click Paste from clipboard.
  6. Save.

With All chosen in App group, the list shows every group's replacements under the group's name, and a new replacement can't be created until you choose a group.

How typed text is matched

The engine remembers the characters you type since the last boundary or reset. When you type a boundary, it compares what it remembered with every typed-text trigger:

  • The whole word must match. What you typed since the last boundary must equal the typed text exactly, from its first character. btw doesn't expand inside abtw or concatbtw.
  • Case-sensitive. btw doesn't expand BTW or Btw. Add a second replacement for each form you want.
  • Shift is fine. Holding Shift to type a capital or a symbol is ordinary typing.
  • Corrections don't count. Backspace clears what was remembered. If you type bt, press Backspace and type tw, the engine remembers only tw.
You type Typed text Result
btw Space btw "by the way" and a space
btw. btw "by the way."
abtw Space btw Nothing: the word is abtw.
BTW Space btw Nothing: different case.
;addr Enter ;addr The address, then Enter.

The typed text can start or end with characters such as ; : ' " and brackets, which are not boundaries. A leading ; is a common way to keep abbreviations apart from real words.

What ends the typed text

These keys end the typed text and make it expand when it matches:

  • Space, Tab and Enter, each while its switch is on in the Settings tab (all on by default).
  • Period, comma, exclamation mark and question mark: . , ! ?, the Arabic comma, question mark and full stop, and the ideographic and full-width comma, full stop, exclamation mark and question mark. These always end it.

Typed text that contains a boundary can never expand. The page says so under Typed text: This never expands, with the reason (a space while Space is a boundary, a control character, or one of the punctuation marks above).

What clears the typed text

The remembered characters are thrown away, and you start a new word, when:

  • you press Backspace, Escape, Delete, an arrow key, Home, End, Page Up, Page Down or a function key, or any key that doesn't type a character;
  • you press any key while Ctrl, Alt or Win is held. A shortcut is never typing, so Alt+Tab or Ctrl+Enter right after an abbreviation never expands it;
  • you click any mouse button;
  • you switch to another window, or the keyboard focus moves to another field;
  • a script types or presses keys;
  • you type more characters than the longest typed text you have set up, without a boundary.

What happens when it expands

When a boundary completes a typed text that has a replacement for the window in front:

  1. The boundary key is held back from the program for now.
  2. The typed text is erased with one Backspace per character.
  3. The replacement goes in.
  4. The boundary key goes in right after the replacement. An Enter or Tab boundary therefore acts on the finished text: a chat program sends the replaced message, and a form moves to the next field only after the text is complete.

Keys you type while this happens are held and typed afterwards, in order, so they can't land in the middle of the replacement. If the replacement takes long to start (more than half a second with nothing sent) or holds keys for 10 seconds in all, the held keys are let go.

Typing is paced by Typing delay on the Scripts page (Advanced mode; default 30 ms between keystrokes). Some programs, such as Notepad on Windows 11, scramble text that arrives with no pause (Scripts settings).

Types

Type What it does Use it for
Text Types the replacement as keystrokes. Short text. Works almost everywhere; long text takes a moment to type.
Text via clipboard Puts the text on the clipboard and pastes it with Ctrl+V. Long text and text with line breaks. Instant.
RTF Pastes formatted text (Rich Text Format). Formatting in word processors and mail programs.
HTML Pastes an HTML fragment. Formatting in browsers, web mail and editors that take HTML.

For RTF and HTML, Paste from clipboard stores exactly what you copied: copy the formatted content in another program first. The page shows a Preview. The HTML preview needs the Microsoft Edge WebView2 runtime; without it the page says so, and the replacement still works. RTF source typed by hand can use any character directly; it is written as RTF's own \u escape for you. RTF and HTML replacements also put a plain-text copy on the clipboard, so a program that only takes plain text pastes the words.

Restore the clipboard

The three clipboard types replace what is on the clipboard. Restore the clipboard afterwards (on by default) saves the clipboard first and puts it back after the paste. In Advanced mode, Wait before restoring (ms) (default 150, 0 to 60,000) gives the program time to finish pasting first. If a program pastes your old clipboard content instead of the replacement, increase it.

Advanced mode. Wait before restoring (ms) is shown in Advanced mode only.

Which replacement runs

A typed text has no window under the pointer. It uses the window in front at the moment you type the boundary:

  1. If the window belongs to an ignore group, nothing expands, and the boundary key reaches the program normally.
  2. Otherwise the window's app group is tried first, if it applies in the active profile. Within the group, the first enabled replacement or action with exactly this typed text runs. When two have the same typed text, the one higher in the list runs; the page warns about it. Move up and Move down change the order.
  3. If the group has nothing for it, the Global group is tried, unless Fall back to Global is off for the group or on the General page (Scope and fallback).
  4. If nothing matches, nothing happens: the boundary key reaches the program as you typed it.

Gestures work here and Hotkeys work here on an app group don't affect text expansion.

The Settings tab

  • Text expansion enabled ① turns all text expansion on or off: the replacements on this page and every action with a typed-text trigger. Off, nothing expands and no replacement is changed. While it is off, the Replacements tab shows a notice, and the Actions page flags each typed-text trigger.
  • Expand on Space ②, Expand on Tab and Expand on Enter choose which of the three keys end typed text. They apply to every app group. Turning one off doesn't make the key ignored:
    • With Expand on Space off, a space becomes part of the typed text. A typed text can then contain spaces, such as my addr, and expand on a punctuation mark, Tab or Enter.
    • With Expand on Tab or Expand on Enter off, that key clears the typed text instead, like Backspace.

Advanced mode. Expand on Space, Expand on Tab and Expand on Enter are shown in Advanced mode only. They are greyed out while Text expansion enabled is off.

When text doesn't expand

  • While the engine is disabled, or paused by Pause everything while focused (Ignore groups), and while a gesture is being drawn.
  • With an input method editor open. With a Japanese, Chinese or Korean input method turned on in the window in front, typed keys are composition input and Space converts it, so nothing expands and the key goes to the input method. Switch it to direct input to expand.
  • Characters typed with AltGr. On layouts where AltGr types a character (such as @ on a German keyboard), Windows reports it as Ctrl+Alt, which clears the typed text. Such characters can't be part of a typed text.
  • Dead keys. A dead key (an accent typed before its letter) clears the typed text, so accented characters composed that way can't be part of it. Characters your layout types with a single key work.
  • Programs that erase differently. The erase sends one Backspace per character. Combined characters and joined emoji count as one character each, and some programs erase them differently, so a typed text built from them may not erase cleanly.
PreviousHotkeysNextIgnored modifier keys

Ignored modifier keys

An ignored modifier key lets one press of a draw button through as an ordinary click. Hold the key, press the draw button, and the program under the pointer gets the press exactly as if Input.Observer weren't running: a right-click opens its context menu, a right-drag does whatever that program does with one. No gesture starts, no trail is drawn, and nothing is matched.

The default ignored modifier key is Ctrl. With it, Ctrl+right-click and Ctrl+right-drag always reach the program.

Choose the keys

  1. Open the General page.
  2. In the Starting a gesture card, click the keys you want in Ignored modifier keys ①. Click a selected key again to remove it.
  3. Save.

The rules

  • Only Ctrl, Shift and Alt can be ignored modifier keys. Win can't. A configuration file that names any other key has it removed when it loads.
  • None, one or several. With none selected, every draw-button press can start a gesture.
  • Any one is enough. With several selected, holding any one of them ignores the press. Releasing some of them doesn't matter while another one is still held.
  • Either side. Left and right Ctrl both count as Ctrl, and so on.
  • Checked only at the press. What counts is what you hold at the moment you press the draw button. Pressing the key after a gesture has started doesn't cancel it; it counts as a modifier pressed during the gesture (Modifiers and timing).
  • One press at a time. Each press of the draw button is checked on its own. There is nothing to switch on or off.
  • The draw key too. Holding an ignored modifier key when you press the draw key lets the key through the same way: the program gets, say, Ctrl+Caps Lock (The draw key).

An ignored modifier key affects only the press of a draw button. It does not affect hotkeys, text expansion or global events. A mouse-button global event for that button still fires (Global events); Draw button released does not, because no gesture started.

Ignored keys as gesture modifiers

A key can be an ignored modifier key and a gesture modifier at the same time, with one limit:

Timing of the gesture trigger Can it use an ignored modifier key?
Before No. Holding the key when you press the draw button stops the gesture from starting, so this trigger could never match. The modifier picker refuses the key and says why.
After Yes. Press the key after the gesture has started.
Either Yes, but only the "pressed during" half can ever match.

Example, with Ctrl ignored and a Swipe left trigger that needs Ctrl, Either:

  • Hold Ctrl, then press the right button: the right-click goes to the program. No gesture.
  • Press the right button, start drawing, press Ctrl, finish: the trigger matches.

Simple mode doesn't show timing, and a new trigger uses Either. So in Simple mode a gesture with Ctrl as a modifier works only when you press Ctrl after you start drawing, as long as Ctrl is an ignored modifier key.

Other ways to pass a click through

  • To leave a whole program alone, use an ignore group.
  • To leave a part of the screen alone, use an exclusion zone.
  • To pause everything, turn off Enabled on the tray menu (The tray icon).
  • To let only the next draw-button press through, run an action that calls the EngineDisableNextGesture builtin, for example from a hotkey (Builtins).
PreviousText expansionNextTouch and pen

Touch and pen

Input.Observer doesn't support touch or pen input. It doesn't recognize finger strokes, multi-finger gestures or pen buttons. It reacts to mouse buttons, the mouse wheel and the keyboard.

When touch or pen works anyway

When the program under your finger or pen doesn't handle touch or pen input itself, Windows turns compatible input into the matching mouse input for that program. Input.Observer sees that mouse input like any other: a pen tip pressed on such a program acts as the left mouse button. Whether and how Windows does this depends on the program and on your device, so it isn't something to rely on.

If you do want to draw gestures with a pen this way, add Left button to Draw buttons on the General page, as that row's description suggests for pens and tablets with no separate secondary button. The left button is the one you click with all the time, so with it as a draw button:

  • A tap or click that doesn't move is passed on as a normal click.
  • A drag is a gesture. A drag that matches no action does nothing, so dragging to select text or move a window doesn't work directly. Hold still for the Cancel timeout (Ending a gesture card on the General page; default 500 ms) before you drag: the press is then passed on and the drag works as usual.
  • Hold an ignored modifier key to make one press an ordinary click or drag, and use ignore groups and exclusion zones for programs and screen areas where the left button should always work normally.

See Drawing a gesture for how a press becomes a gesture or a click.

PreviousIgnored modifier keysNextActions

Actions

An action is the unit of work in Input.Observer. It has two halves:

  • Triggers say when it runs: a gesture you draw, the wheel you turn while you hold a draw button, a hotkey you press, or text you type.
  • What it does is a list of steps, a script, or an AutoHotkey script.

Every action belongs to one app group, which decides in which programs its triggers work. Inside a group, actions are checked in list order and the first one whose trigger matches runs (Matching).

The pages in this section

Page What it is for
The Actions page Create, edit, order, enable and delete actions and their triggers.
Steps, Script and AutoHotkey The three ways an action can run, and switching between them.
Snippets Reusable steps or scripts that actions call by name.
Macro recorder Record what you do with the mouse and keyboard, then reuse it as steps.
Sandbox Try steps on pretend windows, without touching your real desktop.
Global events Actions that run on fixed events instead of triggers.

To build what an action does without writing code, see Steps. To write it as code, see the Script language reference.

The quickest way to make a first action is Quick create… in the configuration window (Make a gesture do something). It builds the trigger and the steps for you, and you can change both on the Actions page afterwards.

  • The Actions pageCreate, edit, order, enable and delete actions, and give them gesture, wheel, hotkey and text triggers.
  • Steps, Script and AutoHotkeyThe three ways an action can run, when to choose each, and what happens when you switch.
  • SnippetsYour library of reusable steps and scripts: naming, categories, calling one from an action, and what deleting one affects.
  • Macro recorderRecord what you do with the mouse and keyboard, then reuse the recording as steps in a snippet or an action.
  • SandboxTry steps or a script on a pretend desktop with stand-in windows, and watch the run replayed, without touching your real desktop.
  • Global eventsScripts that run when something happens anywhere: a mouse button, the wheel, a gesture's outcome, startup, shutdown, hardware and focus changes.
PreviousTouch and penNextThe Actions page

The Actions page

The Actions page lists the actions of one app group at a time and edits the one you select. The configuration window opens on this page.

① The app group whose actions the list shows. ② The actions, in the order they are checked. ③ The action's name, switch and labels. ④ Its triggers. ⑤ What it does.

Choosing an app group

An action always belongs to exactly one app group. The App group drop-down at the top of the page picks which group's actions the list shows:

  • All first, then the Global group, then every enabled app group A–Z, then the disabled groups A–Z. Ignore groups are not listed, because they hold no actions.
  • The page opens on the Global group, so a new action never lands in another group by accident.
  • With All, every group's actions are listed under a heading with the group's name, in the order of the App groups page, with Global last. + New then asks you to select an app group first, because a new action needs a definite group.
  • If the group you are viewing is deleted or turned into an ignore group, the page falls back to All.

How a window is matched to an app group is described in App groups.

The action list

The list shows the group's actions in match order: when the trigger of more than one action in the same group matches, the one higher in the list runs. One exception: of two gesture triggers that both match, the one limited to fewer region cells wins (Regions). The full rules are in Matching.

  • Each row shows the action's name, up to two triggers and its category:
    • The first mouse trigger (a gesture, wheel or button chord trigger, after a mouse icon) with any modifiers it needs held as small keys, for example Ctrl or LMB for the left button. Hover a short key to see its full name.
    • The first keyboard trigger (a hotkey's keys after a keyboard icon, or the typed text of a text expansion), whatever its place in the trigger list.
    • A count such as +1 after the last one when the action has more triggers.
    • The category, after a folder icon.
  • A disabled action stays in its place, dimmed, with · disabled after its name.
  • A row with a conflict is marked; select it to see the details at the top of the editor.
  • The Filter… box searches names, hint notes, categories, triggers and the text of what the action does.
  • Text-expansion items you made on the Text expansion page are listed there, not here (Text expansion).

Creating, duplicating and deleting

  • + New adds an action named New action at the end of the selected group, which is the lowest priority there. It has no triggers and no steps.
  • The duplicate button beside + New copies the selected action, triggers and all, just below the original, named "name (copy)".
  • The delete button on a row deletes that action after a confirmation that says how many triggers and steps go with it.

Nothing takes effect until you apply your changes (The configuration window).

The action card

The first card is the action itself. Its header shows the app group the action belongs to.

Field What it does
Name The name in the list, the hint window and the logs. Names don't have to be unique.
Enabled Off means the action never runs. Its triggers still appear here, and nothing is lost.
Category A label for sorting and filtering in this window only. It suggests the categories already in use. The engine ignores it.
Hint note Shown under the action's name in the hint window while its gesture is drawn (Hints and messages).

Changing the order

Move up and Move down move the action past the next action listed in the same group. Because list order is match order, this changes which action wins when two of them match.

Moving or copying to another group

Move or copy opens a menu with Move to app group and Copy to app group, each listing every other app group. The action (or a copy with the same name) is added at the end of that group, so it has the lowest priority there, and the page follows it.

Region cells belong to a group's grid. When the other group's grid has a different shape, a Clear region cells? confirmation says the cells chosen on this action's gesture triggers will be cleared. Clear and continue moves or copies the action; cancelling leaves everything as it was.

Problems with an action

Under the action card, a banner appears for each problem with the action's triggers. Each banner names the other action involved, if there is one, and says which one wins. The page reports:

  • another action in the same group with the same gesture, wheel turn, button chord, keys or typed text (the one higher in the list wins);
  • a button chord whose other button draws gestures but has to be held first, which never runs;
  • the same keys used by a reserved hotkey in one place and a hotkey that isn't reserved in another (both may run);
  • a hotkey on the draw key, which runs only where that key doesn't start a gesture;
  • a hotkey with no key, a hotkey on the stop-all shortcut, a reserved hotkey on Ctrl+Break, exactly Ctrl+Alt on a character key (AltGr on many keyboard layouts), and keys another program holds;
  • a gesture that isn't in the library, has no drawings, needs a draw button that isn't turned on, or has no region cell (or a cell outside the grid) in a group that uses regions;
  • typed text that can never expand, and text expansion being turned off.

What each rule means is explained on Hotkeys, Text expansion, Drawing a gesture and Regions.

Triggers

The Triggers card holds one card per trigger. + Gesture, + Wheel, + Button chord, + Hotkey and + Text expansion add a trigger of that kind at the end; it opens ready to edit. An action runs when any of its triggers matches.

  • Each card shows its kind (GESTURE, WHEEL, CHORD, HOTKEY or EXPAND) and a one-line summary. On a closed gesture, wheel or chord card, highlighted chips show what limits when it fires: the modifiers to hold (with a gesture's Modifier timing when it is not Either) and, for a gesture or wheel trigger, a specific draw button.
  • Only one card is open at a time ①. Click a closed card ② to open it; the open one closes.
  • Drag a card by its handle, or press Alt+Up / Alt+Down on its header, to change the order. When two triggers fit the same input, the first one is used, except in a group with regions on, where the fitting trigger with the fewest cells is used and the order only breaks ties (Scope and fallback rules). The same action runs either way, but the trigger that is used decides which settings apply: its Held modifier keys and, for a hotkey, its Swallow the final key.
  • An action with no triggers shows This action has no triggers, so nothing can run it. in place of the note above the cards.
  • The two buttons on a card duplicate it or remove it.

Gesture triggers

Field What it does
Gesture The shape. Click the picture to open Choose a gesture, which lists the library with a search box. New… draws a new shape instead: give it a name and draw it three times the same way. If the drawings look like a gesture you already have, a warning names it and Use it picks that one; another warning says when the drawings don't match each other. Save adds the gesture to the library and uses it. A new gesture trigger starts with the first gesture in the library.
Draw button Any draw button, or one specific button. Only the buttons turned on as draw buttons on the General page are offered, plus Draw key while a draw key is set (The draw key). Any draw button includes the draw key.
Modifiers Keys or mouse buttons that must be held for the gesture to count.

The rules behind these fields are in Drawing a gesture, The gesture library and Modifiers and timing.

Advanced mode. A gesture trigger also has Timing under Modifiers (whether the modifier is held before drawing, while drawing, or either), Held modifier keys once a keyboard modifier is chosen (Release, then restore or Leave held), and Regions when the app group uses regions: the grid cells the gesture applies to (Regions).

Wheel triggers

A wheel trigger runs the action while you hold a draw button and turn the mouse wheel: once for each wheel tick. Use it to zoom, page through a document or change a value without letting go.

Field What it does
Direction ① Wheel up, Wheel down, Wheel left or Wheel right. Left and right are a tilt wheel or a sideways scroll. To run an action in both directions, give it two wheel triggers.
Draw button ② The button you hold, or Any draw button, which includes the draw key. The same choice as a gesture trigger's.
Modifiers ③ Ctrl, Shift, Alt or Win: the keys that must be held when the wheel turns, exactly: a trigger with Shift doesn't run while you hold Shift and Ctrl, and one with no keys doesn't run while you hold any of them. It doesn't matter whether you pressed them before or after the draw button.

Rules:

  • Hold the draw button over the program, then turn the wheel. The action runs once for each tick. A wheel or touchpad that scrolls in smaller steps runs it once for each tick's worth of turning.
  • The program that counts is the one you pressed over, and app groups and the Global group apply as they do for a gesture (Scope and fallback rules).
  • Once a wheel trigger has run, the press is used up: letting go runs no gesture, gives no click back (so no context menu opens), and Nothing matched doesn't run. Moving the mouse while you turn the wheel draws no trail and shows no hint.
  • Holding still between ticks is fine: once a wheel trigger has run, the cancel timeout no longer applies. Before the first tick it does: if you hold still for longer than the cancel timeout before you turn the wheel, the press goes back to the program. If that happens to you, raise the app group's cancel timeout (App groups).
  • A tick that runs no wheel trigger counts as a wheel modifier for the gesture (Wheel turns).
  • The runs for the ticks happen one after another, in order, never at the same time. If ticks arrive faster than the action finishes, up to 8 wait their turn; ticks beyond that are dropped.
  • Each run is a complete run of the action, with its before and after actions (Before and after actions), and the keys go to the program you pressed over (Activate the window under the gesture, Drawing a gesture).
  • A script reads the tick with ContextGetWheelDelta (120 up or right, -120 down or left) and the draw button with ContextGetStrokeButton.
  • Of two wheel triggers in one app group that fit the same tick, the one higher in the list runs; the page marks the pair.
  • Wheel triggers don't use regions: in an app group with regions on, a wheel trigger works in every cell.

A worked example: Zoom with the right button and the wheel.

Advanced mode. A wheel trigger also has Held modifier keys once a key is chosen (Release, then restore or Leave held). With Release, then restore, the keys are released before each run and pressed again after it if you still hold them (Held modifier keys).

Button chord triggers

A button chord trigger runs the action when you press two mouse buttons together, without drawing: for example, hold the right button and click the left one. StrokesPlus.net calls these rocker gestures.

Field What it does
Draw button ① The button you hold, or Any draw button, which includes the draw key. The same choice as a gesture trigger's.
Other button ② The button you click while you hold the draw button. It can't be the draw button itself: choosing that button for one field moves the other.
Modifiers ③ Ctrl, Shift, Alt or Win: the keys that must be held at the chord, exactly, as for a wheel trigger.

Rules:

  • Hold the draw button over the program, then click the other button. The action runs at once. Click the other button again while you still hold the draw button, and it runs again.
  • Neither click reaches the program, so no context menu opens and nothing is clicked under the pointer.
  • Click before you move the mouse. Once you have moved far enough to start a gesture, the other button is a modifier for that gesture instead. That way a chord and a gesture that uses the same button as a modifier both work.
  • Click before the cancel timeout: if you hold the draw button still for longer than that first, the press goes back to the program (Cancel timeout).
  • A chord that no trigger uses changes nothing: the other button counts as a modifier, and a draw button you let go without moving is a normal click.
  • The program that counts is the one you pressed over, and app groups and the Global group apply as they do for a gesture (Scope and fallback rules).
  • Each run is a complete run of the action, with its before and after actions. Runs happen one after another, in order, never at the same time.
  • A script reads the draw button with ContextGetStrokeButton, and where the pointer was with ContextGetEventX and ContextGetEventY.
  • Of two chord triggers in one app group that fit the same chord, the one higher in the list runs; the page marks the pair.
  • Button chords don't use regions: in an app group with regions on, a chord trigger works in every cell.

A worked example: Middle-click with the right and left buttons.

Advanced mode. A button chord trigger also has Order:

  • Draw button first (the default): hold the draw button, click the other button, as above.
  • Other button first: hold the other button, then click the draw button without moving. The action runs when you let go of the draw button. The other button's own press and release still reach the program, because nothing could know a chord was coming when you pressed it. The other button can't be a draw button for this order: pressing it would start its own gesture, and the page marks the trigger.
  • Either order: both.

It also has Held modifier keys once a key is chosen, as a wheel trigger does.

Hotkey triggers

Key combination captures the keys you press: click it, then press the combination. The rules are in Hotkeys.

Advanced mode. A hotkey trigger also has Registered (on by default: reserved with Windows so no other program receives it; off: recognized without reserving it), Swallow the final key (only when not reserved), and Held modifier keys. In Simple mode every hotkey is reserved with Windows.

Text expansion triggers

Typed text is what you type to run the action. It is case-sensitive and expands when followed by Space, Tab or Enter, or by a period, comma, exclamation mark or question mark. The full rules, and the Text expansion page for plain replacements, are in Text expansion.

What it does

The What it does card holds the action's steps or script.

  • Written as chooses Steps, Script or AutoHotkey. Each keeps its own content, and only the selected one runs (Steps, Script and AutoHotkey).
  • In Steps, you build the action from steps (The Steps editor).
  • In Script or AutoHotkey, you type the code in an editor with completion and syntax colors.
  • The button at the card's top-right corner expands the card to fill the page, and collapses it again. Esc also collapses it.

In Simple mode, Written as appears only once the action already has a script or an AutoHotkey body. A new action in Simple mode is built from steps.

Profile restriction

Advanced mode. The Only in these profiles card limits the action to the profiles you pick. In any other profile the action is skipped, as if it weren't there. Leave every profile unselected for the action to work in all of them. See Profiles.

What Simple mode hides

Simple mode hides the gesture modifier Timing, Regions, how a hotkey is detected, Swallow the final key, Held modifier keys, the profile restriction, and in the Steps editor the code view and each step's script name and signature help. Every kind of step, variables, conditions and loops included, can be added in either mode. Hidden settings keep their values and keep working. A banner at the bottom of the page counts the hidden settings, says when any of them is not at its default, and has a Show advanced button.

PreviousActionsNextSteps, Script and AutoHotkey

Steps, Script and AutoHotkey

What an action does can be written three ways. Written as, on the What it does card of the Actions page, chooses which one runs.

Mode What it is Choose it when
Steps A list of steps you pick and fill in, one row each. No code to type. You want to build the action without writing code. Most actions fit: send keys, type text, move or close windows, wait, ask a question.
Script Input.Observer's own script language, typed in a code editor. You need arithmetic, building text from pieces, loops that count with a variable, or anything Steps can't express.
AutoHotkey An AutoHotkey v2 script, run by AutoHotkey itself. You already have AutoHotkey code, or need something only AutoHotkey does.

Steps and Script run inside Input.Observer and call the same builtins: Steps is a visual way to write what a script would. See Steps and the Script language reference.

Each mode keeps its own content

An action holds a Steps body, a Script body and an AutoHotkey body side by side. Switching Written as ① changes which one runs. It never deletes the others, so you can switch back.

If the mode you select is empty while another mode has content, a notice under the switch says that running the action does nothing, and offers a button to use the mode that has content.

Switching from Steps to Script

When you switch from Steps to Script while the action has steps and its Script body is empty, Input.Observer offers to translate the steps: Convert steps to a script? Choose Convert to put the translation in the Script editor.

  • The steps stay as they are. Switching back to Steps shows them unchanged.
  • Nothing converts back. A script can't be turned into steps.
  • Steps that use Repeat while…, Repeat until…, Exit the loop or Stop the steps are not offered for translation, because Script has no matching statements. You can still switch; the Script body just starts empty.
  • AutoHotkey is never converted to or from.
  • When the steps are a recording from the Recorder page, the dialog also says that the script ignores Replay speed and Replay mouse path detail: its waits run at recorded speed and every recorded mouse move replays (Recorder settings).

From Steps to Script shows what each kind of step becomes.

AutoHotkey

AutoHotkey is a separate program that Input.Observer starts when an AutoHotkey action runs. It is not included; you install AutoHotkey v2 yourself and tell Input.Observer where it is.

  1. Install AutoHotkey v2.
  2. On the General page, turn on Enable AutoHotkey and set AutoHotkey executable to its program file, such as AutoHotkey64.exe.
  3. AutoHotkey now appears under Written as. Apply your changes so the engine uses the new setting.

The rules:

  • AutoHotkey is offered under Written as only while Enable AutoHotkey is on, or when the action already runs as AutoHotkey. An AutoHotkey action with AutoHotkey turned off does nothing, and the page says so.
  • Use a normal AutoHotkey build. The builds with _UIA in their name, such as AutoHotkey64_UIA.exe, can't run scripts from Input.Observer.
  • When AutoHotkey is turned on but its program can't be found at startup or when the configuration is reloaded, Input.Observer asks you to Browse for the AutoHotkey executable or Leave as-is.
  • Each run starts a new AutoHotkey process with your script. It can't call Input.Observer's builtins. With Wait for it to finish on, the action runs until the script ends by itself, and the stop-all-actions hotkey ends it (Scripts that keep running).
  • Before your script, Input.Observer sets variables that describe the trigger, such as IO_ActionName, IO_TriggerKind and the gesture's or hotkey's window (AutoHotkey variables). The editor's Variables available here list shows the ones the action's triggers provide; click one to insert it.
  • What the script writes to its standard output appears in the diagnostic console, starting with AHK: (The diagnostic console).

A Steps or Script action can also run a piece of AutoHotkey code with the AutoHotkeyExecuteScript builtin, which waits for it to finish, or start one with AutoHotkeyStartScript, which doesn't. The same setting and executable apply.

Scripts that keep running

An AutoHotkey script with hotkeys, hotstrings or a timer keeps running after its last line. To start one like that from Input.Observer, turn off Wait for it to finish under the AutoHotkey editor. The switch is there wherever an AutoHotkey body is: actions, Before and after scripts, global events and snippets.

Wait for it to finish on Wait for it to finish off
The action Runs until the script ends Is done as soon as AutoHotkey starts
What the script writes Appears in the diagnostic console, starting with AHK: Is not shown
A syntax error Appears in the diagnostic console AutoHotkey shows its own error box
The stop-all-actions hotkey Ends the script Leaves it running
Saving settings or Reload Config Ends the script, with the other running actions Leaves it running, unless the Config loaded event started it
Input.Observer exits Ends the script Ends the script

A script that Config loaded started ends when the settings are saved or reloaded, because that event then runs again and starts a fresh copy. Without that, each save would leave one more copy running. To keep one copy of a script running all session, put it in Config loaded with Wait for it to finish off.

AutoHotkeyStartScript works the same way as the switch turned off, and returns the process id of the AutoHotkey it started.

AutoHotkey variables

Every AutoHotkey run starts with a few lines Input.Observer adds ahead of your script, setting IO_ variables from what triggered the action. This applies to an action written as AutoHotkey and to code run with AutoHotkeyExecuteScript or AutoHotkeyStartScript, which gets the variables of the action that called it.

Every run sets these three:

Variable Holds
IO_ActionName The action's name. For a global event, Global_Event_ followed by the event's name in the configuration file, such as Global_Event_release or Global_Event_foreground_changed. Empty when nothing triggered the run, such as a script run from the console.
IO_AppGroupName The name of the app group the action was found in, such as Global. Empty for a global event.
IO_TriggerKind What triggered the run: Gesture, Hotkey, TextExpansion, MouseButton (a button chord trigger, or a mouse-button or Draw button released global event), Wheel (a wheel trigger or a wheel global event), or None.

The rest depend on the trigger, and only that trigger's are set:

Trigger Variable Holds
Gesture IO_GestureWindow The window the gesture started over
IO_GestureButton The draw button: left, right, middle, x1 or x2, or key for the draw key
IO_GestureStartX, IO_GestureStartY Where the stroke started
IO_GestureEndX, IO_GestureEndY Where it ended
IO_GestureBoundsLeft, IO_GestureBoundsTop, IO_GestureBoundsRight, IO_GestureBoundsBottom The rectangle around the whole stroke
IO_GesturePoints Every point of the stroke in drawing order, as an array of [x, y] arrays
Hotkey IO_HotkeyWindow The window in front when the hotkey was pressed
IO_HotkeyVkCode The final key's Windows virtual-key code, such as 75 for K
IO_HotkeyModifiers The modifier keys of the combination, added together: Ctrl 1, Shift 2, Alt 4, Win 8 (Ctrl+Alt is 5)
Text expansion IO_TextExpansionWindow The window you typed in
IO_TextExpansionPattern The abbreviation you typed
Mouse-button event IO_MouseWindow The window under the pointer
IO_MouseButton The button: left, right, middle, x1 or x2; for Draw button released after a gesture drawn with the draw key, key
IO_MouseX, IO_MouseY Where the pointer was
Wheel trigger or wheel event IO_WheelWindow For a wheel trigger, the window you pressed the draw button over; for a wheel event, the window under the pointer
IO_WheelDelta How far the wheel turned, as Windows reports it: 120 for one notch of an ordinary wheel (smooth-scrolling wheels and touchpads send smaller steps), positive away from you (or to the right), negative toward you (or to the left). A wheel trigger always gets 120 or -120
IO_WheelHorizontal true for a sideways wheel turn, false for an ordinary one
IO_WheelX, IO_WheelY Where the pointer was
IO_WheelButton For a wheel trigger, the draw button you held: left, right, middle, x1 or x2, or key for the draw key. Empty for a wheel event
  • Windows are window handles, numbers AutoHotkey reads as a window id: "ahk_id " IO_GestureWindow names the window in WinActivate, WinGetTitle and the other window functions.
  • Positions are screen coordinates in physical pixels, from the top-left corner of the main monitor. Set CoordMode "Mouse", "Screen" before using them with AutoHotkey's mouse functions, which otherwise work relative to the active window.
  • Text arrives exactly as it was; quotes, backticks and line breaks in an action or group name are escaped for you.
  • A variable the trigger doesn't provide isn't set at all, and AutoHotkey stops the script when it reads an unset variable. An action with several kinds of trigger, or a snippet called from different actions, should check IO_TriggerKind first, or use IsSet(IO_GestureWindow).

For example, an action that runs from a gesture or a hotkey, bringing the window it was used on to the front and showing its title:

CoordMode "Mouse", "Screen"
win := IO_TriggerKind = "Gesture" ? IO_GestureWindow : IO_HotkeyWindow
WinActivate "ahk_id " win
MsgBox WinGetTitle("ahk_id " win), IO_ActionName

Plugin script engines

A plugin can add a script engine of its own. It then appears under Written as with the plugin's name, and the text you type there goes to the plugin exactly as written; Input.Observer doesn't check it. See Plugins.

  • No registered plugin provides the engine, for example because the plugin was removed: Written as marks the engine as not registered, and a warning under it says the script is skipped when it runs. The action then does nothing, and no message says so.
  • The plugin is registered but can't take the run, for example because it is disabled, stopped or restarting: the action doesn't run and isn't retried later. A line in the console's System section names the plugin and the engine (Console), and a Windows notification names the action and the plugin. The notification appears only while Windows notifications is on (General settings).

In Simple mode

Simple mode shows Written as only for an action that already has a script or an AutoHotkey body. For any other action the card shows the steps directly. To write a new action as a script, switch the window to Advanced mode (The configuration window).

PreviousThe Actions pageNextSnippets

Snippets

A snippet is a named piece of steps or script that isn't tied to any trigger. Actions, before and after scripts, global events and other snippets run it by name. Write something once as a snippet, and every action that calls it uses the same copy: change the snippet, and they all change.

The snippet list

The list shows every snippet in the library, under a heading per category: categories A–Z, then Uncategorised, and A–Z by name inside each. A snippet that something calls shows Used by and the number of callers.

  • + New adds a snippet named New snippet in the selected snippet's category, written as Steps.
  • The duplicate button beside + New copies the selected snippet under a new, unique name.
  • The delete button on a row deletes a snippet (Deleting a snippet).

Name and category

  • Name ① is how callers find the snippet. It must be unique across the whole library, whatever the category, and two names that differ only in upper and lower case count as the same. It can't contain a double quote, a backslash or a control character. A name that breaks a rule is shown in red with the reason, and goes back to the old name when you leave the box.
  • Renaming a snippet rewrites every call that names it in quotes, everywhere in your configuration (Who calls a snippet).
  • Category ② only groups the list. It doesn't change how the snippet runs.

What the snippet does

Written as chooses Steps or Script, the same as for an action (Steps, Script and AutoHotkey). Switching from Steps to Script offers to translate the steps, as it does on the Actions page.

  • In Steps, the editor is the same as an action's (The Steps editor).
  • In Script, Check syntax checks the script with the engine's own compiler. It reports Parses OK with the line count, or the first error, and underlines the problem in the editor.
  • AutoHotkey is offered only for a snippet that already runs as AutoHotkey.
  • There is no button to run a snippet here. To try steps safely, use the Sandbox.

Advanced mode. Above the editor, the call that runs this snippet ③ is shown in Script form, with a button that copies it.

Calling a snippet

A snippet runs when a step or a script calls the builtin SnippetExecuteScript with its name:

  • In Steps, add a Run a snippet step (SnippetExecuteScript) from the list of all builtins (Adding steps) and type the snippet's name as its Name.
  • In Script, write the call:

How it runs:

  • The caller waits until the snippet finishes, then continues.
  • The snippet sees what started the caller (its target window, gesture and so on), so Target window inside a snippet is the caller's target window.
  • The snippet has its own variables. It can't read the caller's, and the caller can't read its.
  • The name must match exactly, including upper and lower case. If no snippet has the name, nothing runs and the call gives false.
  • The call gives true only when the snippet ran to the end. It also gives false when the snippet is empty, has an error or is stopped.
  • A snippet can call other snippets. Nothing stops a snippet from calling itself, so make sure such a chain ends.

Who calls a snippet

The Called by card ④ lists every action, before or after script, global event (even a turned-off one) and snippet that calls this snippet. A global event is marked Global event, and a snippet Snippet.

Only calls that write the snippet's name out in quotes are found. A call that builds the name while it runs is not listed, and a call inside a comment is. AutoHotkey bodies are not searched.

Deleting a snippet

You can't delete a snippet while anything listed under Called by still calls it. The delete button then shows Can't delete with the list of callers; change or remove those calls first. A snippet nothing calls is deleted after a confirmation.

A call the list can't see (a name built while the script runs) is not protected: if you delete that snippet, the call finds nothing and gives false.

Snippets from elsewhere

  • Create Snippet on the Recorder page turns a recording into a snippet.
  • Save as snippet on the Sandbox page saves the steps or script you tried there.

Both open the new snippet on this page with the cursor in its Name, ready to rename. A name already taken gets -1, -2 and so on added.

PreviousSteps, Script and AutoHotkeyNextMacro recorder

Macro recorder

The Recorder page captures what you do with the mouse and keyboard once and turns it into steps. It is a capture tool, not an archive: you copy a recording into a snippet or an action, and that is where it runs.

Advanced mode. The Recorder page is in the navigation only in Advanced mode.

Recording

  1. Click Start recording ①.
  2. A Recording started message says to press Ctrl+Break to stop. Click OK. The configuration window minimizes, and after a short pause (300 ms by default) recording starts. With Recording start confirmation turned off (Settings), the window minimizes and recording starts at once.
  3. Do what you want to record.
  4. Press Ctrl+Break, or bring the configuration window back and click Stop recording. While recording, the page shows the elapsed time.

The new recording is saved and selected. If nothing was recorded, no file is saved and a message says so. What you do in the configuration window at the end of a recording, such as clicking Stop recording, is left out.

If a script is making a recording of its own at the time, Start recording is unavailable until it stops.

If another program, or one of your own actions with a reserved Ctrl+Break hotkey, already holds Ctrl+Break, a Configuration Warning message says so when recording starts. The recording still starts; stop it with Stop recording on this page.

Every key is recorded, including passwords typed into password boxes. A recording stores them as plain keystrokes and types them again when it runs. Stop recording before you type a password.

What is recorded

A recording is a list of steps, one per thing you did, in the order you did it:

  • mouse movement, kept at most every 15 ms or every 4 pixels, whichever comes first;
  • each mouse button press and release, and each wheel turn;
  • each key press and release;
  • the pauses between them, as Wait steps.

It also adds a window check wherever the window you click in, scroll over or type into changes. When the recording runs, a window check waits until the right program's window is there: it must have the same program file name and the same window class (upper and lower case don't matter; the window title is never recorded or compared). If the window doesn't appear in time, a notification says so and the recording stops, so its clicks and keys never land in the wrong window.

The recordings list

The Recordings tab lists your recordings, newest first, with the number of events, the length and when it was made. Recordings are files in a Recordings folder next to your configuration file; Open Recordings folder opens it.

  • A new recording is named macro_ followed by the date and time. Type a new Name to rename it; if the name is taken, -1, -2 and so on are added.
  • The delete button on a row deletes the recording after a confirmation.

Using a recording

The selected recording opens as Steps ②. Switch to Script to see it translated to the script language.

  • Copy ③ copies the steps (or the script, while Script is selected) to the clipboard, to paste into the code view of an action's steps or into a script.
  • Create Snippet makes a new snippet from the recording, as Steps or as Script, whichever is showing, and opens it on the Snippets page (Snippets).

Edits you make to a recording on this page are not saved to the recording; they only change what Copy and Create Snippet take.

A recording runs wherever you put it: call the snippet from an action, or paste the steps into an action (Calling a snippet).

Settings

The Settings tab holds two cards.

Capture settings:

Setting Default What it does
Recordings retention 50 How many recordings to keep. After each new recording, the oldest beyond this number are deleted. 0 keeps them all.
Recording start confirmation On, 300 ms Shows the "press Ctrl+Break to stop" message before recording starts, then waits this long (0–10000 ms) before capturing.
Recording stop notice On Shows a notification when Ctrl+Break ends a recording that a script started.

Retention counts only recordings that still have their macro_ name. A recording you rename is yours to keep and is never deleted automatically. When you are within five recordings of the limit, the five oldest are marked in the list. Starting a recording at the limit asks Delete the oldest recording? first; Delete oldest and start deletes it and starts.

Replay settings:

Setting Default What it does
Replay speed 100 % Speed of the recorded pauses, 1–1000 %: 200 % plays twice as fast. Hand-written actions aren't affected.
Replay mouse path detail 1 of every 1 Replays 1 of every N recorded mouse movements, N from 1 to 1000. Clicks and wheel turns always land where they were recorded.
Replay window wait 2000 ms How long a window check waits for the recorded window, up to 60000 ms. 0 checks once without waiting.

Replay speed and Replay mouse path detail apply only to a recording kept as Steps. A recording translated to Script plays its pauses at recorded speed and replays every recorded mouse movement. When you switch a recording's steps to Script, on this page or in any other Steps editor, the Convert steps to a script? dialog says so before you convert.

Advanced mode. All the capture settings, Replay mouse path detail and Replay window wait are Advanced settings.

PreviousSnippetsNextSandbox

Sandbox

The Sandbox page is a practice area. You lay out pretend windows on a pretend desktop, build some steps, and run them. The engine runs them against the pretend windows only and sends back what happened, which the page replays step by step. Nothing on your real desktop is touched: the pretend windows are drawings, not real windows.

① The pretend desktop. ② Run the steps. ③ What to run, and what the run starts with.

The pretend desktop

The desktop has one or two screens and up to 16 pretend windows, called stand-ins. The first time you open the page, it holds a Practice desktop layout with a few stand-ins and a short example.

  • Select a stand-in by clicking it; click empty desktop to clear the selection. Drag its title bar to move it, and its corner to resize it (in the Normal state only).
  • The selected stand-in has a toolbar: Window settings, Start the gesture over this window, Bring forward, Send backward, Duplicate and Remove.
  • Window settings sets its Title, Class name, Program name, position and size, State (Normal, Minimized or Maximized) and Always on top. Steps that look for a window by title, class or program find the stand-ins by these values.
  • One stand-in carries the Gesture badge: the run behaves as if the gesture had been drawn over it, so it is the Target window. At the start of a run, the front-most visible stand-in has the focus, and the pointer is in the middle of the gesture's window.
  • A minimized stand-in is drawn faded at the place it would return to, so you can still select it.
  • Add window adds a stand-in.

Each screen has a chip in its bottom-right corner, such as "Main screen · 1920 × 1080". Click it to set the screen's size; the second screen's chip also has Remove screen. With one screen, Add screen adds a second one to the right of the first.

Advanced mode. A screen's settings also hold its Scale (100–500 %) and its Friendly name, and show its Device path. Scripts can find a screen by its device path or by this name.

The desktop is always drawn left to right, in every language, because screen positions don't mirror.

Using the keyboard

Press Tab to move between stand-ins; the focused one is selected. Arrow keys move it 10 pixels (1 pixel with Ctrl), Shift+arrow keys resize it, Enter or F2 opens its settings, and Delete removes it. Esc closes a settings box.

Layouts

A layout is a desktop with its stand-ins, screens, starting clipboard and message box answers. Pick a layout from the Layout list. The Layout options button next to it holds New layout (a copy of the current one), Rename layout and Delete layout. The last layout can't be deleted, and a name must be unique.

Layouts and the steps you were trying are kept on this computer for your Windows account, separately from your configuration. They are not exported and not part of the configuration file.

What to run

The What to run tab holds a Steps editor, the same as an action's (The Steps editor).

Advanced mode. A Steps / Script switch above the editor lets you try a script instead. Switching to Script with steps offers to translate them, as on the Actions page. Back in Simple mode, the page shows Steps again; the script is kept.

Before the run

The pretend desktop has its own clipboard and its own message boxes. The Before the run tab sets them up. The line under the desktop summarizes both; click it to open the tab.

  • Clipboard: the text the clipboard holds when a run starts (up to 256 characters). Leave it empty to start with an empty clipboard. Your real clipboard is never read or changed.
  • Message box answers: one row per message box the run shows (Box 1, Box 2 and so on), up to 16. Each box gets the next answer in the list. If that answer isn't one of the box's buttons, or the list has run out, the box's first button is pressed.

Running and the replay

Click Run ②. The steps go to the engine, which runs them against the layout and sends back everything that happened. The page then replays it on the desktop:

  • Each step plays as its own beat, with the step highlighted in the list. Waits play in the run's own time.
  • Play / Pause, Step (to the next beat), Replay, a Speed from 0.5× to 4×, and Back to layout. Changing the layout or the steps also ends the replay.
  • During the replay, a line under the desktop shows what the clipboard holds at that moment. A message box the run showed is drawn on the main screen with the pressed button lit.
  • Anything the steps wrote to the log appears under Printed output.
  • At the end the page says The run finished., or which step failed and why. In Script, it names the line instead.

A run stops early, with a message, when it:

  • uses a builtin that would reach outside the sandbox, such as files, other programs, plugins, snippets or the power and sign-out builtins (not available in the sandbox);
  • runs more than 200,000 instructions, records more than 2,000 events, or reaches 10 minutes of its own time (for example a loop that never ends);
  • is longer than 8,000 characters (it doesn't run at all).

A compile error, or no answer from the engine, is shown without a replay.

What the sandbox doesn't simulate

The sandbox only pretends, and real programs can behave differently:

  • Focus rules, the controls inside windows, and programs running as administrator are not simulated.
  • A stand-in has no selection, so a copy key combination copies nothing. Typing and pasting add text to the active stand-in.
  • A minimized stand-in reports the position Windows gives minimized windows.
  • A pretend screen's device path is made up, so a step that names a real monitor's device path finds nothing. Its friendly name does match.

Taking the steps with you

  • Copy steps (Copy script in Script) copies what runs to the clipboard.
  • Save as snippet makes a snippet from it, as Steps or Script, and opens it on the Snippets page (Snippets). From there, an action can call it, or you can copy the steps into an action.
PreviousMacro recorderNextGlobal events

Global events

A global event runs a script when something happens, whichever program is in front. There are 13 of them, always the same 13: you set each one up, turn it on or off, and never add or remove one. Unlike actions, global events don't belong to an app group.

Advanced mode. The Global events page is in the Engine section of the navigation, which the configuration window shows in Advanced mode only.

Set up an event

  1. Find the event's row. Turn on its switch ① to enable it.
  2. Click Set up → (or Edit script → when it already has one) ②. The row opens in place; one row is open at a time.
  3. For a mouse button or wheel, choose whether to Swallow the input ③ (Swallow the input).
  4. Under Run this as ④, choose Steps or Script (or AutoHotkey, when AutoHotkey is turned on in General settings), and write what it does (Actions).
  5. Click Done, then save.

The row's middle column summarizes the script, for example Steps, 3 steps, or Nothing set up. An event that is on with nothing set up shows that summary as a warning: it runs nothing. The navigation badge counts the enabled events.

The 13 events

Event Card Fires
Left button, Middle button, Right button, Side button 1, Side button 2 Mouse & wheel When the button goes down, and again when it comes up (Down & up). For a draw button, only when it goes down (Down only).
Wheel — vertical Mouse & wheel For each wheel tick (Per tick).
Wheel — horizontal Mouse & wheel For each tick of a tilt wheel or sideways scroll (Per tick).
Draw button released Gesture outcomes When the draw button that started a gesture is released (After each capture).
Nothing matched Gesture outcomes When a drawn gesture ran no action (After a gesture ends).
Config loaded System & lifecycle When the engine starts, and again after every save or Reload Config (Start, save and reload).
Engine shutting down System & lifecycle When the engine exits (Prompts if it overruns).
Hardware added or removed System & lifecycle When a device is plugged in or removed (Real arrivals only).
Foreground window changed System & lifecycle Each time another window comes to the front (Skipped while disabled).

A script can tell what fired it with the Context builtins: for example whether a mouse button went down or up, and which button and window were involved (Builtins).

Mouse buttons

A mouse-button event fires for every press of that button, wherever the pointer is: over ignored programs, inside exclusion zones, and during a gesture (a button pressed during a gesture also counts as a gesture modifier). It never fires for clicks that Input.Observer's own scripts send.

For a button that is also a draw button (General, Draw buttons), the event fires only when the button goes down; the row says Down only and notes the button is used to draw gestures. The press still starts a gesture as usual. To react to the release, use Draw button released.

When Windows has the mouse buttons switched, button names follow Windows: Right button is the one that opens context menus.

The wheel

A wheel event fires for each tick, whatever the program under the pointer, and also during a gesture, even when the tick runs a wheel trigger too. It doesn't fire inside an exclusion zone that covers that wheel.

The scripts for one wheel event run one at a time, in order. If ticks arrive faster than the script finishes, up to 8 wait their turn; ticks beyond that are dropped.

A wheel event's script reads which way the wheel turned with ContextGetWheelDelta (above 0 away from you or to the right, below 0 toward you or to the left) and where the pointer was with ContextGetEventX and ContextGetEventY; in Steps these are Wheel turn, Event X position and Event Y position under From what started the action. Target window is the window under the pointer. Example: Scroll over the taskbar to change the volume.

Minimum gap between ticks (Advanced mode, inside the open row; default 0) sets the shortest time between two ticks that run the script. 0 runs it for every tick. With a gap, a tick that arrives sooner after the last accepted one is dropped, never queued. The vertical and horizontal wheels each have their own gap. The same two values appear as Wheel throttle on the General page; changing one changes the other.

Swallow the input

The five mouse buttons and the two wheels can Swallow the input: the click or scroll never reaches any program, and the script becomes responsible for whatever should happen instead. A swallowed press also swallows its release.

  • A draw button can't be swallowed, because its press must always reach gesture capture. The switch is unavailable and says why. If the configuration file turns it on anyway, the engine turns it off when it loads, and the row shows a warning until you turn it off here too.
  • Swallowing with no script is allowed, but the row warns you: the click or scroll simply disappears.
  • Swallowing a wheel that has a minimum gap: a tick inside the gap is swallowed and dropped. It doesn't scroll and doesn't run the script. The row warns about this too.

Gesture outcomes

Draw button released fires when the draw button whose press started a gesture is released, whatever happened: the gesture ran an action, matched nothing, turned out to be a plain click and was passed on, was drawn for training, or the press ran wheel or button chord triggers. It does not fire when the press never started a gesture (an ignored program, an exclusion zone, an ignored modifier key held, an app group with Draw buttons start gestures here off), or when the gesture had already ended before the release (the cancel timeout). It fires the same way when the draw key is released after it started a gesture (The draw key).

Nothing matched fires when you drew a gesture (moved at least the minimum gesture movement) and no action matched it in the window's app group or in Global. It does not fire for a plain click, for a press that ran a wheel or button chord trigger, or while gestures are being trained.

System and lifecycle events

  • Config loaded runs at engine start. If it is still running after Start and shutdown wait (Scripts page; default 10 seconds), you are asked whether to keep waiting. It runs again after every save from the configuration window and every Reload Config, after scripts still running have been stopped; that run has no time limit and no prompt, and is skipped while the engine is disabled. For an AutoHotkey script that should keep running, turn off Wait for it to finish (Scripts that keep running).
  • Engine shutting down runs when the engine exits, never on a reload. If it is still running after Start and shutdown wait, you are asked whether to keep waiting or let the engine exit. It is never cut off without asking, except when Windows is signing out, restarting or shutting down: then nothing can be asked, and the engine closes after that wait.
  • Hardware added or removed fires when a device actually arrives or is removed, not for the routine device notifications Windows sends in between. It is skipped while the engine is disabled.
  • Foreground window changed fires each time a different window comes to the front. It is skipped while the engine is disabled.

A Foreground window changed script that shows a window (a message box, for example) brings that window to the front, which fires the event again, and again. If that happens, press the stop-all actions hotkey (General page): it stops every script and turns off input handling and this event until you choose Reload Config from the tray menu.

When global events don't fire

  • While the engine is disabled from the tray, or paused because a window with Pause everything while focused has focus (Ignore groups). Config loaded still runs at startup.
  • In Safe Mode, where no configured script runs.
  • For input sent by Input.Observer's own scripts.

Ignore groups, app groups and profiles don't affect global events.

PreviousSandboxNextOn screen

On screen

While Input.Observer runs, it draws on your screen only when there is something to show: the trail under the pointer while you draw a gesture, a hint naming the action the stroke matches, and messages that actions show. Between gestures nothing is drawn, and clicks always reach the windows you see.

What draws each of these is your choice: Input.Observer's own classic trail, hint window and message window, or the renderer — a plugin such as the Styles plugin, which draws animated trail styles and decorates hints and messages to match. Whatever you choose, gestures, hotkeys and actions work the same.

Page What it covers
Appearance The Appearance page: theme and language, its sections, what applies at once, sounds, free and purchased styles
Gesture trails Choosing a trail style, the gallery, each style's settings and preview, Shuffle, a style per draw button, keeping trails light
Hints and messages When the hint appears and what it shows, every hint setting, and how messages from actions look and close
Exclusion zones Areas of the screen where the buttons, the draw key and the wheel you choose go straight to the window, never starting a gesture

The renderer itself is managed on the Plugins page.

  • AppearanceThe Appearance page: theme and language, the gesture trail, hints, on-screen messages, sounds and style packs.
  • Gesture trailsChoosing a trail style, the style gallery, each style's settings and preview, Shuffle, a style per draw button, and keeping trails light.
  • Hints and messagesThe hint that names the matching action while you draw, and the on-screen messages actions show: when they appear, how they look and how to change them.
  • Exclusion zonesAreas of the screen where a draw-button press never starts a gesture: drawing zones on the monitor picture, their fields, and what each zone follows.
PreviousGlobal eventsNextAppearance

Appearance

The Appearance page decides how everything Input.Observer draws on your screen looks: the trail that follows a gesture, the hint that names the action while you draw, and the messages that actions show. It also holds the theme and the language of Input.Observer itself.

The page

The page has a list of sections on the left and the selected section's settings on the right. Each section in the list shows a one-line summary of its current settings, and a count such as "2 changed" when some of its settings differ from their defaults.

Section What it controls Shown in
Theme & language The light or dark theme and the language of Input.Observer Simple and Advanced mode
Gesture trail ① What draws your gesture trail, the style gallery, and the classic line's options Simple and Advanced mode
Hint window ② Whether and where the hint appears while you draw Simple and Advanced mode
Hint text The fonts and colors of the classic hint window's three lines Advanced mode only
On-screen messages ③ What shows the messages that actions display Simple and Advanced mode

Advanced mode. The Hint text section and several rows in the other sections are hidden in Simple mode. A banner at the foot of the page counts them, and says so when one of them holds a value other than its default. Hidden settings stay in effect.

What applies at once and what waits for Apply

Most settings on this page are part of your configuration: they take effect when you choose Apply or Save and close (see The configuration window). Some choices take effect the moment you make them, and Discard does not undo them:

  • choosing a trail style, Classic line, None or Shuffle, and giving a draw button its own trail;
  • the Hints choice Match style or Classic, and the Messages choice;
  • every setting in a style's settings window, in Customize…, and the speaker on a style tile (these are saved by the plugin that draws the styles, not in your configuration);
  • the Theme, which is saved even when you close the window without saving anything else.

Choosing Off for Hints is the one exception among the choices: it waits for Apply. Until then the row shows "Your hint choice takes effect when you save."

Theme & language

Setting What it does Default
Theme System, Light or Dark. System follows the light or dark app mode chosen in Windows settings. The configuration window, the engine's own windows (the console, its dialogs) and the splash screen all follow it. The theme button in the window's title bar sets the same value. System
Language The language of Input.Observer and of the configuration window. The first entry, "Windows default", follows the Windows display language. Windows default

After you change the language, the configuration window keeps its current language until you close and open it again; a note under the list says so. The engine uses the new language as soon as you apply the change. Names you gave your own groups, actions and gestures never change with the language.

Gesture trail

The Trail row chooses what draws the line that follows a gesture:

  • a style from the style gallery, drawn by the renderer (the plugin that draws styles — see Plugins);
  • Shuffle, a different style from a set you choose for each gesture;
  • Classic line, Input.Observer's own plain line, which uses the least memory and processor time;
  • None, no trail at all. Gestures still work.

The section has three tabs: In use (what draws now), Gallery (every style, by category) and Trail options (color, width and the classic line's settings). Gesture trails explains all three, the settings each style has, and what to change when drawing feels slow.

Hint window and Hint text

The Hints row chooses how the hint appears while you draw: Match style (drawn by the renderer in the look of the style in use), Classic (Input.Observer's own hint window) or Off. The rest of the section sets where the hint appears and when. Hint text sets the classic window's fonts and colors. Hints and messages lists every setting with its default and range.

On-screen messages

The Messages row chooses how messages that actions show (with the UIShowDisplayMessage builtin, in a script or a Steps step) appear: Match style, Classic or Off. The action itself chooses each message's text, fonts, colors, position and how long it stays. Hints and messages has the details.

When the renderer isn't drawing

Match style and the gallery's styles need the renderer to be running. When something on this page is set to the renderer but the renderer can't draw it right now, a banner at the top of every section says so, and Input.Observer's classic trail, hint window and message window draw instead until the renderer is back. The page checks every few seconds.

Banner What it means What to do
"No renderer is chosen" No plugin is the renderer. Choose one on the Plugins page (the banner's link switches to Advanced mode and opens it).
"… isn't drawing right now" — it's starting The renderer is starting up. Nothing; it takes a few seconds.
"… isn't drawing right now" — switched off The renderer is disabled on the Plugins page. Enable it on the Plugins page.
"… isn't drawing right now" — stopped running The renderer's program stopped. Choose Restart. If it stops again, see Plugins.
"… isn't drawing right now" — its own settings switch this off The renderer runs, but its own settings turn trail drawing off. Choose Customize… and switch Draw gesture trails back on.

Rows that have no effect under the current choice stay visible but are dimmed. For example, while the renderer draws the trail, Opacity is dimmed because it applies to the classic line only, and while hints are Off, every row of the Hint window section is dimmed.

Sounds

Every style from the Styles plugin has its own sounds for the start of a gesture, while you draw, and the release. Every style starts silent. To hear a style, click the speaker on its tile in the gallery; click it again to silence it. The first time the Styles plugin runs, it shows a message, "Gesture sounds are available", at the bottom right of the main screen for about 12 seconds to point this out. Gesture trails covers the shared sound settings and custom sound files.

Free styles, locked styles and purchases

The Styles plugin contains every style, but only some are yours to use from the start. These six are free: Comet, Fire, Vibrant rainbow, Firework, Neon glow and Paint brush. A new installation draws Neon glow.

Every other style shows Locked with a padlock on its tile. You can still open a locked style to watch its live preview and see every setting it has, but you can't change its settings or put it in use. A locked style's tile and its settings window have a Buy button, which opens that style's page in the store at https://input.observer/styles in your web browser. Input.Observer itself never connects to the internet.

Auto draws a different style depending on the date. It needs at least one of its calendar styles to be unlocked. On a date whose style you don't own, Auto draws the free default style, Neon glow, instead.

Adding a purchase

A purchase comes as a file ending in .ioentitlement. To unlock the styles it holds:

  1. On Appearance, choose Gesture trail, then the Gallery tab.
  2. Choose Add purchased styles… ①.
  3. Choose the purchase file. A line under the button says what happened: which styles it unlocked, or why it didn't.

A purchase belongs to the email address of the license it was bought with:

  • Bought for this license's email: its styles unlock at once.
  • Bought for another email, or added during the trial: the file is kept, and its styles unlock as soon as a license with that email is active on this computer.
  • Already added: nothing changes.

Input.Observer keeps each purchase file in an Entitlements folder beside your configuration file (The configuration file). A file you copy into that folder yourself is read the next time the Styles plugin starts; Add purchased styles… takes effect at once. The button shows only while the Styles plugin is the renderer.

If a style you use becomes locked again (for example, because the license changed), it draws Neon glow until it is unlocked again. Your choice of style is kept.

PreviousOn screenNextGesture trails

Gesture trails

The trail is the line drawn under the pointer while you draw a gesture. It is only a picture: what you draw is matched the same way whatever the trail looks like, and turning the trail off changes nothing about which action runs. You choose the trail on the Appearance page, in the Gesture trail section.

What can draw the trail

Choice What draws Notes
A style The renderer, a plugin. On a standard installation this is the Styles plugin, with over a hundred animated styles. Needs the renderer running (Plugins).
Shuffle The renderer, with a different style for each gesture Never repeats the previous gesture's style while another one qualifies.
Classic line Input.Observer itself: a plain line in one color The lightest choice. Draws whenever the renderer can't.
None Nothing Gestures still work.

Whatever you choose, if the renderer is stopped, starting or switched off, the classic line draws in its place until the renderer is back (Appearance).

The three tabs

  • In use shows the basic choices (Classic line, None, Shuffle, Auto), the style in use, and any tile a draw button uses as its own choice.
  • Gallery ① shows every style, one category at a time ④: the style categories, then More styles for anything else the renderer offers, All, and Archived while you have archived styles. Customize… ② opens the settings every style shares. Typing in the search box ③ searches every style by name, ignoring case and accents, and shows the matches under All; clearing the box goes back to the tab you were on.
  • Trail options holds the trail's color and width and the classic line's settings ("Trail options" below).

The page remembers the section, the tab and the gallery category you last used.

Choosing a style

Each tile ⑤ shows a picture of the style, its name, and its state in words: In use, Free, or Locked with a padlock.

  1. On Appearance, choose Gesture trail, then Gallery.
  2. Find the style: pick a category, or type part of its name in the search box.
  3. Choose Use on its tile. The style is in use from your next gesture; you don't need to choose Apply.

To see a style before you choose it, click the tile itself. Its settings window opens with a live preview ("A style's settings window" below). Use this style there does the same as Use on the tile.

The tile in use has Preview where Use would be, on both the In use and Gallery tabs. It does the same as Preview on the Plugins page (Preview): the style in use follows your pointer without a real gesture. Gestures are paused while it runs. It ends when you press Esc, choose Stop preview, leave the page or the Gesture trail tiles, or put Classic line or None in use; those two have no preview.

To go back to the plain line or to no trail, choose Use on Classic line or None on the In use tab. Clicking Classic line opens the Trail options tab.

A locked style has no Use button. See Free styles, locked styles and purchases.

Some styles aren't offered in every country. When your Windows region setting is Saudi Arabia, Green Haze isn't in the gallery, Shuffle never picks it and Auto never switches to it (its switch isn't shown). If it's already your style, it keeps drawing and keeps its tile until you choose another.

Auto

Auto follows the calendar. On a holiday or festival it switches to that day's style; otherwise it follows the season: First Snow, then Northern Lights in winter, Cherry Blossom in spring, Firefly Meadow in summer and Autumn Drift in autumn. When two dated styles fall on the same day, the one with the shorter period wins. South of the equator the seasons are swapped; holidays are not. Its tile names the style it draws today, for example "Today: Autumn Drift".

Click the Auto tile to open its settings: the hemisphere (from your Windows region setting by default), and a switch for each dated style. A switch you turn off keeps Auto away from that style. National holidays follow the country in your Windows region setting unless you choose otherwise. A gesture keeps the style it started with.

Auto needs at least one of its calendar styles unlocked. On a day whose style you don't own, it draws Neon glow.

Shuffle

Shuffle draws a different style for each gesture.

  1. On the In use tab, choose Choose styles on the Shuffle tile. The Gallery tab opens with the Choosing Shuffle's styles bar ① above the tiles, and every unlocked style tile shows an In Shuffle box ⑤.
  2. Tick the styles Shuffle may pick. Each box takes effect at once. The last ticked box can't be cleared.
  3. The bar counts the ticked styles ②, for example "Ticked: 12 of 40". With every box ticked it says "Shuffle picks from every style.", and styles you unlock later join in too.
  4. Every style ③ ticks every box again. It is unavailable while every style is already ticked.
  5. Choose Done ④. Picking ends and the In use tab shows again. Choose Use on the Shuffle tile if Shuffle isn't in use yet.

While you pick, the Shuffle tile's own button on the In use tab reads Done instead of Choose styles, and also ends picking.

A different trail for each draw button

When you draw gestures with two or more buttons (General page, Draw buttons), each button can have its own trail. Open the ⋯ menu on a tile and choose Use for and the button, for example Use for Middle button. The tile then carries a badge for that button, and the In use tab lists it. Choose the same entry again to give the button back to the trail in use. Classic line, None, Shuffle and any unlocked style can be a button's own choice.

A button's own style belongs to the renderer it was chosen with. If you make another plugin the renderer, that button draws the trail in use instead. If you stop using a button for gestures, its own choice is dropped.

The draw key (The draw key) always draws the trail in use, with the trail's own color and width.

Archiving styles you don't want to see

The ⋯ menu on a style tile has Archive, which moves the tile to the Archived tab. Restore to gallery moves it back. Archiving only tidies the gallery for you in this window: an archived style can still be chosen from the Archived tab, and one in use stays on the In use tab.

A different style per program

Input.Observer has no per-program trail setting. An action can change the style with the StyleSet builtin, for example from the Foreground window changed global event (Global events). See the Style builtins in the builtin reference. Each such change is saved in your configuration.

A style's settings window

Clicking a style tile opens the style's own settings window.

  • Use this style ① puts it in use. A style already in use shows In use instead.
  • Live preview ② plays the style's demonstration stroke over and over, with a sample hint and a sample message in that style's look under it. It starts over after each change you make, so you see the change on the next stroke. Pause stops it; Play starts it again. Light backdrop plays it over a light background instead of a dark one; the window remembers that choice for every style. The preview comes down while you move the window or switch to another window, and plays again once the window is in front and still.
  • The settings ③ are grouped in cards: the style's own look and motion under its name, then Tuning, Sounds, Hint panel skin and Message skin. A dot beside a setting means it differs from the style's default.
  • Changes take effect at once and are saved as you make them. They don't wait for Apply, and Discard in the configuration window doesn't undo them. A slider, number or color is sent once it has stayed unchanged for a quarter of a second. If the plugin adjusts a value to fit its range, the setting shows the value it uses. The first time, the window may take a few seconds to load while the plugin starts.
  • Restore defaults puts every setting in this window back to the style's defaults.
  • A locked style's window shows every setting with its value but takes no change, and has Buy in place of Use this style. Its preview still plays.

The style's settings are kept by the plugin that draws it, in its own settings file beside your configuration file, not in your configuration. They are not part of an export.

Settings every style shares: Customize…

Customize… on the Gallery tab opens the settings that aren't tied to one style, in the same kind of window, with a list of sections on the left. With the Styles plugin as the renderer, the sections are:

Section What it holds
What this plugin draws Draw gesture trails (off makes the classic line draw instead; hints and messages are chosen on the Appearance page), Get a newly chosen style ready before its first gesture, Keep the drawing layer behind windows between gestures
Style and calendar Auto draws today, Hemisphere for the seasons, and Auto's switch for each dated style
Line and Particles The line under the effect and the particle limits of Comet, Lightning, Fire, Vibrant rainbow, Firework, Neon glow, Water splash, Paint brush and Dot chomper
Size and particles Size of everything the trail draws (×) and the particle limit for every other style
Hint panel The fonts, sizes, colors and opacity of the hint panel when hints are set to Match style
Sounds Play styles' sounds, a custom sound file for each sound, and each sound's volume
Memory Release graphics memory when idle and how long to wait first

The same window opens from the gear on the renderer's row of the Plugins page, where it also lists every style's own section.

Sounds

Each style has three sounds: one when a gesture starts, one that plays while you draw and follows your speed, and one on release.

  • Every style starts silent. The speaker on a style's tile switches that style's sounds on and off; its picture and tooltip say which. The same switch is in the style's settings window, in the Sounds card.
  • Play styles' sounds in Customize… > Sounds switches the styles' own sounds off for every style at once (on by default).
  • A custom sound file (uncompressed PCM .wav) set for a sound plays in that sound's place for every style. A file that can't be played falls back to the style's own sound. A style whose own speaker is off plays nothing, custom files included.
  • Sounds load only for the style in use (about 0.6 MB each), not for every style.

Trail options

The Trail options tab holds the trail's color and width, which both the renderer and the classic line use, and the classic line's own settings.

Setting What it does Default Range Applies to
Trail color The line's color, as #RRGGBB. Click the swatch for a palette and red, green and blue sliders. #5B8CFF (blue) Any color Renderer and classic line
Line width The line's thickness 4 px 1–50 px Renderer and classic line
Per-button trail A color and a width of its own for each draw button. A button with its switch off uses Trail color and Line width. Off for every button 1–50 px Renderer and classic line
Opacity How solid the line looks 100% 5–100% Classic line only
Draw after moving How far, in a straight line from where the stroke started, the pointer must move before the line appears. The line never appears before Minimum gesture movement (General) either. 8 px 0–500 px Classic line only
Trail length limit 0 keeps the whole stroke visible. Otherwise only the most recent part, this long, stays visible. 0 0–10000 px Renderer and classic line
Keep the drawing layer behind windows between gestures Moves Input.Observer's drawing layer behind other windows whenever no gesture is being drawn Off On or off Classic line only

Advanced mode. Per-button trail, Draw after moving, Trail length limit and Keep the drawing layer behind windows between gestures are hidden in Simple mode.

  • Many styles draw in their own colors or at their own size. While such a style is in use, a note under Trail color or Line width names it and says the setting doesn't change it.
  • Comet, Lightning, Neon glow and Paint brush have a switch at the top of their own settings to draw in Trail color or in a color of their own. Those four, Fire, Vibrant rainbow, Firework, Water splash and Dot chomper have one to draw at Line width or at a width of their own.
  • #FF00FF is the color Input.Observer's drawing layer treats as see-through, so a trail in exactly that color would be invisible. Input.Observer draws #FF00FE instead, and the row shows a warning.
  • Only the color's red, green and blue are used. A pasted #AARRGGBB keeps its color part; transparency is Opacity's job.

Keeping trails light

Input.Observer draws only while you gesture, but a drawing layer that covers your screens takes memory while it exists. These are the settings that change what the trail costs.

  • Classic line uses the least memory and processor time. With the trail, hints and messages all on the classic choices or off, the renderer doesn't run at all; the Plugins page shows it as "Not in use".
  • Release graphics memory when idle (Customize… > Memory, off by default) makes the Styles plugin give back its full-screen drawing surface after the set number of seconds with nothing on screen (30 by default, 1–3600). It is the plugin's largest use of graphics memory: about 16.6 MB for one 1920 × 1080 screen, 29.5 MB at 2560 × 1440, 66.4 MB at 3840 × 2160, and more for several screens side by side. The next gesture rebuilds it before drawing its first point, which costs that gesture a short moment.
  • Keep the drawing layer behind windows between gestures helps when a full-screen game or video stutters or behaves differently while Input.Observer runs, or a program reacts badly to a window covering it. The Styles plugin has its own switch in Customize… > What this plugin draws; the classic line's is on the Trail options tab. Both are off by default.
  • Get a newly chosen style ready before its first gesture (on by default) prepares a style you just chose out of sight, so its first stroke doesn't start with a stutter. It doesn't cover a draw button's own style or Shuffle's picks.
  • Most particles on screen (Line / Particles, and Size and particles) caps how many sparks, leaves or other pieces a style keeps on screen. Lower it if busy styles feel heavy.
  • Trail length limit keeps only the last part of a long stroke on screen.
PreviousAppearanceNextHints and messages

Hints and messages

Input.Observer shows two kinds of text on screen. The hint appears while you draw a gesture and names the action the stroke matches so far. Messages appear when an action shows one. Both are set up on the Appearance page.

The hint

The hint has up to three lines:

  1. the name of the app group whose action matches — Global when the gesture fell back to the Global group (Scope and fallback);
  2. the name of that action;
  3. the action's Hint note, if it has one (The Actions page).

It follows these rules:

  • It shows only a match. As soon as the stroke so far matches no action, the hint disappears; it comes back the moment the stroke matches one again. There is no "no match" text.
  • It waits a moment. A stroke counts as a gesture once the pointer has moved Minimum gesture movement (General, 5 px by default). The hint can appear once the stroke has lasted Wait before showing hint (150 ms) or travelled Distance before showing hint (24 px), whichever comes first, so it doesn't flicker on the first few pixels. A quick stroke released before then shows no hint, and its action still runs.
  • It can wait longer. Points before showing and Show delay hold back a hint that has already found a match: it appears only once the stroke has that many points and the same match has held for the delay. Both are 0 (off) by default.
  • It changes nothing about matching. The hint shows what the stroke matches; it never decides it. With hints off, the finished stroke is matched once when you release the button, and the same action runs.
  • It follows the pointer by default, 12 pixels away from it. In a fixed position it moves only when the match changes.

Who shows the hint

The Hints row at the top of the Hint window section has three choices:

Choice What you see
Match style The renderer draws the hint as a panel in the look of the gesture's trail style. Offered only while the renderer can show hints.
Classic Input.Observer's own hint window: dark text on a light panel with a thin border.
Off No hint. Input.Observer also skips matching while you draw, which saves a little work on every pointer move. Takes effect when you choose Apply.

Match style and Classic take effect at once. If the renderer can't show hints right now, the classic hint window shows them meanwhile.

Hint window settings

Setting What it does Default Range Used by
Hints ① Who shows the hint (above) Classic, or Match style after a standard installation that chose styles Match style, Classic, Off —
Position ② Follow the cursor, one of nine places on a monitor (Top left to Bottom right, Center), or Custom offset Follow the cursor — Renderer and classic
Monitor The monitor a fixed position is on: Primary monitor or Monitor of the window under the gesture. With Custom offset it only decides which monitor's text scaling the hint uses. Not shown for Follow the cursor. Monitor of the window under the gesture — Classic
Horizontal offset, Vertical offset Where the hint's top-left corner goes, in pixels from the top-left corner of the primary monitor. A monitor left of or above the primary one needs negative values. Shown only for Custom offset; a point on no connected monitor is warned. 0, 0 −32768 to 32767 px Classic
Cursor distance Gap between the pointer and a hint that follows it. Shown only for Follow the cursor. 12 px 0–500 px Classic
Opacity How solid the hint looks 85% 5–100% Classic
Background color The fill behind the text, as #RRGGBB. The thin border around the hint is a shade darker than this color, or a shade lighter when the color is dark. #F7F7F5 (soft white) Any color Classic
Wait before showing hint How long a stroke must last before the hint can appear (or the distance below, whichever comes first) 150 ms 0–10000 ms Renderer and classic
Distance before showing hint How far a stroke must travel before the hint can appear (or the time above, whichever comes first) 24 px 0–1000 px Renderer and classic
Points before showing Least number of stroke points before a found match may appear 0 0–1000 Renderer and classic
Show delay Extra wait after a match is found before the hint appears 0 ms 0–10000 ms Renderer and classic

Advanced mode. Monitor, Cursor distance, Wait before showing hint, Distance before showing hint, Points before showing and Show delay are hidden in Simple mode.

"Classic" in the last column means the setting has no effect while the renderer draws the hint; such rows are dimmed then. With a position other than Follow the cursor, the renderer's hint stays where the gesture was first recognized.

Hint text

Advanced mode. The Hint text section is hidden in Simple mode.

Hint text sets the classic hint window's three lines. Each row has a font, a size, Bold, Italic and a color.

Row Line Default
Group name The app group Segoe UI, 14 pt, #1F1F1F (dark gray)
Action name The action Segoe UI, 14 pt, #1F1F1F (dark gray)
Note The action's hint note Segoe UI, 12 pt, #1F1F1F (dark gray)

Sizes go from 6 to 72 pt. The font list shows the fonts installed on this computer; a font named in your configuration but not installed here is kept, and Windows substitutes a similar one. When Input.Observer's language is Japanese, Korean or Chinese, a line left at Segoe UI is drawn in that language's own Windows font (Yu Gothic UI, Malgun Gothic, Microsoft YaHei UI or Microsoft JhengHei UI), and so is a message shown in Segoe UI. Choose any other font to use it instead.

The renderer's hint panel

With Match style, the Styles plugin draws the hint as a panel decorated in the look of the style the gesture is drawn in. Its fonts, sizes, colors and opacity come from Customize… > Hint panel on the Gallery tab (Segoe UI 15, 14 and 12 pt, the action name bold, 88% opacity by default), not from Hint text. Each style's own hint colors and decoration are in the Hint panel skin card of its settings window (Gesture trails), which also has a switch to draw a plain panel instead.

On-screen messages

A message is a panel with a title line and a message line. Actions show them with the UIShowDisplayMessage builtin, in a script or as a Steps step (builtin reference).

The action decides everything about each message: the two lines of text, each line's font, size, bold, italic and alignment, the text color and background color, opacity, the padding, where it appears (one of nine places on a monitor, or an exact point on the screen), whether it goes on the primary monitor or the one the pointer is on, and how long it stays. There are no message settings to change on the Appearance page apart from who shows them.

  • Several messages can be on screen at once. An action can change a message it showed, or close it.
  • A message closes when its time is up, when an action closes it, or — in the classic message window only — when you double-click it. A message with no time limit stays until an action closes it (or you double-click a classic one).
  • The monitor is chosen when the message appears (and again when an action changes it). A message doesn't follow the pointer afterwards.

Who shows messages

The Messages row in the On-screen messages section has three choices. Each takes effect at once.

Choice What you see
Match style The renderer draws the message with the decoration of the style in use, keeping the action's fonts and colors. These panels can't be clicked: clicks go to the window underneath, and they close only by time or by the action.
Classic Input.Observer's own message window, with a thin border a shade darker than the action's background color (a shade lighter when that color is dark). Double-click it to close it.
Off Nothing appears. The action carries on normally.

While the renderer can't show messages, the classic message window shows them instead.

If you switch who shows messages, or the renderer stops, while a message is on screen, an action can no longer close that message: it stays until its time is up. An action that must be able to close its message should give the message a time limit.

Other messages you may see

  • "Gesture sounds are available" — shown once, at the bottom right of the main screen for about 12 seconds, the first time the Styles plugin runs. See Sounds.
  • Plugin preview — the Preview button on the Plugins page shows a sample hint and a sample message (Plugins).
  • Windows notifications are a different thing: the Show a notification step sends a notification to Windows' notification center, which Windows itself shows. They are switched on and off with Windows notifications on the General page.
PreviousGesture trailsNextExclusion zones

Exclusion zones

An exclusion zone is a rectangle on the screen where Input.Observer stays out of the way. A draw-button press inside it goes straight to the window underneath: no gesture starts. Use one for a spot where you need the plain right-click, such as a toolbar, a game's mini-map or a corner of a remote desktop.

Advanced mode. The Exclusion zones page is in the Engine section of the navigation, which the configuration window shows in Advanced mode only. So are the zones on the App groups page.

What a zone does

  • A press inside the zone. A press of a mouse button the zone covers is passed to the window as a normal press. No gesture, no trail, no Draw button released event.
  • A gesture that starts outside. A zone only matters where the press happens. A gesture that starts outside a zone and is drawn across or into it is not affected, as with the stroke in the picture.
  • The wheel. A zone that covers the vertical or horizontal wheel never stops scrolling. Wheel ticks inside it just don't count as wheel modifiers for a gesture (Modifiers and timing) and don't fire the wheel global events (Global events). While a gesture is being drawn, its wheel ticks still count for that gesture.
  • Only draw buttons and the draw key. Only the draw buttons and the draw key chosen on the General page start gestures, so a zone has an effect only on them. A zone that covers the draw key passes the key's press to the program when the pointer is inside the zone (The draw key). The mouse-button global events still fire inside a zone.
  • Training. While you train gestures, zones don't apply.

A zone that follows The window is checked a moment after the press, because the window's size has to be read first. The press then reaches the window a moment late, which you normally don't notice.

Draw a zone

The page shows a picture of every connected monitor, with your zones on it, then the list of zones and the selected zone's fields.

  1. On the picture ①, drag across empty screen space to draw a zone. Or click + Zone: it adds a zone a quarter of the size of the main monitor, in its center, covering every current draw button and the draw key, if you set one.
  2. Drag the zone to move it, and drag the selected zone's edges or corners to resize it. The arrow keys move the selected zone by one pixel, or 10 pixels with Shift. To set it exactly, type Left, Top, Width and Height ②.
  3. To place a zone to the exact pixel over your real screens, click Show on screen ③. Every zone appears at full size over the screen; drag it, or its edges, then press Esc or click Done.
  4. Under Mouse buttons and draw key ④, choose which buttons the zone lets through. Turn on Vertical wheel or Horizontal wheel (tilt) if it should cover the wheel too.
  5. Name the zone, and save.

The picture of your screens is taken when the page opens. Refresh picture takes a new one and reads the monitor layout again. The picture stays in memory and is never saved, and the configuration window itself is left out of it.

The zone's fields

Field What it does
Name For you only. A new zone is named Zone 1, Zone 2 and so on.
Active Off keeps the zone without using it. The switch is also on the zone's row in the list.
Left, Top Where the zone's top-left corner is, in physical screen pixels: the pixels Windows counts before display scaling. Values can be negative for a monitor left of or above the main one.
Width, Height The zone's size in physical pixels, at least 16.
Mouse buttons and draw key The buttons whose press passes through, and Draw key for the draw key. Only draw buttons and the draw key matter.
Vertical wheel, Horizontal wheel (tilt) Whether wheel ticks inside the zone are kept from counting as gesture modifiers and from firing wheel global events.
Follows Advanced mode. What the zone's position is measured against (What a zone follows).

A zone that is anchored to a monitor (Any monitor or The window) is kept on one monitor while you edit it: moving it hands it to the monitor under its center, and resizing it stops at that monitor's edge. A Stays put zone can span monitors, but stays on the desktop.

What a zone follows

Follows chooses how the zone's rectangle is used when you press a button:

Choice The zone is
Stays put (the default) Exactly where it is drawn, whichever monitor the pointer is on.
Any monitor The same distance from the top-left corner of the monitor the pointer is on, at the same size. It is not scaled to a bigger or smaller monitor.
The window Placed on the top-level window under the pointer instead of a monitor. The monitor the zone is drawn on stands in for that window.

For The window, four more choices say how the zone follows the window's size:

Choice Options
Left edge, Top edge Proportional: the edge stays at the same share of the window's width or height. Fixed distance (the default): the edge stays the same number of pixels from the window's left or top.
Width, Height Proportional: the size stays the same share of the window's size. Fixed size (the default): the size never changes. Fixed margin: the zone's right or bottom edge stays the same distance from the window's right or bottom edge, so the zone grows and shrinks with the window.

Example: a zone drawn over the top 120 pixels of a monitor, with The window, Fixed distance for both edges, Proportional width and Fixed size height, covers the top 120 pixels of whatever window is under the pointer, across its full width.

Advanced mode. Follows and the edge choices are shown in Advanced mode only. In Simple mode a note under the zone says when the selected zone follows something other than Stays put.

Zones for one app group

The zones on the Exclusion zones page apply to every window. An app group can have zones of its own, which apply only to windows in that group, on top of the zones for every window. Edit them in the Exclusion zones tab on the App groups page (Advanced mode); they work exactly like the zones on this page. When any app group has zones of its own, this page names those groups.

A press inside either kind of zone passes through. In an ignored program, no press starts a gesture anyway (Ignore groups).

Problems shown under a zone

Message Meaning
This zone lets nothing through No mouse button and no wheel is chosen, so the zone has no effect.
None of these buttons draws gestures The chosen buttons aren't draw buttons on the General page, and the zone doesn't cover a draw key that is set, so the zone has no effect until it does.
Not on a connected monitor The zone overlaps no monitor that is connected now. It is kept as it is; move it if that monitor is gone for good.
Has no area The width or height is zero or less (only possible from an edited configuration file). Enter a width and height. The zone's row in the list carries a warning dot.
PreviousHints and messagesNextSettings and maintenance

Settings and maintenance

These pages cover the settings that shape Input.Observer as a whole, and looking after it: protecting, moving and recovering your configuration, reading what the engine reports, and fixing problems.

Page What it covers
General settings The General page: draw buttons, starting and ending a gesture, the stop-all hotkey, AutoHotkey, startup
Script settings The Scripts page: timeouts, limits and behavior for running actions
Plugins Adding, enabling and removing plugins, the renderer, plugin settings, what happens when a plugin fails
Security Password protection for your configuration, license and console, and what a forgotten password means
Import and export Copying all or part of your configuration to a file and back, and importing from StrokesPlus.net
The configuration file Where your configuration lives, automatic backups, recovery, pointing Input.Observer at another file, editing it by hand
Console The diagnostic console: running a script, reading engine and script output, the Console page
About and license The About page, the trial, entering a license key, the license agreement and third-party notices
Troubleshooting Symptoms, causes and fixes
  • General settingsEvery setting on the General page — starting and ending a gesture, what happens on a match, the stop-all hotkey, AutoHotkey, notifications, startup and the config file — with defaults and ranges.
  • Script settingsThe Scripts page: timeouts and limits for running actions and plugin calls, the typing delay, and how actions send media keys and bring windows to the front.
  • PluginsManaging plugins: the Plugins page, adding a plugin, the renderer, enabling and removing, plugin settings, preview, what happens when a plugin fails, and what trusting a plugin means.
  • SecurityPassword protection for your configuration, license and console settings: setting, changing and removing the password, when you are asked for it, and what a forgotten password means.
  • Import and exportExporting all or part of your configuration to a file, importing one back with a preview of every change, what merges and what replaces, and importing from StrokesPlus.net.
  • The configuration fileWhere your configuration lives, the automatic backups, what happens when the file can't be loaded, keeping it somewhere else, and editing it by hand.
  • Portable copyRunning Input.Observer from a folder without installing it: the three ZIP files, what each one adds, what a portable copy can't do, and updating or removing it.
  • ConsoleThe diagnostic console: running a script, reading what the engine and your scripts report, Script Help, and the Console page's settings.
  • About and licenseThe About page: version, the trial and your license, entering a license key, the license agreement, third-party notices and the welcome.
  • TroubleshootingSymptoms, causes and fixes: gestures, right-clicks, hotkeys, text expansion, programs running as administrator, input other programs send, starting up, the configuration window, plugins, Safe Mode, recovering from a bad change and recording a trace.
PreviousExclusion zonesNextGeneral settings

General settings

The General page holds the settings that apply to every gesture and every action: which buttons draw gestures, when a gesture starts and ends, what happens when one matches, the safety hotkey, AutoHotkey, startup, and where the configuration file is. Changes take effect when you choose Apply or Save and close.

Finding a setting

  • The filter box ① shows only the rows whose label or description contains every word you type (case doesn't matter). "No settings match the filter." appears when nothing does.
  • All / Changed ② narrows the page to the rows you changed from their defaults. In Advanced mode a third choice, Advanced only, shows only the rows Simple mode hides. The count beside it ("2 changed") counts the rows that differ from their defaults.
  • The changed dot ③: a row whose value differs from its default has a dot beside its label ("Changed from its default").
  • Each row is one line; its description opens from the chevron beside it and shows on the label's tooltip.

Advanced mode. The Fine-tuning and Config file cards, and several rows in the other cards, are hidden in Simple mode. A banner at the foot of the page counts them and says when one holds a non-default value. The tables below mark them "Advanced".

Some settings that belong with these are on the pages where they are used:

Setting Page
Match threshold, stroke smoothing quality and the other gesture matching settings Gestures, Settings tab (Gesture library)
Text expansion on or off, and expanding on Space, Tab or Enter Text expansion, Settings tab (Text expansion)
Timeouts and limits for running actions Scripts (Script settings)
Recording and replay settings Recorder, Settings tab (Macro recorder)
Console and engine fonts Console (Console)
Theme and language Appearance (Appearance)
How long a password is remembered Security (Security)

Starting a gesture

Setting What it does Default Range Mode
Draw buttons The mouse buttons that start a gesture: Left button, Right button, Middle button, Side button 1, Side button 2, in any combination. The left button is unusual but valid, for example for a pen or tablet with no separate second button. With none chosen, the mouse draws no gestures, and Input.Observer receives mouse input only if something else needs it (such as a mouse global event). An app group can turn its draw buttons off with Draw buttons start gestures here (App groups). Right button Any combination Simple
Draw key A keyboard key that draws a gesture while you hold it, like a draw button. On a Japanese keyboard, Caps Lock can't draw, so pick another key. See The draw key. None None, Caps Lock, Scroll Lock, Pause, Insert, Menu key, F13–F24 Advanced
Ignored modifier keys Holding any of these keys when you press a draw button or the draw key makes that press an ordinary click, drag or key press: no gesture starts. See Modifiers and timing. Ctrl Ctrl, Shift, Alt, in any combination Simple
Minimum gesture movement How far the pointer must move with a draw button held before the press counts as a gesture. A shorter movement is passed on as a normal click — for example, a right-click still opens the window's menu. At 0, the slightest movement makes it a gesture. 5 px 0–200 px Advanced
Wheel modifier window A wheel turn this soon before you press a draw button counts as part of the gesture, the way a key held before it does. 500 ms 0–10000 ms Advanced

When Windows has the left and right mouse buttons switched, a note on this card says so. The names here follow Windows: Right button is the button that opens context menus, which is the physical left button on your mouse.

Ending a gesture

Setting What it does Default Range Mode
Cancel timeout Cancels a gesture you are still drawing after this long without input, and hands the button press to the window under the pointer. Switched off, a gesture stays open until you release the button. At 0, every gesture is cancelled the moment it starts, so no gesture can be drawn. An app group can set its own value (App groups). On, 500 ms 0–10000 ms Simple
Drawing extends the cancel timeout While on, any mouse or keyboard input during a gesture starts the cancel timeout again, so the timeout only ends a gesture when the pointer stays still. Off, the whole gesture must be finished within the cancel timeout, counted from the press — a slow gesture is cut off while you are still drawing it; the row warns about this. On On or off Advanced
Maximum gesture duration Ends a gesture still being drawn after this long, even while you keep drawing. It exists for the rare case where the button release never reaches Input.Observer (for example, the release happened on the Windows sign-in screen): until a gesture ends, Input.Observer holds back your keys and other buttons. 0 means no limit. 10000 ms 0–600000 ms Advanced

When a gesture matches

Setting What it does Default Mode
Activate the window under the gesture Brings the window you drew over to the front before its action runs, so anything the action types goes there. Mouse gestures only. On Simple
Fall back to Global When an app group has nothing for a gesture, hotkey or typed text, or doesn't apply in the active profile, the Global group's actions are tried. Each app group can also turn this off for itself. Off, no group ever falls back, and a window that belongs to no app group gets no actions at all. See Scope and fallback. On Simple

Fine-tuning

Advanced mode. The whole Fine-tuning card is hidden in Simple mode.

Setting What it does Default Range
Release keys let go during a gesture Keyboard input is held back while you draw a gesture. If a key that was already down is let go during the gesture, its release is sent afterwards, so the window doesn't think the key is still held. On On or off
Remember each window's program Looks up which program a window belongs to once, so app groups that match a program name or path don't slow clicks and keystrokes down. Remembers up to 32 windows. It changes speed only, never which app group a window gets. On On or off
Wheel throttle The least time between two wheel-tick global events of the same kind, Vertical and Horizontal separately. The same values are on the Global events page (Global events). 0 means no throttle. 0 ms, 0 ms 0–60000 ms each

Scripts & actions

Setting What it does Default Range Mode
Stop all actions hotkey Stops every running action, including a stuck one, then switches off gestures, hotkeys, text expansion, timers, folder watches and serial monitors until you choose Reload Config from the tray menu. Works even while a gesture, a recording or gesture training is in progress. The switch turns the hotkey off; the key combination is kept. The combination must include Ctrl, Alt or the Windows key. On, Ctrl+Shift+Alt+F9 — Simple
Enable AutoHotkey Lets actions run as AutoHotkey scripts (Action engines). Off by default: turning it on lets Input.Observer start an AutoHotkey program you choose. Off On or off Simple
AutoHotkey executable The AutoHotkey v2 program, chosen with Browse…. "Not set" until you choose one. Disabled while AutoHotkey is off. The builds whose name ends in _UIA (such as AutoHotkey64_UIA.exe) can't run scripts for Input.Observer; choose the plain build, such as AutoHotkey64.exe. Not set — Simple
Windows notifications Lets actions show Windows notifications (the Show a notification step). Showing one needs a Start menu shortcut for Input.Observer, which it creates the first time if setup didn't; turning this off also stops it from adding that shortcut. On On or off Simple

The stop-all hotkey

Press Ctrl+Shift+Alt+F9 (or the combination you chose) when an action runs away. Everything stops and stays off until you choose Reload Config from the tray menu, which starts gestures, hotkeys and the rest again with your configuration as saved. If Windows or another program already uses the combination, Input.Observer shows "Configuration Warning" at startup and runs without it; choose a different combination here.

If AutoHotkey is on but the chosen program can't be found when Input.Observer starts or reloads its configuration, it asks whether to browse for it or leave it; AutoHotkey actions don't run until it's fixed.

Startup

Setting What it does Default Range Mode
Start with Windows Starts Input.Observer when you sign in to Windows. Saved with the rest of the page; it is stored in Windows, not in your configuration file, so it is never exported or imported. Chosen during setup (on unless you cleared it) On or off Simple
Splash screen duration The shortest time the splash screen shows when Input.Observer starts. The splash always appears, even briefly: while it is the active window, Windows lets Input.Observer give other programs (the configuration window, plugins, your actions) permission to bring their windows to the front. At 0 it shows only while startup work runs. 1000 ms 0–10000 ms Advanced

Config file

Advanced mode. The Config file card is hidden in Simple mode.

Effective config file shows the configuration file the running engine actually uses, with "(redirected)" after it when the usual file points to another one, and whether it is Encrypted or Plain text. Reveal opens File Explorer with the file selected. To change where the configuration lives, see The configuration file.

PreviousSettings and maintenanceNextScript settings

Script settings

The Scripts page holds the settings that control how actions run, whatever they are written in (Steps, Script or AutoHotkey). Changes take effect when you choose Apply or Save and close.

Advanced mode. The whole Scripts page is hidden in Simple mode; it is in the Engine section of the navigation. The settings keep working in Simple mode with whatever values they have.

For how actions run in general — one thread each, what stops them, what a failing step does — see How scripts run. The AutoHotkey switch and program are on the General page.

Limits and timeouts

Setting What it does Default Range
Before and after timeout How long each Before or After script may run (Before and after actions). One still running after this is stopped and the next step starts; the stop is written to the console's System section, with no prompt. The matched action itself is never cut short. At 0, each Before or After script gets one very short wait before it is stopped. 3000 ms 0–60000 ms
Start and shutdown wait — Started, Shutting down How long the Config loaded event (when Input.Observer starts) and the Engine shutting down event can run before you are asked whether to keep waiting (Global events). Input.Observer never stops them on its own: if you choose to keep waiting, it asks again after the same time. When Windows signs out, restarts or shuts down, nothing is asked: the engine closes after this time. When a save or Reload Config runs Config loaded again, there is no time limit and no prompt. At 0 you are asked at once. 10000 ms each 0–600000 ms each
Maximum running actions A safety limit on how many actions and scripts run at the same time. Reaching it does what the stop-all hotkey does: every running action stops, and gestures and other input handling stay off until you choose Reload Config from the tray menu. It protects against an action that keeps starting itself. 50 1–10000
Maximum time scripts can block input The longest EngineConsumePhysicalInput or a replay of a temporary macro recording can keep your own mouse and keyboard input from reaching other programs. A longer request is shortened to this. 120 s 1–86400 s
Plugin command queue size How many PluginSendMessage calls can wait for one plugin at a time. One more is refused, which stops the script that made it with an error. 0 queues none: a call made while another is waiting for the same plugin is refused. 10 0–1000
Plugin call timeout How long a script waits for a plugin to answer a call to one of its script functions, or a run on its script engine (Plugins). After that, the call is cancelled and the script stops with an error. Time spent running the plugin's call-backs doesn't count. 0 waits until the plugin answers or you stop all actions. 10000 ms 0–2147483647 ms
Plugin calls waiting at once How many calls to one plugin's script functions or script engine can wait for an answer at the same time, from all running scripts together. One more is refused at once, which stops the script that made it with an error. 16 1–2147483647

Behavior

Setting What it does Default Range
Typing delay The pause between characters when an action types text, and between the keystrokes of a text expansion. Some programs, such as Notepad on Windows 11, scramble text typed with no pause. 0 sends the characters back to back. 30 ms 0–1000 ms
Send media and browser keys as commands Sends the media, volume and browser keys (play, next track, volume up, browser back and so on) to the control that last had the keyboard focus as commands, instead of as keystrokes. Some controls respond to these keys only that way. Every other key is sent as a keystroke either way. Off On or off
Allow bringing windows to the front Lets Input.Observer turn off Windows' delay that stops programs from taking the focus, once, when it starts, so its actions can bring windows to the front immediately. Off, Windows may only flash a window's taskbar button instead of activating it. This setting applies to your whole Windows session, not only to Input.Observer. On On or off
PreviousGeneral settingsNextPlugins

Plugins

A plugin is a separate program that works with Input.Observer. Most draw things: the Styles plugin, which comes with Input.Observer, draws the animated trail styles and the decorated hints and messages. Others can add functions that scripts call, or run actions written in another language. Input.Observer starts, watches and stops every plugin itself; you never start a plugin by hand.

This page covers managing plugins. Writing one is described in the separate plugin developer documentation.

Advanced mode. The Plugins page is in the Engine section of the navigation, which is hidden in Simple mode. Plugins keep running in Simple mode, and the Appearance page shows and controls the renderer's styles in either mode.

Changes on this page take effect at once. They are not part of your configuration's unsaved changes: Apply isn't needed, and Discard doesn't undo them. Plugins are never exported or imported.

The Plugins page

The page lists every registered plugin ②, with a search box and a status filter (All statuses, Healthy, Needs attention, Disabled) above the list. The title line counts the registered and the healthy plugins.

Column What it shows
Name The plugin's name. The renderer's row has a Renderer badge. The copy button copies the name exactly, which is what a script's PluginSendMessage call needs.
Path The plugin's program file. The button at its end opens File Explorer with the file selected.
Capabilities What the plugin offers: Gesture trail, Hint, Display message, Styles, Script commands, Script functions, Script engine, Settings, Settings here. A plugin that isn't running shows what it offered when it last ran.
Status See the table below.
Actions The buttons that apply to this plugin right now (below).
Status Meaning
Healthy Running and answering.
Starting… Being started. The page checks again every second until it settles.
Not in use A drawing plugin that isn't the renderer, or the renderer while nothing is set to it. It isn't running, and uses no memory ("Not in use" below).
Not responding Running but hasn't answered for 10 seconds. Input.Observer restarts it.
Disabled Switched off with Disable.
Auto-disabled -- failed to start Failed to start several times in a row. Input.Observer stopped trying ("When a plugin fails" below).
Closed by the plugin The plugin closed itself on purpose. It stays closed until you choose Retry, disable and enable it, or restart Input.Observer.

The buttons in Actions:

Button Shown when What it does
Use as renderer A drawing plugin that is switched on and isn't the renderer Makes it the renderer (below).
Settings (gear) The plugin has settings and is running or not in use Opens its settings (below).
Preview / Stop preview The plugin draws a trail, a hint or messages, and is running or not in use Shows what it draws (below).
Retry Auto-disabled, or closed by the plugin Starts it again and clears the failure count.
Allow call-backs / Block call-backs The plugin provides script functions or a script engine See "Call-backs" below.
Enable / Disable Always Starts or stops the plugin and keeps it registered.
Remove Always Stops the plugin and forgets it. The program itself is not deleted.

Disable and Remove ask first when scripts in your configuration need the plugin — scripts that run in its script engine or call its functions — and list them. Those scripts stop working while the plugin is gone.

Adding a plugin

  1. Choose Add Plugin… ① and pick the plugin's program (.exe).
  2. Input.Observer starts the program once to ask for its name, then starts it again and checks that it connects and answers. This takes a few seconds.
  3. If it passes, the plugin is added at the top of the list and keeps running. If it draws trails, hints or messages, it also becomes the renderer, and a "Renderer changed" note says so.

If the plugin doesn't pass, "Couldn't Add Plugin" explains why: the file isn't there, the program didn't answer or answered wrongly (it may not be an Input.Observer plugin), it took too long, its name is already used by another registered plugin, or its script functions or script engine use names another plugin already uses. In each case nothing is added.

Input.Observer keeps the plugin's path relative to its own folder when the plugin is inside it, so a plugin installed beside Input.Observer keeps working if Input.Observer moves.

Trusting a plugin

  • Adding a plugin runs it. Step 2 starts the program at once, with your permissions, and from then on Input.Observer starts it every time it starts. Input.Observer doesn't check who made a plugin or whether it is signed. Add only programs from sources you trust, as you would before running any program.
  • A plugin runs as its own program. It never runs inside Input.Observer, and Input.Observer never waits for a plugin while handling your mouse and keyboard, so a slow or broken plugin can't make your input lag.
  • A plugin that draws gets your gesture strokes and the text of hints and messages, so it can draw them.
  • A plugin with script functions gets the values scripts pass to those functions.

The renderer

The renderer is the one plugin that draws for Input.Observer: the trail styles, and hints and messages when those are set to Match style on the Appearance page. Only one plugin is the renderer at a time. A standard installation registers the Styles plugin as the renderer.

To make another drawing plugin the renderer, choose Use as renderer on its row. The engine switches at once: the new renderer starts, the previous one stops and shows Not in use, and the trail, hints and messages the new plugin can draw are set to it. Your choices on the Appearance page then decide what it draws (Appearance). A plugin that offers no styles shows as a single tile in the gallery, under its own name; its own settings decide how it draws.

Disabling or removing the renderer leaves no renderer: Input.Observer's classic trail, hint window and message window draw until you choose another.

Not in use

Input.Observer doesn't run a plugin that has nothing to do. A drawing plugin runs only while it is the renderer and something on the Appearance page is set to it. A plugin that provides script functions or a script engine always runs while it is enabled.

A plugin that isn't in use is started for a moment when you open its settings or preview it, and goes back to Not in use afterwards. The Styles plugin stops about a minute after your last change in its settings. A script's PluginSendMessage call to a drawing plugin that isn't running fails with an error saying so; it does not start the plugin.

Plugin settings

The gear on a plugin's row opens its settings:

  • A plugin marked Settings here shows its settings in a window drawn by the configuration window, with a section list on the left. The Styles plugin's are described in Gesture trails.
  • Any other plugin with Settings opens its own settings window.

A plugin that isn't running is started first, so the window may take a few seconds to fill. Changes take effect at once and are saved by the plugin itself, in its own file beside your configuration file; they don't wait for Apply, and Discard doesn't undo them. Restore defaults puts the selected section back to the plugin's defaults. If a change can't be made, a note in the window says why: the plugin didn't start or doesn't offer these settings, didn't answer in time, refused the change, or made it but couldn't save it.

Preview

Preview shows what a drawing plugin would draw, without a real gesture: a trail that follows your pointer, a sample hint and a sample message. Right-click to see the trail end and start again; the right-click opens nothing while previewing.

While a preview runs, gestures are paused everywhere, and a banner on the page says so. The preview ends when you press Esc, choose Stop preview, leave the Plugins page, or the plugin stops. A preview can't start while a macro recording or gesture training is running.

When a plugin fails

Input.Observer checks every running plugin every 5 seconds.

  • A plugin that stops answering for 10 seconds (two missed checks) shows Not responding and is restarted.
  • A plugin that exits unexpectedly is restarted 10 seconds later.
  • A plugin that fails to start is tried again after 2, 5 and 10 seconds. After the third failed attempt it is Auto-disabled -- failed to start and Input.Observer leaves it alone, even across restarts, until you choose Retry. The failure count goes back to zero once a plugin has run without trouble for 5 minutes.
  • A plugin that closes itself on purpose shows Closed by the plugin and isn't restarted until you choose Retry, disable and enable it, or restart Input.Observer.

While the renderer is down, Input.Observer's classic trail, hint window and message window draw in its place, and the Appearance page says so with a Restart button. Each time this happens, a line goes to the console's System section (Console).

When Input.Observer starts, it starts each plugin that has work to do and waits up to about 5 seconds for each; the splash screen names the plugin it is loading. A plugin that misses that time is picked up a little later. When Input.Observer exits, it closes every plugin, and a plugin can never keep running after Input.Observer has stopped. In Safe Mode no plugin is started (Troubleshooting).

Call-backs

A plugin that provides script functions or a script engine may ask to run Input.Observer script while it handles a call. This is blocked unless you choose Allow call-backs on its row and confirm. Allow it only for a plugin you trust: its requests can then do anything a script here can — press keys, move and close windows, run programs — including in windows running as administrator, which the plugin can't reach on its own. Block call-backs takes the permission away again.

PreviousScript settingsNextSecurity

Security

Your configuration can hold things you'd rather others didn't read: text that actions type, paths, script code. A password encrypts the files that hold them, so someone who copies or opens the files sees nothing useful without the password.

Protection is a deterrent against casual reading, not a vault: while Input.Observer runs, it has your configuration open, and anything an action does is visible on screen as usual.

There is no way to recover a forgotten password. Nobody, including you and the makers of Input.Observer, can decrypt a protected file without it. Read If you forget the password before you set one.

Changes on the Security page take effect at once. They don't wait for Apply, and Discard doesn't undo them.

What the password protects

One password protects three files, all kept together in your configuration folder (The configuration file):

File Holds
Configuration (config.toml) Everything you set up: groups, actions, gestures, settings
License (license.dat) Your license email and key
Console (console.toml) The console's script editor text and window position

All three are protected or none is; there is no password per file. A file that doesn't exist yet (for example, the license file before you activate a license) is protected as soon as it is created.

These are not protected:

  • which gesture profile is active;
  • values scripts store between runs (the Storage builtins);
  • macro recordings, in the Recordings folder;
  • trace files, in the Logs folder (Recording a trace);
  • plugin settings, such as the Styles plugin's settings file, and style purchase files;
  • exported files: an export is always plain text, and the export dialog warns you when your configuration is protected (Import and export).

When you turn protection on, the plain-text backups of your configuration in its Backup folder are deleted, so an older copy can't give away what you just protected. Backups made from then on are encrypted (Backups).

The Security page

Protection status shows each file as Password protected, Not protected, or Not created yet. The Password card shows whether a password is Set or Not set.

Setting a password

  1. On the Security page, choose Set password… ①.
  2. Type the password in New password and again in Confirm password, and choose OK.

The three files are encrypted at once. The tray menu's Set Password... does the same.

Changing or removing the password

Once a password is set, the button reads Change or remove… (the tray menu's item reads Change Password...).

  • To change it, type the current password, then the new one twice.
  • To remove protection, type the current password and leave New password ① and Confirm password blank. All three files are decrypted.

If the current password is wrong, nothing is changed and the page says so.

When you are asked for the password

  • Every time Input.Observer starts. It can't read your configuration without it. Cancelling closes Input.Observer.
  • When you open the configuration window, unless the password is still remembered (below).
  • When you open the console, unless it is still remembered.
  • When something saves a protected file and the password isn't remembered, for example the tray menu's Global Actions switch.

Remember for

Remember for ② on the Password card sets how long a correctly typed password is remembered, so you aren't asked several times in a row — at startup, for example, the configuration, the license and the console settings may all need it within seconds.

Setting Default Range
Remember for 60 s 0–300 s; 0 asks every time

While the configuration window or the console is open, the remembered password doesn't run out; the time starts again when you close the window. A remembered password is held encrypted in memory and is always checked against the file again before it is used.

Changing this setting while your configuration is protected saves the configuration, which needs the password. If none is at hand, the page says so: open Change or remove… once to confirm the password, then try again.

When the files don't match

If some of the three files are protected and others aren't (for example, a file was restored from an old copy), the Security page shows "Your protected files are not all in the same state", with Protect all three… and Remove protection from all three…. Input.Observer also asks at every start until it is fixed, with three choices: Encrypt all three files (recommended), Remove protection from all three files, or Leave the files as they are.

If you forget the password

There is no reset and no recovery code. What you can do depends on the file:

  • Configuration. After three wrong passwords at startup (or when opening the console), Input.Observer offers Browse for a configuration file, Start fresh with a new default configuration or Close Input.Observer (Recovery). Browsing or starting fresh renames the protected file aside, still encrypted, rather than deleting it, so it can still be opened if you remember the password later. An exported file you kept is plain text and can be imported into the fresh configuration (Import and export). Backups in the Backup folder are encrypted with the password that was in use when each was made.
  • License. If you cancel the license password prompt at startup, Input.Observer says it can't read your license file and then asks you to activate, as if no license were there. Enter your license email and key again (About and license).
  • Console. The console won't open without the password. Its file only holds the console's script editor text and window position; deleting console.toml from your configuration folder lets the console open again, empty. If Input.Observer then reports that the protected files aren't all in the same state, choose to protect all three.
PreviousPluginsNextImport and export

Import and export

Export writes all or part of your configuration to a file you can keep, share or take to another computer. Import reads such a file back, shows you every change it would make, and makes none until you agree. Both are on the ⋯ menu in the configuration window's title bar, with Import from StrokesPlus.net….

The file is a plain-text configuration file in the same form as your own config.toml, holding only the parts you chose. A file you write by hand with some of config.toml's sections imports the same way.

Exporting

  1. Open the ⋯ menu and choose Export… ②.
  2. In Choose what to export, tick what you want. Nothing starts ticked; Select all and Select none help, and Filter by name… finds an item. Space ticks the selected item.
  3. Choose Export… and pick where to save the file (input-observer-export.toml by default).

What you can export:

Category What's under it
App groups Each app group, with a Group settings item (its window rules, exclusion zones, profiles, before and after scripts and switches) and its actions, in folders by action category
Gestures Each gesture shape
Profiles Each gesture profile
Snippets Each snippet, in folders by category
Exclusion zones The zones that apply to every window
Global events Each global event, and the global before and after scripts
Appearance The hint window, the gesture trail and display messages
Settings General settings, gesture matching and text expansion
  • What the ticked items need comes along. A gesture or profile that a ticked action or group uses is ticked for you and can't be unticked; it shows how many ticked items use it. A snippet that a ticked script calls by name is ticked for you, but you can untick it. If a script calls a snippet your configuration doesn't have, the export says so after writing the file.
  • A group's settings with only some of its actions exports as that group holding just those actions. Actions without their group's settings export on their own, and the import asks which group they go to.
  • Ticking everything exports your whole configuration.
  • Never exported: plugins, the AutoHotkey settings, how long a password is remembered, and Start with Windows. These belong to one computer, or would let a shared file choose a program Input.Observer runs. Your license is never in your configuration at all.
  • An export is always plain text, even when your configuration is password-protected; the dialog warns you. Anyone who can open the file can read your scripts.

Importing

  1. Open the ⋯ menu and choose Import… ①, then pick the file.
  2. The Import preview lists everything in the file and what would happen to each item. Decide each item the preview asks about (below).
  3. Choose Import.
  4. The result shows in the configuration window as unsaved changes. Look it over, then choose Apply or Save and close to keep it, or Discard to drop it.

What happens to each item

Items in the file that your configuration doesn't have are added. Where an item matches one you already have, the preview asks ②, and Import stays unavailable until every such item is decided. Overwrite all and Keep all decide every open item at once.

Item Matches yours when Choices
Gesture It is the same gesture (it came from your configuration) Overwrite (takes the file's shape and name) or Keep yours
Gesture A different gesture has the same name Keep yours, Overwrite, or Add alongside. With the first two, the file's actions use your gesture.
Action, profile It is the same item Overwrite, Keep yours or Import as a copy (a copy of a profile gets a new name ending in -1, -2…)
App group It is the same group; the file's Global group always matches yours Overwrite or Keep yours, for the group's settings only. Its actions are listed one by one and merged into your group, so actions of yours the file doesn't hold stay.
Snippet It is the same snippet Overwrite, Keep yours or Import as a copy. A snippet whose name you already use for a different one is added with -1, -2… after its name.
Settings, a global event, the global before or after script Always (there is one of each) Overwrite or Keep yours. A settings section from the file changes only the settings it contains.
Exclusion zone (every window) Never Always added

An action from the file goes into the group with the same identity in your configuration, or else into your Global group; the preview asks when actions arrived without their group. When an item gets a new name or identity, everything in the file that refers to it is updated to match, including snippet calls written as a plain name in scripts.

Merge or replace

When the file is a whole configuration, the preview offers Merge it into your configuration (the rules above) or Replace your configuration with it ①. Replace makes the file your configuration. Plugins, the AutoHotkey settings, how long a password is remembered and Start with Windows keep their current values either way.

What stops an import

An import is all or nothing. Before anything changes, Input.Observer builds the result and checks it the same way it checks your configuration when it starts. If the result wouldn't be valid, nothing is imported and the preview lists the problems. An import is refused when:

  • the file is encrypted — remove the password where it came from, export again, and import that file;
  • it isn't a configuration file Input.Observer can read, or it is larger than 8 MB;
  • it was written by a newer version of Input.Observer that this version can't read (parts that are only a little newer import, and the preview lists the settings it skipped);
  • an action uses a gesture, or a group or action is limited to a profile, that neither the file nor your configuration has;
  • the result would have more than one Global group, two snippets with the same name, or more than 64 gesture profiles;
  • Input.Observer itself finds a problem in the result, or can't check it, for example because the engine doesn't answer.

Settings that are never imported are left out and listed. A script that calls a snippet neither side has is a warning, not a refusal.

Imported scripts run with your permissions whenever they are triggered, like your own. The preview marks every item that contains a script, and AutoHotkey scripts separately. Import files only from people you trust.

Importing from StrokesPlus.net

Import from StrokesPlus.net… reads a StrokesPlus.net settings file and turns it into an ordinary import preview, so everything above applies.

  1. Open the ⋯ menu and choose Import from StrokesPlus.net…. The file picker opens in StrokesPlus.net's settings folder when there is one. A portable StrokesPlus.net keeps StrokesPlus.net.json beside its own program; browse to it there.
  2. If the file is encrypted, enter the password it was saved with.
  3. Check the preview. A box at the top lists, by kind, what didn't carry over or changed, with Show every item for the full list.
  4. Choose Import, then Apply or Save and close.

What to expect:

  • App groups, ignored programs, gestures, gesture actions, hotkeys, text expansions, global events, exclusion zones and the matching settings come over. Steps and scripts are translated into Input.Observer's own Steps and script language.
  • Anything that didn't carry over intact is imported switched off, with a note saying why: an action whose script couldn't be fully translated (the untranslated lines are kept as // SP.net: comments), an action whose gesture isn't in the file, an action started by mouse buttons alone, a hotkey without a key, a text expansion without trigger text, and an app group none of whose window rules has an equivalent.
  • Gesture matching starts on Keep yours. StrokesPlus.net scores a gesture by averaging its drawn examples; Input.Observer by default takes the best one. The file's matching settings are offered, but overwriting yours changes how your existing gestures score, so it is your choice. A match threshold below 50 comes in as 50, the lowest the Gestures page allows. Imported gestures may need their match settings revisited (Matching).
  • StrokesPlus.net's older binary settings file (.bin) can't be read. Start StrokesPlus.net once so it saves StrokesPlus.net.json, then import that.
  • Importing the same file again lines its items up with the ones it imported before, instead of adding duplicates.
PreviousSecurityNextThe configuration file

The configuration file

Everything you set up in the configuration window is saved in one file, config.toml. Input.Observer reads it when it starts and whenever you apply changes. You never need to touch it: the configuration window reads and writes it for you. This page is for when you want to know where it is, keep it somewhere else, recover it, or edit it by hand.

Where it is

Input.Observer looks for config.toml in this order:

  1. Beside the program, in the folder that holds Input.Observer.exe. If a portable.txt or a config.toml is there, Input.Observer uses the config.toml in that folder — this is how a copy run from a USB stick keeps its settings with it (Portable copy). When there's no config.toml yet, or it's empty, that counts as a first run: Input.Observer creates or fills it with the starter setup.
  2. Otherwise in your user profile: %APPDATA%\Input.Observer\config.toml.

If that file contains only a pointer to another file, Input.Observer uses the other file ("Keeping the configuration somewhere else" below).

To open the folder, choose Open Config Folder from the tray menu. In Advanced mode, the General page's Config file card shows the file in use and whether it is encrypted, and Reveal opens it in File Explorer.

These files sit beside config.toml and always go with it:

File or folder Holds
license.dat Your license email and key
console.toml The console's script editor text and window position
gesture_profile.dat Which gesture profile is active
storage.toml Values scripts store between runs
styles.toml The Styles plugin's settings (other plugins may keep their own files here too)
Backup\ Automatic backups of config.toml ("Backups" below)
Recordings\ Saved macro recordings
Entitlements\ Style purchase files (Appearance)
Logs\, trace.toml Trace files, and the areas the trace copy of the engine records (Recording a trace)

Backups

Each time Input.Observer exits, it copies config.toml into the Backup folder beside it — but only when the configuration has really changed since the newest backup. Comments, spacing and the order of entries don't count as changes. The newest 10 backups are kept; older ones are deleted.

  • Backup names carry the date and time in UTC, for example config.20260923T180512Z.toml, so sorting by name sorts by age. Each has a .sha256 file beside it that Input.Observer uses to tell whether anything changed.
  • A backup of a protected configuration stays encrypted, with the password that was in use at the time. When you set a password, the plain-text backups are deleted (Security).
  • To go back to a backup, close Input.Observer (tray menu, Exit), copy the backup over config.toml under that name, and start Input.Observer again.

When the file can't be loaded

If config.toml exists but can't be read — it isn't valid, or the file it points to is missing — Input.Observer shows "Input.Observer can't load your configuration" at startup, with where it looked and, under Details, what is wrong. It offers three choices:

Choice What happens
Browse for a configuration file Pick another config.toml on this computer. Input.Observer uses that file where it is, and remembers it: the usual file becomes a pointer to it. If the usual file held settings, it is first renamed aside. If the file you pick can't be loaded either, the dialog shows why and asks again.
Start fresh with a new default configuration The broken file is renamed, not deleted, and a new minimal configuration is written in its place.
Close Input.Observer Nothing changes. Fix the file yourself, then start Input.Observer again.

A renamed file is named like config.toml.broken-20260923-180512.bak, in the same folder. If the file can't be renamed (for example, another program has it open) or the folder can't be written to, nothing is overwritten: the dialog tells you and asks again.

The same dialog appears after three wrong passwords for a protected configuration — see If you forget the password.

If there is no config.toml at all, that is a first run: Input.Observer creates a new one with the starter set and opens the welcome (First run).

Keeping the configuration somewhere else

You can keep your real config.toml in another folder — a synced folder, for example — and leave a pointer in the usual place. The pointer is a config.toml that contains only this:

[config_location]
path = "D:\\Sync\\Input.Observer\\config.toml"
  • A relative path is read from the folder the pointer file is in.
  • Everything that goes with the configuration (the files in the table above) then lives beside the target file, not beside the pointer.
  • Browse for a configuration file in the recovery dialog writes this pointer for you.
  • If the target doesn't exist, Input.Observer shows the recovery dialog at startup rather than starting with defaults. Reload Config keeps the running configuration and says the target is missing.
  • The pointer is never encrypted, and is never exported or imported.

Restart Input.Observer, or choose Reload Config from the tray menu, after changing the pointer.

Editing the file by hand

config.toml is a plain-text TOML file, and you can edit it with any text editor. Know these first:

  • A protected configuration can't be edited by hand. It is encrypted; remove the password first (Security).
  • Apply your edit with Reload Config from the tray menu, or restart Input.Observer. While the configuration window is open, it notices the file changed when you next save and asks whether to Reload (dropping your unsaved changes in the window), Overwrite the file, or Keep editing.
  • If Reload Config can't read the file, it tells you. The previous configuration stays in effect, and a Configuration Not Reloaded message names the line and column of the mistake, with the reason in English as the file reader reports it (Reload Config). Fix it and reload again. At the next start, the same mistake brings up the recovery dialog.
  • Input.Observer repairs what it can and tells you. An entry it can't use is skipped, and a value out of range is reset or limited. Each repair is listed in the console's System section, and the configuration window shows them as notes from the engine. A few serious cases also show a message at once.
  • Input.Observer may rewrite the file. When a setting it expects is missing, it writes the whole file back with every setting present, and comments you added are lost then. Keep notes elsewhere.
  • A file larger than 8 MB still runs, but the configuration window can't open it; Input.Observer warns at startup.
  • Make a copy before a large edit. The backups only cover changes made up to the last exit.
PreviousImport and exportNextPortable copy

Portable copy

A portable copy runs from any folder you choose, such as a folder in your user profile or a USB stick, without running setup and without administrator rights. It keeps its configuration and license in that folder.

The portable download is not signed. Use the setup program unless you need a copy that runs without installing.

The three ZIP files

The Portable section of the download page has up to three ZIP files for each version. Extract every one you use into the same folder.

ZIP file What it adds When you need it
Input.Observer-version-Portable.zip Input.Observer itself, the help, and portable.txt Always
Input.Observer-version-Portable-Extras.zip The configuration window, the styles plugin with its sounds, and Input.Observer.Trace.exe for recording a trace To change your setup in the configuration window rather than by editing config.toml, or to use styles
Input.Observer-Portable-DotNet-runtime version-win-x64.zip The .NET 10 Desktop Runtime, in a dotnet folder Only for the configuration window, and only if the .NET 10 Desktop Runtime isn't installed on the PC

Input.Observer and the Extras ZIP must be the same version. The .NET runtime ZIP is listed beside the version it goes with; several versions can share one.

Setting it up

  1. Download the ZIP files you need.
  2. Before you extract them, right-click each ZIP file, choose Properties, check Unblock and choose OK. Otherwise Windows marks every extracted file as downloaded, and warns about each program.
  3. Extract them into one folder.
  4. Start Input.Observer.exe.

The portable programs aren't signed, so the first start can show Windows protected your PC. Choose More info, then Run anyway.

The first start is a first run, the same as after setup: the license agreement, the activation window, then the configuration window's welcome. portable.txt beside Input.Observer.exe is what keeps the configuration in that folder (Where it is); the first start creates config.toml next to it with the starter setup. Leave portable.txt in the folder.

When the Extras ZIP is in the folder at the first start, the styles plugin is added then and draws trails, hints and messages. If you extract it later, add the plugin once yourself: on the Plugins page, which shows in Advanced mode, choose Add Plugin… and pick Input.Observer.Styles.exe in the folder (Adding a plugin). Then choose a style on the Appearance page.

What a portable copy can't do

  • Programs running as administrator. While a program running as administrator has the keyboard focus, gestures don't start there, text expansion and some hotkeys don't fire, and actions can't send keys or clicks into it (Programs running as administrator). Starting Input.Observer.exe itself as administrator lifts this, but then every action runs as administrator too.
  • Updates. Nothing updates a portable copy. To update it, extract the new version's ZIP files over the old ones while Input.Observer isn't running. Your configuration and license stay.
  • The .NET runtime ZIP isn't updated by Windows. When the download page lists a newer .NET runtime ZIP for your version, extract it over the old one, or install the .NET 10 Desktop Runtime from Microsoft instead.

When the configuration window doesn't open

Choosing Open from the tray menu checks the folder first, and says which ZIP file to extract:

Message Fix
The configuration window isn't in this folder. Extract the Extras ZIP for the same version.
The configuration window needs the .NET 10 Desktop Runtime. Extract the .NET runtime ZIP listed for your version, or install the .NET 10 Desktop Runtime.
The configuration window in this folder is version …, but Input.Observer is version …. Extract the Extras ZIP for Input.Observer's version. Yes opens it anyway, but settings may not load or save correctly.

Without the configuration window, Help opens the help in your web browser.

What it keeps outside its folder

The configuration, license, console settings, backups and recordings stay in the folder. A few things are kept in Windows or your user profile, the same as for an installed copy:

  • That you accepted the license agreement, and a record of the trial. Deleting the folder doesn't restart the trial.
  • The configuration window's own settings, such as its window position, and its browser cache, in %LOCALAPPDATA%\Input.Observer.
  • Start with Windows, only if you turn it on (General). If you move the folder, Input.Observer points it at the new location the next time it starts.
  • A Start menu shortcut named Input.Observer, created the first time an action shows a Windows notification. Windows needs it to show the notification.

Removing it

  1. Turn off Start with Windows if you turned it on.
  2. Choose Exit from the tray menu.
  3. Delete the folder.
  4. If you want them gone too, delete %LOCALAPPDATA%\Input.Observer and the Input.Observer shortcut in the Start menu.
PreviousThe configuration fileNextConsole

Console

The console is the engine's own window for diagnosing and trying things out. It shows what the engine reports (problems in your configuration, scripts that failed, plugins that fell back), shows what your scripts print, and has an editor where you can write and run a script on the spot.

Opening the console

Choose Show Console from the tray menu (The tray icon), or run the UIShowConsole builtin from an action — for example, bind it to a hotkey. Nothing opens the console automatically unless you ask for it with On Message (below).

If your configuration is password-protected, the console asks for the password when it opens, unless it is still remembered (Security). While the console is open, the remembered password doesn't run out. UIShowConsole waits until the console is open, including while the password is asked for, and gives false if it didn't open, for example because the password prompt was cancelled.

The console is closed with its close button. Closing it frees the memory it used.

The three sections

The buttons across the top ① switch between three sections, each with its own toolbar.

Section What it shows Toolbar
System What the engine reports: notes about your configuration from the last load, actions and scripts that failed and why, a plugin that couldn't draw so the built-in drawing took over, and similar. Copy, Clear, On Message
User Everything your scripts print with UtilityPrint, from every action. Copy, Clear, On Message
Script A script editor above an output pane. Execute, Stop All, Hide Console, Script Help, Copy, Paste, Clear

Copy copies the selected text, or the whole section when nothing is selected. Clear empties the section.

The console never shows mouse or keyboard events. For a detailed record of what the engine decides while you reproduce a problem, see Recording a trace.

While the Script section is showing, new System and User lines also appear in its output pane, so you can watch a running script without switching sections.

While the console is closed

Lines that arrive while the console is closed aren't lost: they are kept in temporary files and shown the next time you open the console. When Input.Observer exits, they are deleted, except what the Engine shutting down event prints, which the next session's console shows.

On Message ① on the System and User toolbars chooses what a new line does while the console is closed:

Choice What happens
Do Nothing The line waits until you open the console. The default.
Show UIShowMessageBox The line also pops up in a message box.
Open Console The console opens on that section.

With the console open, a new line is simply added; it never pops up a box or switches sections. The same choices are on the Console page as New System messages and New User messages.

Running a script

  1. Open the console's Script section.
  2. Type or paste a script in the editor. It uses Input.Observer's script language (Script language).
  3. Choose Execute ② or press F5. With text selected, only the selection runs; otherwise the whole editor runs.
  4. The output and any error appear in the output pane under the editor. Hide Console hides or shows that pane.
  • A script run here works like an action: every builtin is available, and it runs until it finishes or is stopped. Stop All stops every running script and action, not just this one.
  • This is the one place scripts run in Safe Mode, so you can inspect and repair things while nothing else runs (Troubleshooting).
  • The editor completes builtin names as you type; Ctrl+Space lists everything, and typing an area name and a period lists that area's builtins. After you choose a builtin, a tip shows its parameters, with the current one highlighted. The right-click menu has Comment and Uncomment for the selected lines.
  • The editor's text is kept between sessions in console.toml.

Script Help ③ opens the script language reference in the help window (The help window), in the language Input.Observer uses (or English when there is no help in that language).

The Console page

Advanced mode. The Console page is hidden in Simple mode. Its settings stay in effect.

The Console page in the configuration window holds the console's settings. They take effect when you choose Apply or Save and close.

Setting What it does Default Range
Console line limit Once a section holds this many lines, the oldest are dropped as new ones arrive. 0 keeps everything. Takes effect with the next line. 5000 lines 0–1000000
Free memory when the console closes Gives the console's memory back to Windows as soon as you close it. The next mouse or keyboard event after that can be very slightly slower. On On or off
New System messages What a new System line does while the console is closed: Nothing, Message box or Open console (same as On Message above) Nothing —
New User messages The same for User lines Nothing —
Engine window font Font and size for the console's labels and buttons and for the engine's dialogs (password, license) Segoe UI, 12 pt 6–72 pt
Engine editor font Font and size for the console's sections and its script editor Consolas, 13 pt 6–72 pt

An open console keeps its fonts until you close it and open it again.

PreviousPortable copyNextAbout and license

About and license

The About page shows which version of Input.Observer you have, the state of your license, the open-source software it includes, and the license agreement. Nothing on it is part of your configuration: there is nothing to apply or discard.

The About page

Card What it holds
Version The version number, with Copy, which copies the full version including the build number — useful for a bug report. Visit website opens Input.Observer's website, https://input.observer, in your browser. Show welcome opens the welcome again ("The welcome" below). The copyright notice is underneath.
License Status: "Trial — n days remaining", "Licensed to" your email, or "Trial expired". Apply license key… and Buy a license, which opens the pricing page, https://input.observer/pricing, in your browser.
Third-party software Every open-source component Input.Observer includes, with its license. View third-party notices… shows each component's full license and copyright text.
License terms The end user license agreement you accepted, to read or copy.

Input.Observer never connects to the internet itself. The website and store buttons open pages in your browser; checking a license key happens entirely on your computer.

The trial

Input.Observer works fully for 30 days without a license. During the trial, every time it starts it shows "i.o - Activate License" with the days left: choose Continue Trial to carry on, or enter your license (below) and choose Activate. When the trial has ended, the choices are Activate or Exit: Input.Observer doesn't run until a license is active.

Entering a license key

A license is your email address and a license key of the form V1-XXXXX-XXXXX-XXXXX-XXXXX. The key only works with the email address it was issued for.

  1. On the About page, choose Apply license key… ①. The tray menu's Apply License Key... opens the same kind of dialog ("The tray's dialog" below).
  2. Enter your Email and License key exactly as you received them. Upper or lower case doesn't matter in the key.
  3. Choose Activate.

While a license is active, the dialog opens filled in with it, ready for you to type a new key over it. If something goes wrong, the dialog stays open and says why:

Message What it means
"That email and license key don't match." A typing mistake in either field, or a key issued for a different email.
"That license key is valid, but not for this version." The key is for a different major version of Input.Observer.
"Your license file is password-protected, so saving the new license needs your config password." Your files are password-protected (Security). Input.Observer asks for the password and tries again.
"Your license file could not be read. It may be corrupted." The protected license file is damaged. Nothing is written over it. Restore license.dat from a copy, or delete it, then activate again.
"The key is valid, but the license file couldn't be saved, so nothing was activated." The configuration folder can't be written to. Fix that, then try again.

The tray's dialog

The tray menu's Apply License Key... opens "i.o - Activate License" with Activate and Cancel. Its status line depends on your license:

  • During the trial, it shows the days left in your trial, as at startup, or that the trial has ended.
  • While a license is active, it says the new key replaces the one in use, and the License Key field is selected, ready for you to type over it.

A key that doesn't match its email, or isn't for this version, is reported in the dialog and you can try again. When the key is saved, "i.o - License Applied" confirms it.

The license is kept in license.dat beside your configuration file (The configuration file), never in config.toml, so it is never part of an export or a shared configuration. Styles you buy are tied to your license's email (Appearance).

The license agreement

The first time you start Input.Observer (or during setup), it shows the license agreement, "i.o - License Agreement". Its first section explains, in plain language, that Input.Observer acts on your computer for you — sending keys and clicks, closing windows, running programs — and that you are responsible for what you set it up to do. Choose I accept to continue, or Decline, which closes Input.Observer.

You accept once for each Windows user account. If the terms change in a later version, you are asked again. The agreement is in English in every language Input.Observer offers; the buttons and the introduction around it are in your language. You can read it at any time on the About page under License terms.

Third-party notices

Input.Observer includes open-source components. Their licenses and copyright notices are on the About page (View third-party notices…) and in the file ThirdPartyNotices.txt beside the Input.Observer program.

The welcome

Show welcome (also on the ⋯ menu in the title bar) opens the welcome you saw on the first start. It covers drawing a gesture, finding the tray icon, the hotkey that stops a runaway action, and Safe Mode. Get started closes it and opens the Actions page.

The choice of a starter set — keeping the ready-made gestures and actions or starting from scratch — appears only on the very first start, while the starter set is still in place. See First run.

PreviousConsoleNextTroubleshooting

Troubleshooting

Start with the tray icon: its tooltip says what state Input.Observer is in (The tray icon), and the console's System section says what went wrong (Where to look).

Nothing happens when I draw a gesture

No trail appears and the button behaves as if Input.Observer weren't there.

Cause How to tell Fix
Input.Observer isn't running No tray icon (check the hidden icons too) Start Input.Observer from the Start menu (It doesn't start)
It is switched off Tooltip "i.o - disabled" Tick Enabled in the tray menu
The program in front pauses everything Tooltip "i.o - auto-disabled (…)" naming the group That app group has Pause everything while focused on (App groups)
The window is in an ignore group Only in some programs Check Ignore groups (Ignore groups)
Safe Mode Tooltip "i.o - Safe Mode (restart to resume normal operation)" Restart Input.Observer without holding Ctrl (Safe Mode)
The stop-all hotkey was pressed, or too many actions ran at once Everything stopped at once, hotkeys too Choose Reload Config from the tray menu (General)
You held an ignored modifier key Happens only while you hold Ctrl (the default) That is what the key is for (General)
You used a button that isn't a draw button Only the right button draws by default Choose the buttons under Draw buttons on the General page
The program's app group has Draw buttons start gestures here off Only in that group's programs; the draw key still draws there Turn the switch on in App groups (Advanced mode), or draw with the draw key (App groups)
The draw key doesn't draw On a Japanese keyboard, Caps Lock can't draw. Over a Remote Desktop or virtual machine window, the remote program may take the key Pick another key under Draw key on the General page (The draw key)
The pointer is in an exclusion zone Only in one area of the screen Check Exclusion zones (Exclusion zones)
A program running as administrator is in front Only while such a window has the focus See Programs running as administrator
The window belongs to no app group and Fall back to Global is off Only in programs without their own group Turn Fall back to Global on (General) or add a group (Scope and fallback)
Another program sent it while a sandboxed program's window was in front Only for input another program sends See Input other programs send

The trail draws but no action runs, or the wrong one

  • Watch the hint. While you draw, the hint names the action the stroke matches. No hint means no match. Hints and messages lists when it appears.
  • The stroke isn't close enough to the saved gesture. Practise it, add another example of it, or make matching more forgiving on the Gestures page (Matching).
  • The action doesn't apply here. It may be in another app group, limited to some screen regions, limited to a gesture profile that isn't active, or switched off (Scope, Profiles, Regions).
  • The action ran but did nothing visible. Open the console: a script that failed says why in the System section. Keys an action sends go to the window in front; Activate the window under the gesture (General) brings the window you drew over to the front first. A program running as administrator may not accept them (below).
  • The gesture was cancelled. If you pause with the button held for longer than the Cancel timeout (half a second by default), the gesture is cancelled and the press goes to the window (General).

A right-click feels late or doesn't work in a program

While the right button is a draw button, Input.Observer holds each right-button press until it knows whether you are drawing. If you release it without moving more than Minimum gesture movement (5 pixels), the press and release are handed to the window as an ordinary click. So:

  • Context menus open when you release the button, not when you press it. This is expected.
  • Right-button dragging in a program (a game, a design program, dragging files with the right button) becomes a gesture instead. Any of these fixes it:
    • hold Ctrl (an Ignored modifier key) while you press the button;
    • press the button and hold the pointer still for the Cancel timeout (half a second by default) before you drag: the press is then handed to the program;
    • put the program in an ignore group (Keep a program out), or ignore it only while it runs full screen (Ignore groups).
  • Remote desktop and virtual machine windows (Remote Desktop, Hyper-V, VMware, VirtualBox, TeamViewer, AnyDesk, Parsec) are ignored by the starter set, so the computer inside gets the right button untouched.

A hotkey doesn't fire

  • Another program already uses the key combination. A hotkey reserved with Windows can be held by only one program. The action shows "Windows or another program already uses these keys". Choose another combination, or close the other program and choose Reload Config from the tray menu (Hotkeys).
  • The hotkey belongs to another app group. It works only in windows of its group (or everywhere, from Global, unless a group overrides it).
  • The hotkey uses the draw key. Where gestures work, pressing the draw key starts a gesture instead, so the hotkey runs only where gestures don't. The action shows This key is the draw key. Choose another key, or another draw key on the General page.
  • The window in front is ignored or pauses everything.
  • A gesture, a macro recording or gesture training is in progress. Hotkeys don't fire during them. The stop-all hotkey is the exception: it always works.
  • The window in front runs as administrator (below).
  • Another program sent the keys while a sandboxed program's window was in front (below).
  • Safe Mode, or Input.Observer is switched off. No hotkeys are registered then.

Text expansion doesn't fire in a program

  • Text expansion is off, or the key that should end the abbreviation (Space, Tab or Enter) isn't enabled: see the Settings tab of Text expansion (Text expansion).
  • The abbreviation belongs to another app group, or the window is ignored.
  • The program runs as administrator (below).
  • A Japanese, Chinese or Korean input method is turned on. Text doesn't expand while it is; switch it to direct input (Text expansion).
  • The text comes out scrambled or with characters missing. Raise Typing delay on the Scripts page (Script settings).

Programs running as administrator

Windows keeps ordinary programs from reading input to, or controlling, a program that runs as administrator. Installed with its setup program and started from its installation folder, Input.Observer is allowed to work with such programs. A copy started from anywhere else is not: while a program running as administrator has the keyboard focus, gestures don't start, keys you type there don't reach Input.Observer (so text expansion and some hotkeys don't fire), and actions can't send keys or clicks into it. The tray icon's menu may not open either.

  • Click the taskbar or any ordinary window, and Input.Observer works again.
  • To work with administrator programs, install Input.Observer with its setup program and start it from the Start menu. A portable copy always has this limit.

Input other programs send

Gestures, hotkeys and abbreviations that another program sends for you — AutoHotkey, a keyboard-and-mouse sharing program, a remote-control program — work like your own. The exception is while a window of a sandboxed program (one Windows runs with fewer rights than your ordinary programs) is in front: then Input.Observer passes input that programs send straight on to that window, so a sandboxed program can't use it to run your actions. Your own mouse and keyboard always work. Click an ordinary window, and input from other programs works again.

Input.Observer doesn't start

What you see Cause Fix
"Input.Observer is already running." Another copy runs in your session. Look for its icon in the notification area.
The password prompt, then nothing after Cancel Your configuration is protected; it can't start without the password. Start it again and enter the password (Security).
"Input.Observer can't load your configuration" The configuration file is broken or missing. Choose one of the dialog's options (Recovery).
The license agreement, then nothing after Decline The agreement must be accepted. Start again and choose I accept (About and license).
"Your 30-day trial has ended." The trial is over. Enter a license key, or choose Exit (About and license).
A message naming a Windows version Input.Observer needs Windows 10 version 1809 or later. Update Windows.
Windows protected your PC, for a portable copy The portable programs aren't signed. Choose More info, then Run anyway (Portable copy).
It starts, then something in your configuration hangs or misbehaves at once A Config loaded event or an action Start in Safe Mode and fix it (Safe Mode).

The configuration window can't connect

The configuration window needs Input.Observer running.

  • "Input.Observer isn't running" when you open it: start Input.Observer, then open the window from its tray icon.
  • "The configuration window couldn't connect to Input.Observer": Input.Observer didn't answer. Choose Try again once it runs.
  • "Engine not reachable — retrying" in the window's status bar: Input.Observer stopped answering while the window was open. Your edits stay; saving is unavailable until it answers again, and the window keeps trying. If you close the window meanwhile with unsaved changes, Save to file… keeps them in a file you can refer to later; it can't be imported.
  • A configuration file larger than 8 MB can't be opened in the window; Input.Observer warns about it at startup.

A plugin doesn't start, or the trail looks plain

  • The Appearance page says at the top when the renderer isn't drawing and why, with Restart when it stopped (Appearance). Meanwhile the classic trail, hint and message window draw.
  • On the Plugins page (Advanced mode), check the plugin's status. Not in use is normal for a drawing plugin that isn't the renderer. Auto-disabled -- failed to start and Closed by the plugin need Retry (Plugins).
  • No plugin runs in Safe Mode.
  • A style you chose draws Neon glow instead: the style is locked, for example because the license changed (Appearance).

Drawing makes a full-screen game or video stutter

Turn on Keep the drawing layer behind windows between gestures — in Customize… for the Styles plugin, or on the Trail options tab for the classic line — or put the game in an ignore group that applies only while it runs full screen (Keeping trails light).

Safe Mode

Safe Mode starts Input.Observer with nothing that could cause trouble running, so you can fix your configuration.

  1. Exit Input.Observer (tray menu, Exit).
  2. Hold Ctrl while you start it, and keep holding until "Start Input.Observer in Safe Mode?" appears.
  3. Choose Yes.

In Safe Mode there are no gestures, hotkeys or text expansion, no plugins, and none of your actions or Config loaded / Engine shutting down scripts run. You are still asked for your password and license as usual. The tray icon shows Safe Mode, and the configuration window works normally, so you can change whatever caused the problem and save it. Scripts you run yourself in the console's Script section do run.

Safe Mode lasts until Input.Observer restarts; holding Ctrl at startup is the only way in.

Recovering from a bad change

  • Still in the configuration window: Discard puts back everything since the window opened, including changes you already applied.
  • An action is running wild: press the stop-all hotkey, Ctrl+Shift+Alt+F9 by default (General). Then fix the action and choose Reload Config.
  • It misbehaves as soon as it starts: use Safe Mode.
  • Go back to an earlier configuration: restore a copy from the Backup folder (Backups).
  • You edited config.toml by hand and Reload Config shows Configuration Not Reloaded: the previous configuration is still in effect. The message says why: a mistake at a given line and column, a file that can't be opened, a file protected with a password, or a pointer to a file that doesn't exist (Reload Config, Editing the file by hand).

Where to look

  • The console's System section (tray menu, Show Console) lists what the engine noticed: problems in your configuration, actions and scripts that failed and why, the renderer being unavailable. Lines that arrived while the console was closed are shown when you open it (Console).
  • The configuration window shows "n notes from the engine about this configuration" above the save bar, with Show, whenever Input.Observer repaired or has advice about your configuration.
  • What your scripts print with UtilityPrint is in the console's User section.
  • Input.Observer writes no log files. For a bug report, copy the version from the About page (Copy) and the console's text. When that isn't enough to find the cause, support may ask you for a trace (Recording a trace).

Recording a trace

A trace is a detailed record of what the engine decides while you reproduce a problem: why a press started a gesture or was passed to the window, which action matched, what a script did, why a plugin stopped. The setup program installs a second copy of the engine for this, Input.Observer.Trace.exe, next to Input.Observer.exe; a portable copy gets it from the Extras ZIP. It uses your configuration, license and plugins, and works like Input.Observer in every other way.

  1. Exit Input.Observer (tray menu, Exit). Only one copy can run at a time.
  2. Open the installation folder, C:\Program Files\Input.Observer (for a portable copy, its own folder), and start Input.Observer.Trace.exe.
  3. In i.o - Trace Categories, choose the areas to record, then OK. The first time, every area except Input Hooks (very detailed) is ticked; keep that unless support names other areas. The window remembers your choice for the next run.
  4. Reproduce the problem. Note the time, so the lines that matter are easy to find.
  5. Exit the trace copy (tray menu, Exit), and start Input.Observer again from the Start menu.

Each run writes a file, Trace-<date>-<time>.log, in the Logs folder next to your configuration file (%APPDATA%\Input.Observer\Logs unless you moved it: The configuration file). The file starts with a short summary for support: the Input.Observer and Windows versions, the display language, whether it runs as administrator, where the configuration is, and the areas recorded. When a file reaches 50 MB, the run continues in Trace-<date>-<time>-2.log, then -3, and so on.

  • Pick only the areas you need. Input Hooks (very detailed) records every mouse movement and every key you press, including what you type into password boxes. Tick it only when support asks for it, and don't type anything private while it records.
  • Never in a trace without Input Hooks: passwords you give Input.Observer, license keys, the text that text expansion types or replaces, clipboard contents, the titles of other programs' windows. Program names and window class names are recorded.
  • Check before you share. A trace is plain text. File paths in it include your Windows user name, and the names of your actions, app groups and scripts appear in it. Read it, and remove anything you'd rather not share, before you post or send it.
  • It stays on your PC. Nothing is sent anywhere; the files are yours to delete. The Logs folder keeps the 20 newest trace files: when a new one starts, the oldest are deleted, so copy a trace elsewhere to keep it.
  • Skip the window next time: clear Show this window at every launch, and the trace copy records the same areas at every start. To see the window again, delete trace.toml, next to the configuration file.
  • Don't keep it running. The trace copy works normally, but writes to disk all the time, and with Input Hooks (very detailed) ticked it fills file after file quickly. Start with Windows always starts the ordinary copy.
PreviousAbout and licenseNextSteps

Steps

Steps is the way to build what an action does without writing code. An action written as Steps is a list: each row is one thing to do, such as Send keys, Type text or Wait, with its details filled in below it. When the action runs, the steps run from top to bottom.

This action opens a new browser tab, waits for it, types a search and presses Enter.

Who Steps is for

Steps is for everyone who doesn't want to write a script. You pick steps from a list, fill in fields, and the editor checks what you type as you go. The most common steps are one click away as chips, and every builtin, variables, conditions and loops are there too, in Simple and Advanced mode alike.

The same Steps editor is used wherever Input.Observer runs something: an action on the Actions page, a snippet, an app group's before and after scripts, the global events, the Macro recorder and the Sandbox.

Steps and Script

Steps and Script are two ways to write the same thing. A step calls one of Input.Observer's builtins, the same builtins a script calls, and follows the same rules for values. The differences:

  • Steps has no arithmetic and no building text from pieces. A step's field holds a value, a variable or one of a fixed set of readings such as Target window, never a calculation.
  • Steps has Repeat while…, Repeat until…, Exit the loop and Stop the steps, which Script doesn't.
  • A list of steps can be translated into a script, but not the other way.

When your action outgrows Steps, see From Steps to Script. The Script language reference covers the script language and every builtin.

In this section

Page What it covers
The Steps editor The step list, the selected step's fields, and what Simple and Advanced mode show.
Adding and arranging steps Adding steps, and moving, removing and expanding them.
Step parameters Filling in a step's fields, and keeping its result.
Variables Keeping a value in one step and using it in a later one.
Conditions Running steps only when something is true.
Repeating steps Running steps a number of times, while or until something is true.
Worked recipes Complete actions, one step at a time.
From Steps to Script When to switch, the code view, and translating steps.
Problems the Steps editor reports Every message the editor shows, and how to fix it.

Try steps safely on the Sandbox page before you give them a trigger. It runs them against pretend windows and replays what happened.

  • The Steps editorThe step list, the selected step's fields, the chips that add steps, and what Simple and Advanced mode show.
  • Adding and arranging stepsThe chips that add steps, the list of all builtins, where a new step lands, and moving and removing steps.
  • Step parametersThe fields of a step: what each kind accepts, choosing a value from the menu, the checks as you type, and keeping a step's result.
  • VariablesSave a value in one step and use it in a later one: Save result as, Set variable, the four value types, and naming rules.
  • ConditionsRun steps only when something is true: If and If… otherwise… blocks, the three kinds of condition, reversing a condition, and stopping early.
  • Repeating stepsRun steps a number of times, while a condition holds or until it does, and leave a repeat early.
  • Worked recipesComplete actions built from steps: close a tab, type a signature, zoom with the wheel, middle-click with two buttons, move a window to the next screen, maximize or restore, media keys, and more.
  • From Steps to ScriptWhen an action outgrows Steps, the code view that shows steps as text, and translating steps into a script.
  • Problems the Steps editor reportsEvery message the Steps editor shows: what causes it and how to fix it.
PreviousTroubleshootingNextThe Steps editor

The Steps editor

The Steps editor has three parts, top to bottom: the step list, the fields of the selected step (open inside the list), and the ADD A STEP chips.

The step list

Each row ① is one step. From left to right a row shows:

  • a drag handle, for moving the step;
  • its number, counting from 1;
  • a bar for each block it sits inside, when it is inside an If or a Repeat block (Conditions, Repeating steps);
  • its name, such as Move window to monitor (a rarely used builtin with no plain-language name shows its own name, such as WindowGetClassName);
  • a short summary of its fields, such as "Target window, Off". A step that keeps its result ends with "→ $name";
  • a warning chip, when there is something to fix.

Otherwise, End if and End repeat rows are markers: they are shown in lighter text and have no fields and no drag handle. When the list has no steps, it says No steps yet. Add one below.

Click a row to select it: its fields open under it ②. Click the selected row again to close it. Only one step is open at a time.

The selected step's fields

The open step shows one field per detail the step needs, labelled in plain words, such as Window or Move the mouse with it. Each field checks what you type as you type it and shows a message under it when something is wrong. Remove at the bottom deletes the step.

Step parameters describes every kind of field.

Adding steps

The ADD A STEP chips ③ add a step just below the selected row, or at the end when no row is selected. Six add the most common steps: Send keys, Type text, Click, Move window, Show a notification and Wait. All N builtins… adds any other step, Set variable stores a value, and If / loop adds a condition or a repeat. See Adding and arranging steps.

Simple mode and Advanced mode

Both modes offer every kind of step and every field, including Save result as. Simple mode hides only what a script writer needs:

Advanced mode. Advanced mode adds:

  • The builtin's name at the right of every row, such as WindowSendToNextMonitor. This is the name a script uses.
  • Signature help under the open step's fields: the builtin as a script would write it, with a sentence on what it does.
  • View code at the end of the editor: the steps as text (From Steps to Script).

Expanding the editor

The button at the top-right corner of the block (Expand) makes the editor fill the page, so a long list has room. The Written as switch stays on top. Click the button again (Collapse) or press Esc to return. Leaving the page also collapses it.

Saving

Every change is written into the action as you make it, and counts as an unsaved change in the configuration window until you apply it (The configuration window). A change that can't be written, such as a field that still holds a builtin call, shows Steps not saved: and the reason, and the action keeps its last good steps until you fix it (Problems).

PreviousStepsNextAdding and arranging steps

Adding and arranging steps

The ADD A STEP chips

The chips under the step list add steps. The first six each add one common step:

Chip Adds What the step does
Send keys Send keys Presses a key combination, such as Ctrl+T.
Type text Type text Types text as if it were typed on the keyboard.
Click Click Clicks a mouse button at a point on the screen.
Move window Move window to monitor Moves a window to the next screen.
Show a notification Show a notification Shows a Windows notification with a title and a message.
Wait Wait Pauses for a number of milliseconds.

Three more chips follow, in Simple and Advanced mode alike:

  • All N builtins… opens the list of every builtin (All builtins).
  • Set variable adds a step that stores a value under a name (Variables).
  • If / loop opens a menu of blocks: If…, If… otherwise…, Repeat a number of times, Repeat while…, Repeat until…, Exit the loop and Stop the steps (Conditions, Repeating steps).

Where a new step goes

Every chip adds just below the selected row and selects the new step, so you can fill it in at once. With no row selected, the new step goes at the end.

  • Select an If or Repeat row, or an Otherwise row, to add inside that block.
  • Select an End if or End repeat row to add after the block.
  • A block is added whole: If… adds an If row and its End if, If… otherwise… also adds Otherwise between them, and a repeat adds its End repeat. The opening row is selected, so the next step you add goes inside.
  • Exit the loop can only be added inside a repeat. Elsewhere it is unavailable in the menu.

All builtins

All N builtins… (N is how many there are) opens a list of every builtin, from Input.Observer and from running plugins. Each one shows the name a script uses, followed by its plain-language name where it has one, such as WindowMaximize Maximize window. The step it adds shows the plain-language name.

  1. Type in the search box ①. Every word you type must appear in a builtin's name, its plain-language name, its area or its description. The list ② shows the matches grouped by area (builtins with no area are under Other), with a count of how many match out of all of them.
  2. Use Up and Down to move through the list while typing. The highlighted builtin's signature and description show under the list.
  3. Press Enter, double-click the builtin, or click Add step ③. Esc or a click elsewhere closes the list without adding anything.

The builtins themselves are documented in Builtin signatures.

Moving steps

  • Drag a row by its handle to a new place. A line shows where it will land.
  • Or select a row and press Alt+Up or Alt+Down.

An If or Repeat row moves together with its whole block, everything inside it included. Otherwise, End if and End repeat rows only move with their block. Any other step moves freely into and out of blocks.

The editor doesn't check that a step which saves a variable stays above the steps that use it. After moving steps, check that each variable is still saved before it is used (Variables).

Removing steps

Click Remove in the open step, or press Delete while a row (not a text field) has the focus.

  • Removing an ordinary step removes just that step.
  • Removing an If or Repeat row, or its End if or End repeat, removes the block's marker rows but keeps the steps that were inside; they move one level out.
  • Removing an Otherwise row keeps its steps; they join the part that runs when the condition is true.

Turning a step off, or copying it

Steps can't be turned off or duplicated one by one. To try an action without one step, remove the step and add it back later, or turn the whole action off with Enabled. To repeat a step, add it again from the chips.

PreviousThe Steps editorNextStep parameters

Step parameters

When you select a step, its fields open under it, one per detail the step needs. Each field is labelled in plain words. Point at a field to see a tooltip saying what it is for.

Kinds of field

Field Looks like Accepts
Text a text box any text
Whole number a text box a whole number, such as 250 or -3, a hexadecimal number starting with 0x, such as 0xB3, or a named constant, such as VirtualKey.MediaPlayPause
Number a text box a number with a period as the decimal point, such as 0.5, whatever your regional format
True or false a switch on (true) or off (false)
A choice of named values a drop-down ② one of the listed names, such as MouseButton.Primary; you can also type in it
Window a text box a window from the value menu or from a variable, normally Target window
Keys (Send keys) a key capture box the key combination you press

In every kind of field you can also type $ and a variable's name to use a value an earlier step saved (Variables).

A number in a step's field always uses a period as the decimal point and no thousands separators, whatever your regional format.

Named constants

A Whole number or Number field also takes a named constant: a namespace, a dot and a name, such as VirtualKey.MediaPlayPause or AudioEndpoint.Playback, the same names a script uses (Named constants). Type it exactly, with the same capitals and no spaces. The step saves the name and the action uses its number when it runs. A Text field keeps such a name as the text you typed.

The Keys field

Send keys has a capture box instead of a text box. Click it (Click to set a shortcut), then press the combination. Only the combination is recorded; nothing is sent while you set it. Keys that a key combination can't name, such as media keys, are refused with a message. To press those, use the Press and release key step (KeyboardPressKey) with the key's name, such as VirtualKey.MediaPlayPause (Worked recipes).

New steps start filled in

A new step's Window fields start as Target window: the window the gesture was drawn over, or the window with the focus for a hotkey or typed text. Its switches start off. Every other field starts empty, for you to fill in.

Choosing a value from the menu

Every field except Keys and the switches has a small arrow at its end (Choose a value). It opens a menu of values that fit the field ①. Besides a step's own fields, the menu is on a condition's Value and Compared with fields and its single Value (Conditions), a repeat's Times (Repeating steps) and a Set variable step's Value (Variables).

Section Values
From what started the action Target window, Target control, Gesture name, Action name, App group name, Gesture button, the gesture's Gesture left edge, Gesture top edge, Gesture width and Gesture height, a wheel event's Wheel turn and Sideways wheel, and a mouse-button or wheel event's Event X position and Event Y position
Read when the step runs Active window, Mouse X position, Mouse Y position, Clipboard text, Current date and time
Saved by earlier steps the variables that steps above this one save

The menu lists only values of the field's kind: a Number field also takes whole numbers, and a field that accepts anything takes them all. Times offers only whole numbers; a condition's fields and a Set variable value offer every reading. When nothing fits, the menu says Nothing to choose for this field.

A chosen value shows as a chip with its name in place of the text box. Point at the chip to see what it is and how a script writes it. Its Clear button empties the field so you can type again.

The values under From what started the action read the trigger. Every value is offered wherever steps run, because a snippet can be called from anywhere; a value the trigger doesn't have reads as empty or 0, except as noted below.

  • Gesture name and the gesture's edges, width and height read a drawn gesture. For any other trigger they are empty or 0.
  • Gesture button is the mouse button that drew the gesture, or that fired a mouse-button global event, such as MouseButton.Secondary. It is -1 for a gesture drawn with the draw key and for any other trigger.
  • Wheel turn and Sideways wheel read a wheel global event. Wheel turn is 120 for each notch of an ordinary wheel (smooth-scrolling wheels and touchpads send smaller steps): above 0 when the wheel turns away from you or to the right, below 0 toward you or to the left. Sideways wheel is true when the tick came from the horizontal wheel. Outside a wheel event they are 0 and false.
  • Event X position and Event Y position are where the pointer was, in screen pixels, when a mouse-button or wheel global event fired; for Draw button released, where the button was let go. For any other trigger, a gesture included, they are 0.

On a switch, a variable you typed earlier shows as a chip; clearing the chip turns the switch off.

Checks as you type

Each field is checked as you type. A problem shows in red under the field and the field's border turns red:

Message Meaning
This value is required. A Set variable step's variable name is empty.
Enter a whole number (decimal or 0x hex), a named constant, or a $variable. A Whole number field holds something else.
There's no named constant with this name. Check the spelling and capitals, as in VirtualKey.MediaPlayPause. A Whole number or Number field holds a namespace, a dot and a name that isn't a named constant.
Enter a number, or a $variable. A Number field holds something else.
Enter true or false, or a $variable. A true-or-false field typed as text holds something else.
A step can't run a builtin inside an argument. Move it into a variable first. The field holds a builtin call with something in its parentheses (below).

While a field holds typed text that fails its check, such as letters in a Whole number or Number field, a name that isn't a named constant, or anything but true or false in a true-or-false field, the steps aren't saved: the action keeps its last saved steps, and Steps not saved: step N has a field that isn't valid shows under the list until you fix the field (Problems).

An empty field shows no message and never blocks saving; the steps are saved with the field empty. When the action runs, a step with an empty number, true-or-false or window field stops the action there, and the console's System output says that argument has the wrong type. An empty Text field runs as empty text, which for some builtins (a file name, a window title to find) means the step does nothing.

Move into a variable

A field holds a value, a variable, or one of the readings in the value menu, never a builtin call with arguments. If you type one, such as WindowGetTitle($w), the field offers Move into a variable. It adds a step just above this one that runs the call and saves the result under a name taken from the field (such as window, then window2), and puts that variable in the field.

A call with nothing in its parentheses, such as ClipboardGetText(), is fine: it is the same as choosing that reading from the value menu. That holds in every field that has the value menu, a condition's fields, Times and a Set variable value included.

Keeping a step's result

Most builtins give a result: the text they read, the window they found, or whether they worked. Save result as ③ keeps it under a name, so later steps can use it as $name. Leave it empty to ignore the result.

A step that keeps its result shows "→ $name" at the end of its summary. Names follow the rules in Variables.

Wrong kinds at run time

The editor checks the shape of what you type, not every rule of the builtin. When the action runs, a value of the wrong kind (for example a variable holding text where a builtin needs a whole number) or a value the builtin refuses stops the action with an error in the diagnostic console. See Errors.

PreviousAdding and arranging stepsNextVariables

Variables

A variable is a value saved under a name. One step saves it; later steps use it by writing $ and the name in a field, or by choosing it under Saved by earlier steps in the value menu (Step parameters).

Saving a step's result

Fill in Save result as on a step to keep what it gives back. This is the usual way to get a value: the window a step found, the text it read, the answer someone picked.

The first step reads the clipboard and saves the text as copied. The second shows it in a message box.

Setting a variable

The Set variable chip adds a step that stores a value you type. It has three fields:

Field What it holds
Variable The name. A new step gets a free name such as value or value2.
Value The value, $ and another variable's name to copy that variable, or a reading from the value menu (Step parameters), such as Clipboard text.
Type Text, Whole number, Number or True or false. Hidden while Value holds a reading.

The type is what you choose, not what the value looks like: with Text, 42 is the text "42", not the number 42. Text may be empty; the other types need a value, checked as for any field (Step parameters).

A reading stores what it reads when the step runs, with that reading's own type, so there is no Type to choose. Typing the reading's script name with empty parentheses, such as ClipboardGetText(), is the same as choosing it, whatever the type. A Text value that is a builtin call with something in its parentheses, such as WindowGetTitle($w), is stored as those characters and not run; the form says so. To keep such a call's result, use Save result as on that builtin's step instead.

Setting a variable that already exists replaces its value.

The value types

Every value has one of these types. The editor's words, and the script reference's:

In the editor In the script reference Examples
Text Text Notepad, an empty text
Whole number Integer 0, -12, 0xB3, VirtualKey.F5
Number Real 0.5, 2.0
True or false Bool on / off, true / false
a window Window Target window, a window a step found

A window can't be typed; it comes from the value menu or from a step's result. How each type counts as true or false in a condition is in Value types.

Names

A variable name:

  • uses letters, digits and _, and doesn't start with a digit;
  • is not if, else, for, true or false;
  • is case-sensitive: Window and window are two variables.

A $ you type at the start of a name is dropped, so $count and count name the same variable.

Rules to know

  • Order matters. A variable exists from the step that saves it onward. The editor doesn't check that a variable is saved before it is used, or that moving steps keeps the saving step above. A variable that was never saved reads as the whole number 0.
  • Variables last for one run. Each time the action runs, it starts with no variables. To keep a value across runs and restarts, use the Keep value across restarts and Get kept value steps (from All N builtins…; see How scripts run).
  • A snippet has its own variables. A snippet called from an action can't see the action's variables, and the action can't see the snippet's.
  • There is no arithmetic. A field takes a value or a variable, never a calculation such as $count + 1. For that, use Script (From Steps to Script).
PreviousStep parametersNextConditions

Conditions

A condition lets an action decide. An If block runs the steps inside it only when its condition is true; an If… otherwise… block runs one set of steps or the other.

Adding an If block

  1. Select the step the block should follow (or no step, to add it at the end).
  2. Click If / loop and choose If… or If… otherwise….

If… adds two rows, If and End if. If… otherwise… adds If, Otherwise and End if. The If row is selected, so the next step you add goes inside the block. Steps between If and Otherwise run when the condition is true; steps between Otherwise and End if run when it is false. Then the action continues after End if.

Blocks can sit inside other blocks. There is no "otherwise if": put another If block inside the Otherwise part.

The condition

Select the If row to edit its condition. Check chooses one of three kinds:

The fields you fill in for one kind are kept while you try another, but only the chosen kind ① is saved.

Compare two values

Value, Comparison and Compared with. Each value is typed, a $variable, or a reading chosen from the field's value menu, such as Clipboard text or Target window (Choosing a value from the menu). Both fields offer every reading. Typing a reading's script name with empty parentheses, such as ClipboardGetText(), is the same as choosing it. The comparisons are is equal to (==), is not equal to (!=), is less than (<), is at most (<=), is greater than (>) and is at least (>=).

How a typed value is read: a number (such as 3 or 2.5) is a number, true or false is true or false, a named constant (such as MouseButton.Right) is its number, and anything else is text. So you can't compare against the text "3"; compare against a variable that holds it.

The rules:

  • Two texts are equal only if they match exactly, including upper and lower case.
  • Two numbers are compared by value, whole or not: 5 equals 5.0.
  • Two windows are equal when they are the same window.
  • Values of different types are never equal: the text "5" isn't equal to the number 5.
  • is less than and the other orderings work on two numbers, or on two texts (in character-code order, so "Z" comes before "a"). Any other pair is false for all four.

These are the script language's rules; see Mixed-type rules.

A builtin's result

The condition runs a builtin and uses what it gives. Choose a builtin… opens the list of all builtins (Adding and arranging steps); pick one and click Use this builtin. Its fields then appear below, as for any step. Until a builtin is chosen, the field says Choose the builtin whose result is checked.

Builtins made for this usually have Is or Contains in their name, such as Is window maximized (WindowIsMaximized) or Title contains text (WindowTitleContains), and give true or false. Any other result counts as true or false by the rules below.

A field of the condition's builtin can hold a builtin call only through a variable, as for any step; Move into a variable adds the step above the If (Step parameters).

A value or variable

Value holds one value, usually a $variable, or a reading from its value menu, as above. The condition is true when the value counts as true:

Type Counts as true when
True or false it is true
Whole number, Number it isn't 0
Text it isn't empty
Window it is a window (a step that found nothing gives no window)

This is how you check "did the step find something": save the step's result, then test the variable. See Value types.

Reverse the result

Reverse the result (not) ② turns true into false and false into true. Use it for "if the window is not maximized" with A builtin's result and Is window maximized.

Stopping early

Stop the steps, from the If / loop menu, ends the action at that point; the steps after it don't run. Put it inside an If block to stop only in some cases.

Jumping to a step

The steps' text form also has a "go to step" form of if, which jumps to another step by its number. The step list can't show it. An action that uses it can only be edited as text, in the code view (From Steps to Script), and the editor says so (Problems). Use blocks instead whenever you can.

PreviousVariablesNextRepeating steps

Repeating steps

A Repeat block runs the steps inside it more than once.

Adding a repeat

  1. Select the step the block should follow (or no step, to add it at the end).
  2. Click If / loop and choose Repeat a number of times, Repeat while… or Repeat until….

The editor adds a repeat row and its End repeat, with the repeat row selected, so the next step you add goes inside. The steps between the two rows are the ones repeated.

How it ends

Select the repeat row to edit it. Repeat chooses how the block ends; each choice keeps its own fields while you switch between them.

Choice Row name Runs the steps
A number of times Repeat times Times times. Times is a whole number, a named constant, a $variable, or a reading from its value menu, which offers only readings that give a whole number, such as Mouse X position. It is read once when the repeat starts. A new repeat starts at 2. 0 or less runs the steps no times.
While a condition holds Repeat while as long as the condition is true. The condition is checked before each pass, so if it is false at the start, the steps don't run at all.
Until a condition holds Repeat until as long as the condition is false. The condition is checked before each pass, so if it is already true at the start, the steps don't run at all.

The condition of Repeat while and Repeat until has the same three kinds as an If: compare two values, a builtin's result, or a value or variable, with Reverse the result (not) (Conditions). Move into a variable isn't offered here: a step moved above the repeat would run only once, but the condition is checked before every pass. To use a builtin's changing result, choose A builtin's result.

Repeats can sit inside other repeats and inside If blocks.

Leaving a repeat early

Exit the loop, from the If / loop menu, leaves the innermost repeat it is in; the action continues after that repeat's End repeat. Put it inside an If block to leave only in some cases.

Exit the loop can only be added where it would land inside a repeat. If you later move it out of every repeat, its row shows Not inside a repeat, and the action can't run until you move it back or remove it.

Stop the steps ends the whole action, from inside a repeat or anywhere else (Conditions).

A repeat that never ends

A Repeat while whose condition never becomes false keeps the action running. Add a Wait inside such loops so they don't keep the computer busy, and make sure something inside changes the condition. The stop-all-actions hotkey (Ctrl+Shift+Alt+F9 unless you changed it on the General page) stops every running action.

The Sandbox is a safe place to try a loop: it stops a run that goes on too long.

PreviousConditionsNextWorked recipes

Worked recipes

Each recipe is a complete list of steps. Give the action a trigger on the Actions page, then build the steps as shown. Every recipe works in Simple and Advanced mode alike (Adding and arranging steps).

Before you give a recipe a real trigger, you can try it on the Sandbox page.

Close the current tab

  1. Send keys presses Ctrl+W, which closes the current tab in browsers and most tabbed programs. Click the Keys box and press the combination.

The keys go to the window that has the focus. For a gesture drawn over a window in the background, turn on Activate the window under the gesture on the General page (General settings), so the keys reach the window you drew over.

Type a signature

  1. Type text types the text where the cursor is, as if you typed it.

For longer text, or text with line breaks, a typed shortcut on the Text expansion page is often simpler.

Zoom with the right button and the wheel

Two actions, each with a wheel trigger on the right button: Wheel up zooms in, Wheel down zooms out. Put them in the app group of the program you zoom, such as a PDF or comic reader.

  1. In the zoom-in action, Send keys presses Ctrl and the plus key on the number pad, the zoom-in shortcut of most programs, SumatraPDF among them. Click the Keys box and press the combination.
  2. The zoom-out action is the same with Ctrl and the minus key on the number pad.

Hold the right button over the program and turn the wheel: each tick zooms one step, and letting go opens no context menu. Some programs zoom with the plus and minus keys alone, MComix among them: for those, leave out Ctrl. If the program uses other shortcuts, set those instead.

Middle-click with the right and left buttons

One action with a button chord trigger: Draw button Right button, Other button Left button. Put it in the app group of your browser, or in Global for every program.

  1. Click clicks the middle button where the pointer is. Set X to Mouse X position, Y to Mouse Y position and Mouse button to MouseButton.Middle.

Hold the right button over a link and click the left button: the browser opens the link in a new tab, as a middle click does, and no context menu opens. Click the left button again while you still hold the right one to open the next link under the pointer.

Move a window to the next screen

  1. Move window to monitor (the Move window chip) moves the window to the next screen, keeping its size and its place on the screen. Window is Target window: the window you drew the gesture over. Turn on Move the mouse with it to take the pointer along.

Screens are taken left to right, then top to bottom, and the last one wraps to the first. A maximized window stays maximized.

Maximize or restore the window under the gesture

Quick create… offers this action ready-made as Maximize or restore the window.

  1. Target window (ContextGetWindow) with Save result as window keeps the window under the gesture.
  2. If… otherwise…, with Check set to A builtin's result and the builtin Is window maximized (WindowIsMaximized), its Window field $window.
  3. Inside the If part, Restore window with Window $window restores the window.
  4. Inside the Otherwise part, Maximize window with Window $window maximizes it.

Saving the window in step 1 is optional: each Window field could be Target window instead. Saving it once makes each later step's field shorter to read.

If the window is Notepad, save; otherwise say so

  1. If… otherwise…, Check set to A builtin's result, builtin Title contains text (WindowTitleContains): Window is Target window, Text is Notepad. It is true when the window's title contains "Notepad", in any upper and lower case.
  2. Inside the If part, Send keys presses Ctrl+S.
  3. Inside the Otherwise part, Show a notification shows a Title and a Message.

To test the program instead of the title, save the result of Program file name (WindowGetExecutableName) and compare it with Compare two values. That comparison is exact, so match the file name's upper and lower case as Windows reports it.

Media keys

Send keys can't press media keys, so this recipe uses the KeyboardPressKey builtin, which presses any key by its name.

  1. Press and release key (KeyboardPressKey, from All N builtins…) with Key VirtualKey.MediaPlayPause presses Play/Pause.

Use one action per key:

Key Key name
Play/Pause VirtualKey.MediaPlayPause
Next track VirtualKey.MediaNextTrack
Previous track VirtualKey.MediaPreviousTrack
Stop VirtualKey.MediaStop
Volume up VirtualKey.VolumeUp
Volume down VirtualKey.VolumeDown
Mute VirtualKey.VolumeMute

Type the name exactly, with the same capitals. Every key's name is listed under Named constants.

With Send media and browser keys as commands on, these keys are sent as commands to the window with the focus instead (Script settings).

Paste as plain text

Quick create… offers this action ready-made as Paste as plain text.

  1. Clipboard text with Save result as text reads the copied text without its formatting.
  2. Paste text with Text $text puts that plain text on the clipboard and pastes it.

Ask before closing a window

  1. Show a message box (UIShowMessageBox) shows a message box and waits. Message Close this window?, Title Close, Buttons YesNo, Icon Question, Save result as answer. It gives the name of the button pressed.
  2. If…, Check set to Compare two values: Value $answer, is equal to (==), Compared with Yes.
  3. Inside the block, Close window with Window Target window asks the window to close, as its close button would.

Press a key several times

  1. Repeat a number of times, Times 5.
  2. Inside it, Send keys presses Down.
  3. Wait 50 milliseconds gives the program time to keep up.

Open a program, or switch to it

  1. Switch to or start a program (ShellRunOrActivate) with Program file name notepad.exe brings Notepad to the front if it is running, and starts it if not. .exe is optional: notepad works too. Arguments after the name, such as a file to open, are used only when the program has to be started. Running programs are matched by the file name of the first word, so a path that contains spaces and is followed by arguments goes in single quotes.

To always start a new copy, or to open a file, folder or web address, use Run or open (ShellRun) instead, or Quick create…'s Open a program, file or website.

PreviousRepeating stepsNextFrom Steps to Script

From Steps to Script

When to switch to Script

Steps covers most actions. Switch to Script when you need something a step can't hold:

  • arithmetic, such as moving a window 100 pixels from where it is;
  • building text from pieces, such as a file name with today's date in it;
  • a builtin call inside another builtin's field, without a variable in between;
  • a loop that uses its counter, such as "for each of the first 5 windows".

Switching never loses your steps: an action keeps its Steps body and its Script body side by side (Steps, Script and AutoHotkey).

The code view

Advanced mode. View code, at the end of the Steps editor, shows the steps as text: the form they are stored in. Hide code hides it again. It starts hidden each time you select another action.

  • An edit in the code view ② rebuilds the step rows above it as soon as the text is valid.
  • When the text can't be shown as rows, for example because it uses the "go to step" form of if, the editor shows the code without the View code link, since it is then the only way to edit the steps. The rows are replaced by a message saying why (Problems).
  • The editor never rewrites text it can't show as rows. Comments in the text are not kept once you edit the rows.

The text form itself, every kind of step and its fields, is described in The Steps engine.

Translating steps into a script

  1. Select Script under Written as.
  2. If the action has steps and its Script body is empty, Convert steps to a script? asks whether to translate them. Click Convert.
  3. The translation appears in the Script editor. Check and finish it there.

When the steps are a recording made on the Recorder page, the dialog adds: These steps are a recording. As Script they ignore the Recorder's Replay speed and Replay mouse path detail: waits run at recorded speed and every recorded mouse move replays. (Replay settings)

The translation is one-way. The steps stay as they were, so switching back to Steps shows them unchanged, but nothing turns a script back into steps.

It isn't offered when:

  • the Script body already has text (it would be overwritten);
  • the steps can't be shown as rows;
  • any step is Repeat while, Repeat until, Exit the loop or Stop the steps. Script has only counting loops, and nothing that leaves a loop or ends the action early.

What each step becomes

Step Script
A builtin step One statement, WindowMaximize(window);
A step with Save result as name = Builtin(…);
Set variable name = value;
A $name in a field the bare name, name
A reading such as Target window the call, ContextGetWindow()
A named constant such as MouseButton.Primary, outside a Text field the name as is
Text a quoted string, with backslashes and quotes escaped
An empty field 0 for a number, false for true or false, "" for anything else
If / Otherwise / End if if (…) { … } else { … }
A comparison a == b and the other operators; Reverse the result (not) becomes !(…)
Repeat a number of times a for loop over a counter named i (or i2 and so on, if i is taken)

For example, the maximize or restore recipe becomes:

One difference to watch: in Steps, a variable used before any step saves it reads as 0. In Script, a variable must be assigned above its first use in the text, or the script doesn't compile (Variables).

Recordings

The Macro recorder also shows a recording as steps, with a Script button that translates it the same way. A recording kept as steps follows the Replay speed setting; a translated one plays as recorded.

PreviousWorked recipesNextProblems the Steps editor reports

Problems the Steps editor reports

The Steps editor checks your steps as you edit them. Its messages appear in four places: under a field, as a chip on a step's row, as Steps not saved: under the list, and in place of the list when the steps can't be shown as rows.

Under a field

A field with a problem gets a red border and the message under it, as you type. While a field holds typed text that fails its check, the steps aren't saved: Steps not saved: step N has a field that isn't valid shows under the list, and the action keeps its last saved steps until you fix the field (Steps not saved).

An empty field shows no message and doesn't block saving; the steps are saved with the field empty. When the action runs, a step with an empty number, true-or-false or window field stops the action there, and the console's System output says that argument has the wrong type. An empty Text field runs as empty text, which for some builtins (a file name, a window title to find) means the step does nothing.

Message Cause Fix
This value is required. The variable name of a Set variable step is empty. Type a name.
Enter a whole number (decimal or 0x hex), a named constant, or a $variable. A whole-number field, or a Times count, holds something else, such as 2.5 or ten. Type digits, with an optional minus sign, 0x and a hexadecimal number, or a named constant such as VirtualKey.F5 (Step parameters).
There's no named constant with this name. Check the spelling and capitals, as in VirtualKey.MediaPlayPause. A whole-number or number field, or a Times count, holds a name with a dot, such as VirtualKey.Mediaplaypause, that isn't a named constant. Correct the name. Capitals count. The names are listed under Named constants.
Enter a number, or a $variable. A number field holds something that isn't a number. Use a period as the decimal point, with no thousands separator: 1234.5.
Enter true or false, or a $variable. A True or false value of a Set variable step holds something else. Type true or false.
A step can't run a builtin inside an argument. Move it into a variable first. The field holds a builtin call with something in its parentheses, such as WindowGetTitle($w). Click Move into a variable under the field (Step parameters). If that link isn't offered, add a step for the call yourself, save its result, and use the variable.
Use letters, digits and _, not starting with a digit. A variable name, in Save result as or Variable, has another character or starts with a digit. Rename it (Variables).
This name is reserved. Choose another. The variable name is if, else, for, true or false. Choose another name.
Choose the builtin whose result is checked. A condition set to A builtin's result has no builtin yet. Click Choose a builtin… and pick one.
"…" can't be used in a key combo. The Keys box was given a key that a key combination can't name, such as a media key. Use another key, or the Press and release key step (KeyboardPressKey) (Media keys).

Move into a variable isn't offered when the call can't be read (for example when it contains operators such as +), or in the condition of a Repeat while or Repeat until.

One note is not a problem: This is stored as text, not run. To keep a builtin's result, use Save result as on that builtin's step. under a Set variable value of type Text that is a builtin call with something in its parentheses, such as WindowGetTitle($w). The value is saved as those characters. A call with empty parentheses, such as ClipboardGetText(), gets no note: it is a reading from the value menu (Variables).

On a step's row

Chip Cause Fix
Not inside a repeat An Exit the loop step is outside every repeat, usually after a move. The action can't run while it is there. Move it back inside a repeat, or remove it (Repeating steps).

Steps not saved

Steps not saved: followed by a reason means the editor couldn't write your rows back into the action. Until you fix it, the action keeps its last saved steps, and the rest of your edits wait.

Reason Cause Fix
a condition has no builtin chosen An If or Repeat while/until is set to A builtin's result with no builtin. Choose the builtin, or switch Check to another kind.
a condition's value is a call (…); it needs a variable set first A condition's Value, or one side of a comparison, holds a builtin call with arguments. Add a step above that runs the call with Save result as, and use the variable in the condition.
Builtin argument N is a call (…); it needs a variable set first A step's field holds a builtin call with arguments. N counts the step's fields from 1. Move into a variable (Step parameters).
step N has a field that isn't valid A field of step N holds typed text that fails its check (Under a field): abc in a whole-number or number field, a name that isn't a named constant, a true-or-false field with other text, a Times count that isn't valid, or a variable name that isn't allowed. An empty field never causes it. N counts the steps from 1. Fix the field the message is under.

When the steps can't be shown as a list

Sometimes steps exist as text that the step list can't show: they were edited in the code view, imported, or written by hand in the configuration file. The list is then replaced by:

These steps use flow control that can't be shown as a list (reason). They can be edited as code in Advanced mode.

This happens in every Steps editor: an action's, a snippet's, the Sandbox's, an app group's before and after actions, and a global event's.

The steps still run as they are; the editor only can't show them as rows. In Advanced mode, the code view shows the text, and it is the only way to edit it (The code view). Once the text has a list form again, the rows come back. The text form is described in The Steps engine.

The reason is one of the following. Words in italics stand for the part of your text the reason quotes.

The text as a whole

Reason What to fix in the text
the steps aren't valid TOML: message The text isn't valid TOML. The message says where.
there is no [[steps]] array The text has no [[steps]] tables.
the top-level key key is not a plain value A key above the first [[steps]] holds a table or a list. Only plain values may stand there.
a step uses op op, which has no list form A step's op is one the list can't show.
a step uses the goto form of if, which has no list form An if jumps with then_goto or else_goto, or a goto step exists. Rewrite it with an if block and end_if, or keep editing as text.
an if step has no condition An if step has no condition.

One step

Reason What to fix in the text
a call step has no fn A call step names no builtin.
a set step has no local A set step names no variable.
a set step's call has no fn A set step's call names no builtin.
a set step's value is not a single value A set step's value is a list, or a table other than a reading ({ fn = "Name" }) or a named constant ({ const = "Namespace.Name" }).
a set step's value is the text text, which the list would save back as that builtin's result A set step's value is a quoted text that reads as a reading, such as "ClipboardGetText()". To store the reading's result, write it as { fn = "ClipboardGetText" }; otherwise change the text.
a set step has neither value nor call A set step has nothing to store.
a repeat step needs exactly one of times, while or until A repeat step has none of them, or more than one.
a repeat step's times is a number, a named constant or a builtin call stored as text, which the list would save back as a number, a constant or the builtin's result times is written in quotes, such as "3", "MouseButton.Middle" or "MouseGetCursorX()". Write a number without quotes, a constant as { const = "MouseButton.Middle" }, or a reading as { fn = "MouseGetCursorX" }.
a repeat step's times is neither a whole number nor text times is, for example, 2.5 or true.
a condition is not a table A condition, while or until isn't a table.
a condition needs exactly one of fn, value or compare A condition has none of them, or more than one.
a condition's not is neither true nor false not holds something other than true or false.
a condition's fn is empty A condition's fn is empty text.
a condition's compare is not a supported comparison compare isn't one of ==, !=, <, <=, >, >=.
a comparison needs both left and right A comparison is missing left or right.
a condition's operand is not a single value A value, left or right is a list, or a table other than a reading or a named constant.
a condition compares the text text, which the list would save back as a number, a named constant, true/false or a builtin's result A compared value is written in quotes but reads as a number, a named constant, true/false or a reading, such as "3", "MouseButton.Left" or "ClipboardGetText()". The list can't keep it as text. Write a reading as { fn = "ClipboardGetText" }, or change the text.
args is not an array A step's args isn't a list.
an argument is not a single value An argument is a list, or a table other than a reading ({ fn = "Name" }) or a named constant ({ const = "Namespace.Name" }).
a value names the constant text, which doesn't exist A { const = "…" } holds a name that isn't a named constant, or isn't text. Correct the name; capitals count.

Blocks that don't match

N is the step's position, counting from 1.

Reason What to fix in the text
step N is an else outside an if block An else with no open if before it.
step N is a second else in one if block An if block has two else steps.
step N closes a block that isn't open An end_if or end_repeat with no matching open block.
step N opens a block that is never closed An if or repeat with no end_if or end_repeat.

Notices around the editor

Notice Meaning
Nothing is set up in this mode, so running it does nothing. The mode content is kept but doesn't run. Written as is set to an empty mode while another mode has content. Click Use mode to switch back (Steps, Script and AutoHotkey).
AutoHotkey support is turned off in General settings, so this action does nothing until it is enabled. The action runs as AutoHotkey, which is off (AutoHotkey).
No registered plugin provides the "engine" engine, so this script is skipped when it runs. Add the plugin on the Plugins page, or choose another mode. The action runs on a plugin's engine, and that plugin isn't registered (Plugins).
PreviousFrom Steps to ScriptNextScript language reference

Script language reference

The text syntax an action, hotkey, timer or event script is written in: what the language accepts, how each operator treats each type, where it fails softly and where it stops the action. After that come every builtin's signature and a filterable set of example scripts.

  • LanguageThe syntax of the script language: source text, literals, value types, variables, statements and operators.
  • Working with dataWorking with text, numbers, bit flags and named constants in a script.
  • Builtins and runtimeCalling builtins, control-flow idioms, how scripts run, errors, the language's limits, the Steps engine and common gotchas.
  • ReferenceEvery builtin's signature and the library of example scripts.
PreviousProblems the Steps editor reportsNextLanguage

Language

The syntax of the script language: source text, literals, value types, variables, statements and operators.

  • OverviewWhat a script is, how it relates to Steps and AutoHotkey, and how a script is compiled and run.
  • Cheat sheetThe whole language at a glance in one short script.
  • Source textComments, whitespace, semicolons, identifiers, keywords and dotted constant names.
  • LiteralsHow integers, reals, text, booleans and named constants are written, and the string escapes.
  • Value typesThe five kinds of value a script works with, and how each one reads as true or false.
  • VariablesHow variables are created, where they can be used, their single scope and their lifetime.
  • StatementsThe statement grammar: assignment, expression statements, if/else, for and blocks.
  • OperatorsOperator precedence and the traps in short-circuiting, bitwise precedence and chained comparisons.
  • Mixed-type rulesWhich kind combinations each operator accepts, what it gives otherwise, and how to convert between kinds.
PreviousScript language referenceNextOverview

Overview

A script is a sequence of statements in a small C-like language. It has variables, if/else, a for loop, arithmetic, comparison, logical and bitwise operators, and calls to builtins: the functions the engine provides, such as WindowMaximize or KeyboardPressKeyCombo. You cannot define your own functions, and there are no arrays or objects. Every value is a single scalar.

An action can be written three ways (Steps, Script and AutoHotkey). Two of them run inside Input.Observer and compile to the same bytecode:

  • Script: the text language this reference documents.
  • Steps: a TOML list of steps, built in the Steps editor and by recorded macros. See The Steps engine.

The third, AutoHotkey, is AutoHotkey v2 code that AutoHotkey itself runs.

A script is compiled before it runs. A syntax error, an unknown builtin or a wrong argument count stops it from running at all, and you get one error with its line and column. After compiling, it runs top to bottom on a thread of its own.

Try things in the diagnostic console. Open it with the tray menu's Show Console item. The console's Script tab runs a script right away, sends UtilityPrint output to that tab, and completes builtin names as you type. Every example in this reference can be pasted into it.

PreviousLanguageNextCheat sheet

Cheat sheet

PreviousOverviewNextSource text

Source text

Comments and whitespace

  • // starts a comment that runs to the end of the line.
  • /* ... */ is a block comment that can span lines. Block comments don't nest. An unclosed /* is an error: the script doesn't compile until the comment is closed with */.
  • Spaces, tabs and line breaks separate tokens and are otherwise ignored. A statement can span as many lines as you like.
  • Comment markers inside a string literal are just text.

Statements and semicolons

An assignment or an expression statement ends with ;. A block { ... }, if or for doesn't need one after its closing brace. A stray ; is an empty statement and is harmless, so ;; is fine.

Identifiers

A variable or builtin name starts with a letter or _, followed by letters, digits or _ (ASCII only). Names are case-sensitive: count and Count are different variables, and windowmaximize(w) is an unknown function.

Keywords

Five words are reserved: if, else, for, true and false. Nothing else is a keyword. while, return, break, function and so on are ordinary identifiers, so while (x) { } is read as a call to an unknown function named while.

Dotted names

Namespace.Name with no spaces around the dot refers to a named constant, such as VirtualKey.Enter or FileNotify.LastWrite. It is not member access. There are no objects, and a dot anywhere else is an error.

PreviousCheat sheetNextLiterals

Literals

Form Type Examples Notes
Decimal integer Integer 0 42 1000000 64-bit signed. No digit separators, no suffixes. A leading - is the unary minus operator, not part of the literal.
Hex integer Integer 0x7B 0XFF 0x8000 0x or 0X, then hex digits in either case. Gives exactly the same value as the decimal form: 0x7B == 123.
Real Real 0.5 3.14159 100.0 Needs digits on both sides of the dot. .5, 5. and exponents like 1e3 aren't valid.
Text Text "hello" "" "Ünïcødé ✓" Double quotes only. 'a' is an error. Any Unicode text is allowed. See the escapes below.
Boolean Bool true false Lowercase only.
Named constant Integer VirtualKey.F5 MouseButton.Right Replaced by its number when the script compiles. See Named constants.

An Integer literal keeps its exact value across the whole signed 64-bit range, up to 9,223,372,036,854,775,807 (0x7FFFFFFFFFFFFFFF). A literal past that range, a Real too large to hold, or a 0x with no digits after it is a compile error: The number "…" is too large or incomplete.

String escapes

Write Get
\n a line feed (U+000A)
\r a carriage return (U+000D)
\t a tab
\" a double quote
\\ a single backslash
\ at the end of a line nothing: a line continuation. The backslash and the line break are both dropped.
\ followed by any other character that character, without the backslash. "\q" is "q".

Windows paths: "C:\temp\new" is not a path. \t becomes a tab and \n a line break. Double every backslash ("C:\\temp\\new"), or build the path with ShellExpandEnvironmentVariables("%TEMP%\\new").

There's no \x.. or \u.... escape. Write a Windows line ending as \r\n. A string literal can also contain a real line break. The compiler accepts it, but the editor colors the rest of the line as an unterminated string, so the \ continuation or \n is the tidier way to write a multi-line string.

PreviousSource textNextValue types

Value types

Every variable, argument and result holds exactly one of five kinds. A variable has no fixed type. It holds whatever was last assigned to it.

Kind Holds Comes from Truthy when Shown as (StringFormat)
Bool true / false literals, comparisons, !, &&, \|\|, many builtins it is true true / false
Integer 64-bit signed whole number integer and hex literals, constants, integer arithmetic it isn't 0 42, -7
Real 64-bit floating point real literals, any arithmetic involving a Real it isn't 0.0 always six decimals: 0.500000
Text Unicode string string literals, + on two Texts, Text builtins it isn't empty as is
Window a window handle (HWND) WindowGetActive, ContextGetWindow, WindowFindByTitle, … it isn't null 0x00000000000A0B2C

"Truthy" is how if, for conditions, !, && and || read a value that isn't a Bool. It makes these everyday checks work without comparing to anything:

There's no null, undefined or "nothing" value. A builtin that finds nothing returns an empty Text, 0, -1, false or a null Window, depending on its return kind. Check for the one it uses.

PreviousLiteralsNextVariables

Variables

  • Assigning creates a variable. total = 0; There's no declaration keyword and no type annotation.
  • A variable must be assigned somewhere above its first use in the source text, or the script won't compile (undefined variable). This is checked by position in the text, not by what actually runs.
  • So a variable assigned only inside an if branch compiles when it's used after the if. If that branch didn't run, the variable holds Integer 0.
  • There is one scope per script. A { } block doesn't create a new scope. A loop counter is still there after the loop with its final value, and assigning to a name inside a block changes the same variable everywhere.
  • Variables live for one run of the script. Every dispatch starts with none, and two actions running at the same time never see each other's variables. Use Storage to keep a value between runs.
  • A variable can have the same name as a builtin. x and x(…) are told apart by the parenthesis, though reusing a builtin's name isn't recommended.
PreviousValue typesNextStatements

Statements

Grammar

program     = { statement } ;
statement   = assignment | exprStmt | block | ifStmt | forStmt | ";" ;
assignment  = identifier "=" expression ";" ;
exprStmt    = expression ";" ;                 (* result discarded, e.g. a builtin call *)
block       = "{" { statement } "}" ;
ifStmt      = "if" "(" expression ")" statement [ "else" statement ] ;
forStmt     = "for" "(" identifier "=" expression ";"
                        expression ";"
                        identifier "=" expression ")" statement ;
expression  = see the precedence table under Operators ;
call        = identifier "(" [ expression { "," expression } ] ")" ;

Assignment

name = expression; is a statement, not an expression. So a = b = 1;, if (x = 5) and f(x = 1) are all errors. There's no compound assignment (+=) and no ++/--. Write i = i + 1;.

Expression statements

Any expression followed by ; is a statement, and its value is thrown away. That's how a builtin is called for its effect: WindowMinimize(w);. The Bool most builtins return is ignored unless you capture it: ok = FileDelete(p);.

if / else

The parentheses around the condition are required. The branch is a single statement or a { } block. else if is just an else whose statement is another if, so chains work. A dangling else belongs to the nearest if. Use braces when that's ambiguous.

for

for (init; condition; step) body. All three parts are required. init and step must each be a single name = expression assignment, with no comma-separated lists and no bare calls. condition is any expression and is checked before each pass, including the first. step runs after each pass.

It's the only loop. There's no while, do, break, continue or for x in …. The standard substitutes are under Control-flow idioms.

Blocks

{ ... } groups statements anywhere a single statement is expected, including at the top level. It doesn't open a new variable scope.

PreviousVariablesNextOperators

Operators

Highest precedence first. Every binary operator is left-associative: a - b - c is (a - b) - c.

Level Operators Meaning Operand kinds
1 ( ) f(…) grouping, builtin call
2 ! - ~ (unary) logical not, negate, bitwise not !: any · -: Integer/Real · ~: Integer
3 * / multiply, divide Integer/Real
4 + - add or concatenate, subtract Integer/Real, or Text + Text
5 << >> shift left, arithmetic shift right Integer
6 < <= > >= ordering two numbers, or two Texts
7 == != equality any
8 & bitwise AND Integer
9 ^ bitwise XOR Integer
10 \| bitwise OR Integer
11 && logical AND (both sides always evaluated) any (truthiness)
12 \|\| logical OR (both sides always evaluated) any (truthiness)

There's no modulo (%), exponent operator, ternary (?:) or comma operator.

&& and || don't short-circuit. Both operands are always evaluated, left then right. A builtin call on the right runs even when the left side already decided the result, and if that call fails, the action stops. Guard with a nested if instead:

Bitwise operators bind looser than comparisons (the same as C). flags & 4 == 4 is read as flags & (4 == 4), which is flags & true, which is 0. Always wrap the mask: (flags & 4) == 4 or (flags & 4) != 0.

Comparisons don't chain. 0 < x < 10 is read as (0 < x) < 10, which compares a Bool with an Integer and is always false. Write x > 0 && x < 10.

PreviousStatementsNextMixed-type rules

Mixed-type rules

There's no general implicit conversion. Each operator has a short list of kind combinations it understands. Any other combination doesn't raise an error. It quietly gives Integer 0 (or false for an ordering) and the script keeps running. That's deliberate, so one odd value doesn't abort an action halfway through. It also means a mistyped expression fails silently, so check with UtilityPrint when a result looks wrong.

Operator Accepted combinations → result Anything else
+ Text + Text → Text (concatenation)
Integer + Integer → Integer
Integer/Real mix → Real
0
- * Integer ∘ Integer → Integer
Integer/Real mix → Real
0
/ Integer / Integer → Integer, truncated toward zero (-7 / 2 is -3)
Integer/Real mix → Real
dividing by zero → 0 or 0.0, no error
0
== != same kind → compared by value (Text exactly and case-sensitively, Window by handle)
Integer vs Real → compared numerically (5 == 5.0)
never equal: 1 == true, "5" == 5 and w == 0 are all false
< <= > >= two numbers (Integer/Real mix allowed) → numeric order
Text vs Text → ordinal, case-sensitive (UTF-16 code units: "Z" < "a")
false for all four, so !(a < b) doesn't mean a >= b here
&& \|\| ! any kinds, via truthiness → Bool
& \| ^ Integer ∘ Integer → Integer 0 (a Bool or Real operand counts: true & true is 0)
<< >> Integer by Integer 0–63 → Integer. >> keeps the sign: -16 >> 2 is -4. 0, including shift amounts below 0 or above 63
unary - Integer → Integer, Real → Real 0
~ Integer → Integer (~0 is -1) 0

Converting between kinds:

From → To How
Integer → Real automatic when passed to a builtin parameter declared Real; elsewhere n * 1.0 (any arithmetic with a Real gives a Real)
Real → Integer MathRound(r) (halves away from zero), MathFloor(r) or MathCeil(r)
anything → Text StringFormat("{0}", value, "")
Bool → Integer if (b) n = 1; else n = 0;
Text → number StringToNumber(text, false) for what a person typed (their regional format; digit groups must follow it, so 1,5 isn't a number for an English (United States) user), true for machine text (. decimal point, no grouping). Integer when whole, else Real; StringIsNumber first if the text might not be a number (see this example).
number → Text StringFromNumber(n, decimals, invariantCulture), decimals -1 for as many as needed
Integer → hex Text no builtin does this. Build it with shifts (see this example).
PreviousOperatorsNextWorking with data

Working with data

Working with text, numbers, bit flags and named constants in a script.

  • TextConcatenating, formatting, measuring, searching, slicing, splitting and comparing Text.
  • NumbersInteger division, remainders, division by zero, Integer-to-Real widening, the Math builtins and numeric range.
  • Bitwise operators and flagsThe bitwise operators and the common expressions for combining, testing and unpacking flags and colors.
  • Named constantsEvery constant namespace with its members and values, the VirtualKey members, and the key-combo text format.
PreviousMixed-type rulesNextText

Text

Concatenation needs Text on both sides

+ joins two Texts. "Count: " + 5 is not "Count: 5". It's the mixed-type fallback, Integer 0. Turn numbers, Bools and handles into Text with StringFormat first.

StringFormat(format, value0, value1)

  • Replaces every {0} with value0 and every {1} with value1. Either value can be any kind. There's no {2} and no format specifiers such as {0:N2}.
  • It always takes three arguments. Pass "" for a value you don't use: StringFormat("{0} items", n, "").
  • For more than two values, nest calls or concatenate the results (see the example below).
  • A Real always shows six decimals (0.500000). Round it to an Integer first for a whole number, or scale it (MathRound(r * 100)) for fixed-point output.
  • {0} is replaced before {1}, so if value0's text itself contains {1}, that gets replaced too.

Measuring, searching, slicing

  • StringGetLength counts UTF-16 code units, not characters. An emoji outside the Basic Multilingual Plane counts as 2.
  • StringGetIndexOf(text, search) gives a 0-based index, or -1 when search isn't found. It's case-sensitive, and there's no "last index of" (scan with a loop).
  • StringGetSubstring(text, start, length): start is 0-based. A length running past the end is cut short, and a start at or past the end gives "". A negative start or length is an error and stops the action.
  • There's no indexing syntax (s[0]). Use StringGetSubstring(s, i, 1) for one character.
  • StringContains, StringStartsWith, StringEndsWith and StringReplace are exact and case-sensitive. For a case-insensitive test, lower-case both sides first.
  • StringToUpper/StringToLower follow the user's locale casing rules, so the Turkish dotted/dotless i is handled correctly.
  • StringTrim strips whitespace from both ends, including the \r left over from Windows \r\n line endings.
  • StringReplace and StringSplit stop the action if the search text or delimiter is empty.

Splitting is a cache you read by index

A Value can't hold a list, so StringSplit(text, delimiter) stores the parts in the running script's context and returns how many there are. Read each part with StringGetSplitPartAt(i); an out-of-range index gives "". The next StringSplit in the same script replaces that cache, so copy a part into a variable before you split something else. Every …EnumerateAll, …FindAll… or …GetAll… builtin, paired with its …EnumeratedAt reader, works the same way.

Comparing text

== is exact and case-sensitive. </> compare ordinally by UTF-16 code unit, which isn't dictionary order: every uppercase ASCII letter sorts before every lowercase one, and accented letters sort after z. Don't present that ordering to a user as alphabetical.

PreviousWorking with dataNextNumbers

Numbers

  • Integer division truncates: 7 / 2 is 3. Make one side a Real for a fractional result: 7 / 2.0 or n * 1.0 / d.
  • Remainder: there's no %. MathMod(n, d) takes the divisor's sign, so MathMod(-30, 360) is 330 (what wrapping an angle or an index wants). For C's sign-of-n remainder, use n - (n / d) * d.
  • Divide by zero gives 0 and doesn't stop the script. Test the divisor yourself if 0 would be a misleading answer.
  • An Integer becomes a Real when a builtin declares Real. MathSqrt(16) is MathSqrt(16.0). The reverse never happens: a Real passed where an Integer is declared stops the action with argument 1 has the wrong type, so round it first with MathRound, MathFloor or MathCeil.
  • MathAbs, MathMin, MathMax, MathClamp and MathMod take either kind and return the winning argument's own kind (MathMod: Integer only when both are). A tie returns the first argument. MathAtan2(y, x) takes either kind and returns a Real. Any other kind, such as Text, stops the action.
  • MathRandom(min, max) is inclusive at both ends, and stops the action if min > max. MathClamp(value, min, max) stops it the same way.
  • The Math builtins never return NaN or infinity. A Math builtin given one, or with no finite answer, returns 0 (0.0 when the result is a Real): MathSqrt of a negative number, MathLog of zero or less, a MathPow result that isn't finite, MathFloor, MathCeil or MathRound of NaN. MathFloor, MathCeil and MathRound of a finite value beyond the Integer range give the largest or smallest Integer.
  • Real results show six decimals when turned into Text. Round for display.
  • Trigonometry works in radians: rad = deg * MathGetPi() / 180.
  • Integer arithmetic that goes beyond ±9.2 × 10¹⁸ wraps around to the other end of the range: one more than the largest Integer is the smallest one. There's no error. Keep values in range.
PreviousTextNextBitwise operators and flags

Bitwise operators and flags

&, |, ^, ~, << and >> work on 64-bit Integers with C semantics, and on nothing else. They're mainly for combining flag constants, testing bits in values that builtins return, and unpacking colors.

Task Expression
Combine flags FileNotify.FileName \| FileNotify.LastWrite
Test a flag (mask & FileNotify.Size) != 0
Set a flag mask = mask \| flag;
Clear a flag mask = mask & ~flag;
Toggle a flag mask = mask ^ flag;
Test bit n ((value >> n) & 1) == 1 or (value & (1 << n)) != 0
Even / odd (n & 1) == 0
Unpack 0xRRGGBB r = (c >> 16) & 0xFF; g = (c >> 8) & 0xFF; b = c & 0xFF;
Key held (from KeyboardGetKeyState) (state & 0x8000) != 0. The high bit of the Win32 SHORT is sign-extended, so state < 0 works too.
Key toggled (Caps Lock and so on) (state & 1) != 0

DisplayGetPixelColorFromPoint returns 0xRRGGBB packed into an Integer, or -1 when the point isn't on any monitor.

PreviousNumbersNextNamed constants

Named constants

A builtin parameter with a fixed set of choices takes an Integer from one of these namespaces. The names are replaced by their numbers when the script compiles, so they cost nothing at run time, and the editor completes them after you type the namespace and a dot, showing each one's value and what it means. They're case-sensitive, and a misspelled one is a compile error. The number itself also works (VirtualKey.A is 65 is 0x41), but the name says what it means. A Steps field that takes a whole number takes the same names.

Namespace Members = value Used by
MouseButton Left=0 Right=1 Middle=2 X1=3 X2=4 Primary=5 Secondary=6 MouseClick, MouseButtonDown/Up, MouseDoubleClick, MouseIsButtonDown; also what ContextGetStrokeButton returns (-1 when there's no button context, or the gesture was drawn with the draw key). Primary is the button Windows treats as a left click and Secondary the one it treats as a right click, following Windows' "Primary mouse button" setting, so use them for an ordinary click or right-click. Left and Right are the physical buttons: with the primary and secondary buttons swapped in Windows' mouse settings, a MouseButton.Left click is the physical left button, which Windows treats as a right click. ContextGetStrokeButton reports the button after the swap as Primary or Secondary, so a right-button gesture reports Secondary whichever physical button drew it, and passing the value to MouseClick presses that same button. Recorded macros use Primary and Secondary.
FileNotify FileName=0x1 DirName=0x2 Attributes=0x4 Size=0x8 LastWrite=0x10 LastAccess=0x20 Creation=0x40 Security=0x100 FolderWatchCreate's filterMask. These are bit flags, so combine them with \|.
AudioEndpoint Playback=0 Capture=1 Communications=2 Multimedia* volume and mute builtins
WindowStyle Normal=0 Minimized=1 Maximized=2 Hidden=3 ShellRunProgram
ShellVerb Open=0 Edit=1 Print=2 RunAs=3 Properties=4 Explore=5 Find=6 ShellRunProgram's verb, which also accepts any other verb as Text
Location TopLeft=0 TopCenter=1 TopRight=2 MiddleLeft=3 MiddleCenter=4 MiddleRight=5 BottomLeft=6 BottomCenter=7 BottomRight=8 UIShowDisplayMessage's location, which also accepts a Text "x,y" screen point
TextAlign Left=0 Center=1 Right=2 UIShowDisplayMessage/UIUpdateDisplayMessage
LockResult Acquired=0 TimedOut=1 Pinned=2 returned by UtilityLockAcquire/UtilityLockAcquirePinned
LockState Free=0 HeldByMe=1 HeldByOther=2 Pinned=3 returned by UtilityLockGetState
SerialParity None=0 Odd=1 Even=2 Mark=3 Space=4 SerialOpenPort, SerialMonitorCreate
SerialStopBits One=0 OnePointFive=1 Two=2 SerialOpenPort, SerialMonitorCreate
DateTimeStyle ShortDate=0 LongDate=1 ShortTime=2 LongTime=3 ShortDateTime=4 LongDateTime=5 FileStamp=6 DateTimeFormat. All but FileStamp follow the user's Windows region settings, in that region's own calendar; FileStamp is always 20261001-140509, which sorts by time and is safe in a file name.
DateTimePart Year=0 Month=1 Day=2 Hour=3 Minute=4 Second=5 Weekday=6 DateTimeGetPart. Gregorian, local time. Weekday is ISO: 1 is Monday, 7 is Sunday.
VirtualKey the Win32 virtual-key codes, named after .NET's Keys enum (listed below) every Keyboard* builtin that takes an Integer key

VirtualKey members

The Oem* keys are named by the symbol they produce on a US keyboard. The physical key varies with the layout.

Key-combo text (KeyboardPressKeyCombo)

KeyboardPressKeyCombo takes Text, not a constant: any number of modifier prefixes, then exactly one key. One combo per call, with no repeat counts. Nothing may follow the key: "^cx" or "Control+V" is an error, not a press of the first key.

Prefix ^ + % @
Modifier Ctrl Shift Alt Win

The key is a single letter or digit (either case), or one of these names in braces, in any letter case: {ENTER} {ESC} {TAB} {DEL} {BS} {SPACE} {HOME} {END} {PGUP} {PGDN} {LEFT} {RIGHT} {UP} {DOWN} {INSERT} {F1}…{F24} {PRTSC} {CAPSLOCK} {NUMLOCK} {SCROLLLOCK} {BREAK} {HELP} {CLEAR} {NUMPAD0}…{NUMPAD9} {MULTIPLY} {ADD} {SEPARATOR} {SUBTRACT} {DECIMAL} {DIVIDE}. {ESCAPE}, {DELETE} and {BACKSPACE} also work.

Examples: "^c" Ctrl+C · "^+{ESC}" Ctrl+Shift+Esc · "%{F4}" Alt+F4 · "@d" Win+D · "^{HOME}" Ctrl+Home · "{enter}" Enter.

Coming from .NET's SendKeys? The prefixes and the names in braces follow Microsoft's SendKeys syntax. This text adds @ for the Windows key and {NUMPAD0}…{NUMPAD9}, {SEPARATOR} and {DECIMAL} for the numeric keypad's own keys. It leaves out repeat counts ({LEFT 4}), several keys in one text ("^s{ENTER}"), groups in parentheses ("+(ec)"), ~ for Enter, braced literal characters such as {+}, and the short names {BKSP} and {INS}.

PreviousBitwise operators and flagsNextBuiltins and runtime

Builtins and runtime

Calling builtins, control-flow idioms, how scripts run, errors, the language's limits, the Steps engine and common gotchas.

  • Calling builtinsHow builtin arguments are checked, what builtins return, and how plural results are enumerated.
  • Control-flow idiomsThe standard substitutes for while, break, continue, modulo, the ternary operator and reusable functions.
  • How scripts runThreads, blocking, stopping, what persists between runs, scripts passed as Text, trigger context, snippets and Safe Mode.
  • Serial devices and ArduinoConnecting Arduino boards and other COM-port devices: finding the port, speeds and line endings, one-off exchanges, a port kept open, and monitors that react to every line.
  • ErrorsCompile errors, builtin failures and soft results, and the common compile errors with their fixes.
  • What the language doesn't haveThe features the language leaves out on purpose, and the workaround for each.
  • The Steps engineHow a Steps action's TOML list of steps differs from a Script action.
  • GotchasExpressions that don't do what they look like they do, and why.
PreviousNamed constantsNextCalling builtins

Calling builtins

  • Arguments are positional and every one is required. No builtin takes optional, named or variable-length arguments. The parameter names in the reference are labels only.
  • The argument count is checked when the script compiles, so a wrong count stops the script before anything runs.
  • Argument kinds are checked when the call runs, and they must match exactly, with one widening. An Integer where a Real is declared becomes that Real (MathSqrt(16) works), as it does in arithmetic. A Real where an Integer is declared, or a number where Text is declared (UtilityPrint(42)), stops the action with Name: argument N has the wrong type. Parameters shown as Any accept any kind.
  • Every builtin returns a value. Most actions return a Bool meaning "did it work", which you can ignore or test.
  • Missing things are normal results, not errors. A window that isn't found is a null Window. Passing a null Window, or a window that has closed, to a Window* builtin does nothing and returns its default, usually false, 0 or "" (the reference gives each one), so a chain of window calls on a handle that wasn't found is safe. Context builtins outside their trigger return "", 0, -1, false or a null Window.
  • Plural results use enumerate-then-index. A call like WindowGetAllTopLevel(), FolderEnumerateAll(…), StringSplit(…) or DisplayMonitorEnumerateAll() returns a count, and the matching …EnumeratedAt(i)/…PartAt(i) reads item i, from 0 to count − 1. Each family has one cache per script run, and the next enumerate call in that family replaces it.
  • A plugin can contribute builtins of its own. Their calls look the same. If the plugin isn't connected when the script compiles, the script doesn't run and a notification says why.
PreviousBuiltins and runtimeNextControl-flow idioms

Control-flow idioms

  • while (condition). A for whose step assigns a variable to itself.
  • break. Set the loop variable past its limit, or clear a "keep going" flag that the condition checks.
  • continue. Wrap the rest of the body in an if.
  • n % d. n - (n / d) * d
  • cond ? a : b. if (cond) x = a; else x = b;
  • A reusable function. Put the code in a named snippet and run it with SnippetExecuteScript. It gets its own variables, so pass values through Storage.
PreviousCalling builtinsNextHow scripts run

How scripts run

  • One thread per dispatch. Each triggered script runs on a thread of its own, with its own variables and enumeration caches. Two gestures fired close together run at the same time. A named lock keeps them from interleaving shared work. A serial monitor is the exception: its lines run one at a time, in the order they arrived. The Maximum running actions setting caps how many run at once; reaching it does what the stop-all-actions hotkey does (Script settings).
  • A script can block. UtilityWait, message boxes, a ShellRunProgram that waits for exit, and serial reads all block their own script's thread and nothing else. Mouse and keyboard input keep flowing.
  • Stopping. EngineStopAllActions() and the console's Stop All end every running script at its next instruction, so an endless loop can always be stopped. The builtins that wait notice a stop request while they wait: UtilityWait, the lock and serial waits, WindowWaitFor, WindowWaitClose, ClipboardCopySelection, KeyboardTypeText (which stops before its next character), MacroPlayTemporary, SnippetExecuteScript, AutoHotkeyExecuteScript (which ends the AutoHotkey process), a ShellRunProgram that waits for exit (which leaves the program running), ShellShowToast, MultimediaPlayMp3File and UIShowConsole. Other builtins, message boxes included, finish their current call first. The stop-all-actions hotkey does the same and also deletes every timer, folder watch and serial monitor, and switches gestures, hotkeys and text expansion off until Reload Config (The stop-all hotkey).
  • What persists between runs:
    • StorageSetValue/StorageGetValue: named values of any kind, shared by every script, held in memory for as long as the engine runs. StorageGetValue of a name that was never set returns Integer 0. It holds up to 1,024 values, with names up to 256 characters and Text up to 32,768 characters; going past a limit stops the action with an error.
    • StorageSetPersistentValue/StorageGetPersistentValue: the same, with the same limits, but kept in storage.toml beside the configuration file, so the values survive a restart. A Window can't be kept (an example).
    • Window properties (WindowSetPropertyInteger/…Text): values attached to one window that go away when it closes or when Input.Observer exits. A text value is at most 1,024 characters, and up to 512 text values can be stored at once.
    • Named timers, folder watches and serial monitors, which the engine keeps running after the script that created them ends, until they're deleted or the stop-all-actions hotkey is pressed. Reloading or saving the configuration doesn't end them; a Config loaded script that creates one again under the same name replaces it.
  • Scripts passed as Text. TimerCreate, FolderWatchCreate and SerialMonitorCreate take a script as a Text argument. It's compiled and dispatched on its own every time it fires, so it has fresh variables and can't see the variables of the script that created it. Quotes inside it need \" escapes, or keep the script in a snippet and pass SnippetGetScript("name").
  • Context. Context* builtins describe what triggered the current run: the gesture, its points and bounding box, the window and control under it, the button, the watch event, or the serial line. A timer's script has no trigger context. A folder watch's script gets the ContextGetWatch* values, and a serial monitor's gets the ContextGetSerial* values. A wheel event's script gets ContextGetWheelDelta and ContextGetWheelHorizontal, and a mouse-button or wheel event's gets where the pointer was from ContextGetEventX and ContextGetEventY.
  • Snippets are named scripts in the configuration. SnippetExecuteScript runs one to completion before the caller continues, and returns true only when the snippet ran to the end. It shares the caller's trigger context but has its own variables.
  • Safe Mode blocks every script except those run from the diagnostic console.
PreviousControl-flow idiomsNextSerial devices and Arduino

Serial devices and Arduino

The Serial* builtins talk to anything that shows up as a COM port: an Arduino, ESP32 or Raspberry Pi Pico over USB, a USB-to-serial adapter, a GPS receiver, a barcode scanner in serial mode, a receipt or label printer, a 3D printer or CNC controller that takes G-code, a lab instrument, or a home-made button box, macro pad, rotary knob or LED controller. The device sends and receives lines of text; your scripts turn those lines into anything else Input.Observer can do.

Some ideas:

  • A button box or macro pad. An Arduino reads its buttons and prints B1, B2, ... A serial monitor turns each line into a shortcut, a media key or a window command.
  • A volume or scroll knob. A potentiometer or rotary encoder prints its position; the monitor sets the volume or scrolls.
  • Status lights. A gesture or hotkey sends LED 255 0 0 to a board driving an LED strip, so a light shows that recording is on or the build failed.
  • Sensors. A timer asks a board for a temperature or light level and shows it, logs it to a file, or dims the screen.
  • Scanners and readers. Every barcode or RFID tag the reader sends becomes typed text, a search, or a lookup in a file.
  • Machines. Send G-code lines to a printer or plotter, one SerialWriteTextLine per command.

Finding the port

Windows gives each device a name like COM3. Device Manager lists it under Ports (COM & LPT); the Arduino IDE shows it in its board menu. A script can list them too:

The list is sorted by number, so COM3 comes before COM10. The number can change when the device moves to another USB socket.

Speed, framing and line endings

  • Speed (baudRate) must match the device: the number in an Arduino sketch's Serial.begin(...), usually 9600 or 115200.
  • Framing is almost always 8 data bits, no parity, one stop bit: 8, SerialParity.None, SerialStopBits.One. Write the constants: the plain number 1 as a stop-bits argument means one and a half stop bits.
  • Line endings. A received line ends at the terminator you give, which is removed from the line. Empty text means CR LF, which Arduino's Serial.println sends. For a device that ends lines with LF alone, use "\n"; for CR alone, use "\r". SerialWriteTextLine ends what it sends with the same terminator, or with CR LF when the call opens the port itself. With CR LF, an Arduino sketch reading with Serial.readStringUntil('\n') gets the line with a trailing CR, which trim() removes; with "\n" there is no CR to remove.
  • Signals. Opening a port turns on its DTR and RTS signals, as the Arduino IDE does. That restarts most Arduino Uno and Nano boards, and other boards with the same reset circuit.

Three ways to talk to a device

  • One question, one answer. SerialWriteTextLine and SerialGetTextLine on a port that isn't open open it at the call's baudRate, 8-N-1, for that one call. The baudRate argument is ignored when the port is already open. Fine for a device that doesn't restart when its port opens. See Ask a serial device a question.

  • A port kept open. SerialOpenPort opens the port with your settings until SerialClosePort, collecting every line the device sends for SerialGetTextLine to read. Most Arduino Uno and Nano boards restart whenever their port opens, so open the port once, in the Load global event, and let gestures and hotkeys write to it. SerialOpenPort returns false for a port that is missing, unplugged or open in another program; for a port that Input.Observer already has open, or that a monitor holds, it stops the action with an error.

  • A monitor. SerialMonitorCreate runs a script for every line the device sends, in the background, until SerialMonitorDelete. The line is ContextGetSerialTextLine(). See Map a serial device's buttons to media keys and:

What to know about monitors.

  • Lines run one at a time, in the order they arrived: the script for the next line starts when the script for the previous one has ended. Up to 256 lines wait; beyond that the oldest are dropped.
  • Stopping all actions stops the script running for a line and drops the lines waiting. The monitor itself keeps running. The Stop all actions hotkey goes further: it deletes every monitor and closes its port.
  • Any script, the monitor's own included, can send to a monitored port with SerialWriteTextLine, so a monitor can answer its device. SerialGetTextLine can't read a monitored port: every line goes to the monitor.
  • Each monitor name belongs to one port. SerialMonitorCreate with the name of this port's monitor replaces that monitor. It stops the action with an error when the name already monitors another port, when the port is open with SerialOpenPort, or when another monitor holds the port. A port that is missing, unplugged or open in another program gives false.
  • Unplugging the device ends the monitor and writes a line to the console's System tab. Nothing restarts the monitor when the device comes back. Run the SerialMonitorCreate again (from a hotkey, or the Load event at the next start).

Only one program can have a COM port open. While the Arduino IDE's Serial Monitor or Serial Plotter is open, Input.Observer can't open the port, and while Input.Observer has it open, the IDE can't upload a sketch. Close the port (SerialClosePort or SerialMonitorDelete) before uploading.

PreviousHow scripts runNextErrors

Errors

When Examples What happens
Compile error syntax error, unknown builtin, wrong argument count, undefined variable, misspelled constant, unclosed string Nothing runs. Only the first error is reported, with its line and column. The diagnostic console and the config UI's editor show it.
Builtin failure wrong argument kind, a negative substring start, MathRandom(5, 1), an unknown message-box button name, an empty split delimiter, opening a serial port that Input.Observer already has open The action stops at that call. Statements after it don't run, and the error is reported as BuiltinName: reason.
Soft result operators on mismatched kinds, dividing by zero, a null or closed window (its position, size or DPI reads as 0), an index out of range, a file that isn't there, a serial port that won't open No error. You get 0, false, "", -1 or a null Window, and the script continues.

Common compile errors and what they mean:

You wrote Why it fails Write instead
i++; / i += 1; no increment or compound operators i = i + 1;
while (x) { … } while isn't a keyword, so it's read as an unknown function a for loop
x = n % 2; there's no % x = n - (n / 2) * 2; or n & 1
'text' single quotes aren't string delimiters "text"
r = .5; / r = 1e3; no leading dot, no exponents 0.5 / 1000.0
a = b = 0; assignment isn't an expression a = 0; b = 0;
for (;;), for (i = 0, j = 0; …) init and step must each be one assignment j = 0; for (i = 0; …; i = i + 1)
print(x) unknown function. Builtin names are exact and case-sensitive. UtilityPrint(…)
y = total + 1; as the first line total hasn't been assigned above this point assign it first: total = 0;
PreviousSerial devices and ArduinoNextWhat the language doesn't have

What the language doesn't have

These are missing on purpose, and each has a workaround:

  • User-defined functions and recursion. Use snippets, and pass values through Storage.
  • Arrays, lists, maps and structs. Use a delimited Text with StringSplit, numbered variables, or Storage keys built with StringFormat("item{0}", i, "").
  • while, break, continue and return. See Control-flow idioms. To end a script early, put the rest of it in an if.
  • Short-circuit logic. Nest ifs.
  • Very deep nesting. Parentheses, calls, ifs, fors and blocks can sit inside one another up to 128 levels deep (a chain of else ifs doesn't count), and an expression can't need more than 256 values on the evaluation stack at once. A script past either limit is rejected before it runs, with an error saying it's nested too deeply. Split a huge expression across variables.
PreviousErrorsNextThe Steps engine

The Steps engine

An action whose engine is Steps is a TOML list of [[steps]] tables instead of text. It calls the same builtins and follows the same value and truthiness rules. The differences:

  • Each step has a unique integer id and an op: call (fn, args), set (local plus a value, or a call = { fn, args }), if, goto (target, a step id), end, repeat/end_repeat, exit_repeat, else/end_if.

  • An if either jumps by id (then_goto/else_goto) or, without those, opens a block closed by end_if.

  • repeat takes exactly one of times, while or until.

  • A condition is exactly one of: a builtin call (fn/args), value (truthiness), or compare ("==", "!=", "<", "<=", ">", ">=") with left/right. Add not = true to invert it.

  • A string argument starting with $ reads a variable ("$target"), so a literal Text can't start with $. A variable no step has set yet reads as Integer 0; unlike Script, that isn't an error. Everything else is a literal whose kind is its TOML kind, and that kind must match the parameter exactly, as in Script.

  • { const = "VirtualKey.MediaPlayPause" } is a named constant, replaced by its number when the steps compile, as in Script. A plain string spelled like one, such as "VirtualKey.F5", stays text.

  • { fn = "MouseGetCursorX" }, a table holding only fn, is the result of a builtin that takes no arguments. It is accepted wherever a value is:

    • a call's args: args = [{ fn = "WindowGetActive" }]
    • a condition's left/right: left = { fn = "ContextGetPointCount" }, right = 20
    • a condition's value: value = { fn = "EngineIsSafeMode" }
    • a repeat's times: times = { fn = "FolderWatchGetCount" }
    • a set step's value: value = { fn = "UtilityGetTickCount" }

    It takes no args. For a builtin that needs arguments, set its result into a variable first and pass "$name".

  • There are no operator expressions. Arithmetic and string building need a Script action.

[[steps]]
id = 1
op = "set"
local = "target"
call = { fn = "WindowGetActive", args = [] }

[[steps]]
id = 2
op = "if"
condition = { fn = "WindowTitleContains", args = ["$target", "Notepad"] }

[[steps]]
id = 3
op = "call"
fn = "WindowMaximize"
args = ["$target"]

[[steps]]
id = 4
op = "end_if"
PreviousWhat the language doesn't haveNextGotchas

Gotchas

This Does Because
"Total: " + n 0 + only concatenates two Texts. Use StringFormat.
StringFormat("{0}", n) compile error it always takes 3 arguments. Add , "".
UtilityPrint(n) stops the action its parameter is Text. Use UtilityPrint(StringFormat("{0}", n, "")).
"C:\temp" C:, a tab, then emp \t is an escape. Write "C:\\temp".
flags & 4 == 4 0 & binds looser than ==. Write (flags & 4) == 4.
0 < x < 10 false it compares a Bool with an Integer. Write x > 0 && x < 10.
ok && Risky() runs Risky() anyway no short-circuit evaluation
true == 1, w == 0 false different kinds are never equal. Test a handle with !w.
7 / 2 3 Integer division. Write 7 / 2.0.
StringFormat("{0}", 0.5, "") 0.500000 Reals always show six decimals
two StringSplits in a loop wrong parts the second split replaces the first one's cache
"apple" < "Banana" false ordinal comparison puts all uppercase before lowercase
a variable set only inside an if 0 when the branch didn't run variables that were never assigned at run time start as Integer 0
PreviousThe Steps engineNextReference

Reference

Every builtin's signature and the library of example scripts.

  • Builtin signaturesEvery builtin, grouped by area, with its parameters, return kind and description.
  • ExamplesWorking scripts covering the syntax and every builtin area, filterable by topic.
PreviousGotchasNextBuiltin signatures

Builtin signatures

Every builtin, grouped by area. Each line shows the parameter names and kinds, in order, and the kind returned. Simple marks the builtins the config UI's Simple mode offers. Examples filters the example library down to scripts that call that builtin. The editor's autocomplete tooltip shows the same signatures.

PreviousReferenceNextExamples

Examples

Working scripts covering the syntax and the builtin areas. Filter by topic or search their code and text. Scripts that use Context* builtins need the trigger they describe, such as a gesture, a hotkey or a global event. In the diagnostic console those builtins return their empty defaults.

Hello, console

The smallest script. UtilityPrint writes to the diagnostic console: to the Script tab when the script runs from there, otherwise to the User tab.

The five value kinds

One variable of each kind, printed through StringFormat, which is the only way to turn a non-Text value into Text.

Truthiness of every kind

What if considers true for each kind: non-zero numbers, non-empty Text, non-null handles.

else-if chain

Sort the cursor's horizontal position into thirds of the monitor under it.

Counting loops: up, down and by steps

All three parts of for are assignments or expressions of your choosing.

Nested loops: a multiplication table

Nested for loops building one line of Text per row.

while loop: wait for a window, with a timeout

The condition does the "while" work, and the counter caps it at 5 seconds.

while (true) with an exit flag

A self-assigning step (go = go) makes a loop that only stops when its body clears the flag. The stop-all hotkey always ends it too.

break and continue

Set the counter past the limit to break. Put the rest of the body inside an if to continue.

Precedence surprises

Two C precedence traps, and the explicit parentheses that fix them.

&& and || evaluate both sides

Both operands always run, which matters when the right side has an effect or can fail.

Equality across kinds

Integer and Real compare numerically. Every other pair of different kinds is simply unequal.

Mixed-type arithmetic falls back to 0

Combinations an operator doesn't understand give Integer 0 without an error. Print a value when a result looks wrong.

Comments, blank statements and blocks

Line and block comments, a stray semicolon, and a top-level block (which doesn't create a scope).

Integer vs Real division, and dividing by zero

Integer division truncates toward zero, one Real operand gives a Real result, and dividing by zero gives 0.

Remainder without %

n - (n / d) * d is C's %. With a power-of-two divisor, a mask does the same for non-negative numbers.

Rounding and Real math builtins

An Integer passed where a builtin declares Real becomes a Real. Rounding goes halves away from zero.

Clamp a value to a range

MathClamp (like MathMin/MathMax) takes either numeric kind and returns the winner as it was.

Random numbers and a coin flip

MathRandom includes both ends of the range.

Length of a gesture stroke

Adds up the straight-line distance between consecutive gesture points. The Integer sum of squares becomes Real on its way into MathSqrt.

Move the mouse in a circle

Degrees to radians, trigonometry on Reals, and MathRound back to Integer pixel coordinates.

Formatting a Real without six decimals

Scale and round to get a percentage, or to split a value into whole and hundredths for two decimal places. Works for non-negative values.

Flag masks: set, clear, toggle, test

The four standard mask operations on your own flag values.

Read the pixel color under the cursor

Unpack the 0xRRGGBB Integer with shifts and masks.

Integer to hex text

No builtin formats hex, so peel off four bits at a time and look each digit up in a Text.

Count the set bits

Shift through all 64 bits and add each low bit.

Shift edge cases

>> keeps the sign, and a shift amount outside 0–63 gives 0.

Swap two Integers

The ordinary way needs a temporary variable. XOR swaps without one.

Key state bits

KeyboardGetKeyState returns the raw Win32 value: the high bit means the key is down, the low bit means it's toggled. The Is* builtins do the same test for you.

String escapes and Windows paths

Double every backslash in a path. \t, \n and \r are escapes, and any other backslash is dropped.

Formatting more than two values

StringFormat fills {0} and {1} only. Nest a call, or join several with +.

Split and iterate

StringSplit returns the count, and StringGetSplitPartAt reads each part. Parts between two adjacent delimiters are empty.

Nested splits: key=value pairs

The inner split replaces the outer split's parts, so re-split the outer list at the top of every pass.

Last index of: a file extension

There's no LastIndexOf, so check every position and keep the last match.

Read a number someone typed

false reads it in the user's regional format (a German user types 1.234,5). Digit groups must then follow that format: for an English (United States) user 1,234.5 is a number and 1,5 isn't. StringIsNumber catches text that isn't a number, which StringToNumber alone would turn into 0.

Launch a program, wait for its window, act on it

WindowWaitFor polls for up to the timeout (60 seconds at most) and gives a null window if nothing matched. The pattern is a case-insensitive regex over the title; a program's title follows Windows' display language, so match the part that doesn't change.

Pull a value out of copied text with a regex

PCRE2 syntax, case-sensitive unless the pattern starts with (?i), and Unicode-aware (\w matches accented letters). Group 0 is the whole match; a backslash in the pattern is written \\ inside a script string. $1 in a replacement is group 1. The Window*Regex/Shell*Regex builtins use the same engine, always case-insensitive.

Zero-pad a number

Prepend characters until the Text is long enough.

Reverse Text

Walk the Text backwards one UTF-16 unit at a time. Characters outside the Basic Multilingual Plane (most emoji) are two units and would come out split.

Count words on the clipboard

Turn tabs and line breaks into spaces, split on spaces, and count the parts that aren't empty.

Case-insensitive comparisons

Lower-case both sides, because every Text operator and builtin is case-sensitive.

Text ordering is ordinal

< compares UTF-16 code units: every uppercase ASCII letter sorts before every lowercase one.

Fill a template and paste it

StringReplace fills %NAME% placeholders. The clipboard is saved and restored around the paste.

Join clipboard lines into one line

Split on \n. StringTrim also removes the \r of Windows line endings, so this works whether the lines end with \r\n or \n alone.

Search the web for the selected text

ClipboardCopySelection waits for the copy to land instead of guessing. StringUrlEncode keeps &, #, spaces and accented letters from breaking the address. Encode the search term only, never the whole URL.

One gesture, several choices

UIShowMenu takes one item per line (- alone is a separator) and returns the chosen item's index, counting from 0 and skipping separators, or -1 when dismissed. UIShowInputBox returns "" on Cancel.

Today's date, and a timestamped file name

DateTimeGetNow returns ISO 8601 text. DateTimeFormat writes it the user's way, or as a FileStamp that sorts by time and is safe in a file name.

Named constants vs raw numbers

A constant compiles to its number, so these calls are identical. Hex matches the Win32 documentation.

Toggle maximize for the gesture's window

The most common gesture action. ContextGetWindow is the window the gesture started over.

Pin a window on top

WindowSetTopmost sets always-on-top explicitly, and WindowToggleTopmost flips it. A window property remembers which state this script chose.

Cycle window transparency

Steps opacity from 255 down to 105 and back to 255. A window that isn't layered reports 255.

Snap the active window to the left half of its monitor

Uses the work area (true) so the window doesn't cover the taskbar.

Snap a window into a 3×2 grid cell under the cursor

Region* builtins split a rectangle into cells, find the cell containing a point, and give its bounds.

Throw a window to the next monitor

The second argument moves the mouse along with the window.

List visible top-level windows

Enumerate-then-index, skipping hidden, cloaked and untitled windows.

Minimize every window of one app

Matches the executable with a case-insensitive regular expression. Note the \\.: a regex \. written inside a script string.

Close windows by title pattern, after confirming

A regex over titles, a count in the message, and a check of which button was clicked.

Remember and restore a window's position

Window properties keep Integers on the window itself, between runs, until it closes or Input.Observer exits. A property that was never set reads 0.

Inspect a window's child controls

Children use the same window cache as top-level enumeration.

From process to window

Enumerate process ids by executable name, then find each one's window.

Describe what's under the cursor

The control under a point, its top-level window, and the point translated into client coordinates.

Hide a window in the tray

Minimize to the notification area. TrayRestoreAllWindows() brings every one back.

Everything the trigger context knows

Attach this to a gesture to see what its script can read.

Which way did the stroke go?

Compare the first and last points and pick the dominant axis.

Branch on the stroke button

ContextGetStrokeButton returns a MouseButton.* value, or -1 outside a gesture or mouse-button trigger and for a gesture drawn with the draw key.

Scroll over the taskbar to change the volume

For the Wheel — vertical global event. ContextGetWheelDelta is above 0 when the wheel turns away from you, and the taskbar's window class says where the pointer is.

Screenshot the area you circled

Saves the gesture's bounding box as a PNG in Pictures.

Let an unrecognized drawing through

If a gesture was drawn over a drawing app, replay the stroke to the app as a normal drag.

Click somewhere, then put the cursor back

Save the cursor position in variables, click, and return.

Click a point inside a window

Client coordinates stay correct wherever the window has been moved.

A scripted drag

Press, move in steps, release. The separate down, move and up builtins exist for this.

Scroll by notches

One wheel notch is 120. Negative scrolls down or left.

Confine the cursor to a window for 5 seconds

MouseLockToRect applies system-wide until MouseUnlock, so always pair them.

Key combos

Modifier prefixes ^ Ctrl, + Shift, % Alt and @ Win, then one key.

Type a signature

KeyboardTypeText types characters, and sends each line break in its text as a real Enter key press. Between two calls, press Enter on its own with KeyboardPressKeyCombo.

Shift-click

Hold a key around a mouse action, and release it in the same script. A key left down stays down.

Media keys

Send media and volume keys by their VirtualKey names.

Change behavior while Ctrl is held

Check a live key state to give one gesture two meanings.

Uppercase the selected text

Copy the selection, change it, paste it back, and restore whatever was on the clipboard before.

Search the web for the selection

Copy the selection and open a search URL. Spaces become +. To encode every other character too, use StringUrlEncode, as Search the web for the selected text does.

Save a copied image to a file

Writes the clipboard's image to disk and reports the outcome.

Append to a log file

Creates the file with a header the first time, then appends one line per run.

Read a file and count its lines

FileReadText returns the whole file as Text, which then splits on \n.

Count file types in a folder

Enumerates a folder without recursion and counts matches case-insensitively.

Back up a file before editing it

Copy with overwrite, then replace the contents.

Watch a folder

Combine FileNotify flags with |. The watch's script is Text, so its inner quotes are escaped. It reads what happened through ContextGetWatch*.

A repeating timer that counts

A timer's script has its own variables, so Storage carries the count between firings. Fires 5 times, a second apart.

Timer script from a snippet, no escaping

Keep a long timer script in a snippet and pass its text, so there are no nested quotes to escape.

List and stop timers

Enumerate the named timers, and delete one or all of them.

A toggle that survives between runs

StorageGetValue of a key that was never set is Integer 0, which is falsy, so the first run turns the mode on. The value lasts until Input.Observer exits; the Persistent builtins keep one across restarts.

A counter that survives a restart

The Storage*Persistent* builtins keep values in storage.toml beside the configuration, so they're still there after Input.Observer restarts. Plain text, never encrypted: don't keep passwords there. Windows can't be kept; a handle means nothing after a restart. If storage.toml exists but can't be read when Input.Observer starts, StorageSetPersistentValue returns false: the value is kept only until Input.Observer exits, and nothing is saved until the next start.

A list kept in Storage

No arrays, but numbered keys built with StringFormat work like one.

Let only one action run a section at a time

A named lock stops two overlapping runs from interleaving. Check the result against LockResult, and release the lock when you're done.

Ask a question

Buttons and icon are Text names. The result is the name of the clicked button.

Volume up with an on-screen display

Volume is a Real from 0.0 to 1.0. UIShowDisplayMessage takes 19 positional arguments.

A live-updating display message

Keep the session id and pass it to UIUpdateDisplayMessage with the same 19 arguments.

A Windows notification

A title and a message, shown as a toast.

Toggle the microphone mute

The Capture endpoint is the default recording device.

Play a sound

WAV and MP3 files from a path.

Launch or switch to an app

Activates the app if it's already running, otherwise starts it.

Run a program with a verb and window style

The verb is a ShellVerb constant or any verb as Text. The window style is a WindowStyle constant.

Run and wait for exit

With waitForExit set to true, the script's thread blocks until the program closes. Input keeps flowing meanwhile. Stopping all actions ends the wait: the program keeps running and the call returns false.

Expand environment variables

Builds a path that works on every user's machine.

Hand off to AutoHotkey

Runs AutoHotkey code out of process, waits for it to exit and returns its exit code, or -1 if AutoHotkey isn't set up. AutoHotkeyStartScript starts code that keeps running, such as hotkeys, and returns at once.

List monitors

Name, full bounds, work area and DPI for each monitor, by index.

Send a window to a specific monitor

By index from the enumeration, falling back to the next screen when that monitor doesn't exist.

Cycle to the next gesture profile

Find the active profile's index, add one, and wrap around with the remainder idiom.

Engine state

Read whether the engine is disabled or in Safe Mode, then pause it. Re-enable it from the tray menu.

Let the next right-drag through

Skips gesture capture once, so the next right-button drag goes to the app.

Snippets as reusable functions

Pass arguments and results through Storage. The snippet runs to completion before the next line.

Talk to a plugin

Sends a Text command to a connected plugin and waits up to the timeout for its Text reply.

Ask a serial device a question

Open the port, write a line, wait up to 2 seconds for the reply, and close the port. Parity and stop bits are constants.

Map a serial device's buttons to media keys

A monitor runs its script for every received line. ContextGetSerialTextLine is the line.

List the COM ports

Which ports exist right now, such as the one an Arduino just got when it was plugged in. See Serial devices and Arduino.

Keep an Arduino's port open and send it commands

Open the port once, so a board that restarts when its port opens doesn't miss commands, then send a line and read the reply.

Turn an Arduino knob into a volume control

A potentiometer reading from 0 to 1023 on each line becomes the playback volume.

PreviousBuiltin signatures