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.
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.
| 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. |
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.
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.
Accept the license agreement. The agreement is in English in every language.
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.
On a new installation, setup asks how gesture trails, hints and messages are drawn:
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.
If the .NET 10 Desktop Runtime is missing, setup downloads it from Microsoft and installs it.
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 time Input.Observer starts, it can show these windows, in this order:
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.
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.
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:
Starting Input.Observer again from the Start menu while it is already running only shows a message that it is already running.
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.
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.
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.
When you let go, Input.Observer brings the window you started drawing over to the front, then runs the matched action.
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.
The half second and the 5 pixels are the defaults. Both can be changed on the General page. See Drawing a gesture.
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.
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.
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.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.
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.
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.
Nothing you change in the configuration window takes effect until you apply it. See The configuration window, The Actions page and Steps.
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.
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.
notepad.exe. Every window of that program now belongs to the 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.
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.
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.
See Ignore groups for every rule, and The tray icon for the paused state.
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.
Now press Ctrl+Shift+Alt+N anywhere: Notepad opens.
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.
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.
;addr. Start it with a character such as ; so it
never matches an ordinary word.Open Notepad, type ;addr and press Space. The code disappears, the address appears, and the
space follows it.
;addr expands; ;Addr doesn't.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.
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.
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.
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.
Use Safe Mode when an action or script misbehaves as soon as Input.Observer starts.
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.
Right-click the tray icon and choose Exit ③.
See The tray icon for every menu item.
You have finished the quick start. The User manual covers every feature in detail.
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.
| 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:
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. |
Input.Observer is two programs that work together.
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.
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.%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.
This is what happens when you draw a gesture with the default settings.
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:
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.
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.
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.
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.
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.
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.
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 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.
| 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 |
Pages that hold many items show them in a 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.
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:
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.
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:
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 bar along the bottom edge shows, from left to right:
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.
The Simple | Advanced switch in the title bar changes what the window shows:
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… (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.
The walk-throughs are in the Quick start: a gesture, one program and leaving a program alone.
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:
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.
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.
| 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. |
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.
| 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. |
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.
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.
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.
Opens the configuration window, or brings it to the front. Same as double-clicking the icon.
Opens the diagnostic console, where the engine and your scripts write messages and where you can run a script directly. See Console.
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.
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.
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.
Opens the folder that holds the configuration file in use, in File Explorer.
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.
Enter or replace your license key without restarting. Grayed while a license key is being saved. See About and license.
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.
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 the icon is gray, Enabled and Global Actions are grayed, and clicking the icon once does nothing. Every other item works.
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.
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.
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.
Saving your changes in the configuration window so the engine starts using them. Nothing you change takes effect before that. See Saving and applying.
One of the ways an action can be written, run by an AutoHotkey installation you provide. See Steps, Script and AutoHotkey.
Actions that run just before, or just after, the actions of an app group. Advanced mode only. See Before and after actions.
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.
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.
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.
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.
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.
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.
One saved drawing of a gesture. A gesture can have several examples; a stroke is scored against each of them. See The gesture library.
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.
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.
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.
Every gesture you have, on the Gestures page, whether or not an action uses it. See The gesture library.
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.
One of a fixed set of moments, such as Nothing matched or Draw button released, that can run an action. See Global events.
The small window near the pointer that shows, while you draw, which action your stroke matches. See Hints and messages.
An action's Hint note: a short text the hint shows under the action's name. See The Actions page.
A key combination that runs an action. See Hotkeys.
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.
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.
How closely a stroke must match a gesture to count, from Forgiving to Strict. 75 by default. See How a stroke is matched.
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.
Whether a gesture's modifier must be held before you start drawing, pressed while drawing, or either. Advanced mode only. See Modifiers and timing.
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.
A separate program the engine starts to add features, such as the Styles plugin that draws styled trails. See Plugins.
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.
The step-by-step wizard that makes a gesture action, a hotkey action, a text expansion or an ignore group. See Quick create.
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.
One text expansion entry: the code you type and the text it turns into. See Text expansion.
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.
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.
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.
A pretend desktop where you can run steps without touching your real windows. See Sandbox.
Where an action applies: which app group it belongs to, and so which windows it works in. See Where actions apply.
What an action does, written as text in Input.Observer's script language. See Script language reference.
The two modes of the configuration window. Simple hides advanced pages and settings without changing them. See Simple and Advanced.
A reusable piece of steps or script, kept on the Snippets page, that actions can run by name. See Snippets.
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.
One instruction in an action written as Steps, such as Send keys or Wait. See Steps.
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.
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.
A ready-made look for the trail, the hint and messages, with sounds, chosen on the Appearance page. See Gesture trails.
Replacing a short code you type with longer text. See Text expansion.
The line drawn behind the pointer while you draw a gesture. See Gesture trails.
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.
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.
A trigger that runs an action once for each wheel tick while you hold a draw button, for example to zoom. See Wheel triggers.
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.
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.
The right button is the only draw button at first. You can add or remove buttons on the General page:
Rules:
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.
Rules:
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 press is not a gesture until the pointer has moved far enough from where you pressed:
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.
| 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.
The cancel timeout gives the press back to the window when you hold still:
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.
When a stroke matches an action:
| 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.
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.
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.
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.
Select a gesture in the gallery to work on it:
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.
In the name card ③:
ContextGetGestureName) sees the new
one.Changes take effect when you apply them. See The configuration window.
When you let go of a draw button or the draw key, Input.Observer decides in two stages what to run:
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.
Each comparison gives a score from 0 to 100:
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.
A stroke is not compared with the whole library, only with the shapes in scope for the window you pressed over:
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.
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:
The gesture's own Runs other actions card on the Gestures page lists the same cases from the shape's side.
A stroke that matches no action, at any scope:
The hint disappears while the stroke so far matches nothing, so a missing hint tells you in advance.
Matching settings are on the Gestures page, Settings tab, in the Gesture matching card.
Match threshold ① is the lowest score that counts as a match: 75 by default, from 50 (Forgiving) to 100 (Strict).
The Gestures page's Draw to test card shows a stroke's score against this threshold. See The gesture library.
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:
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.
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.
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.
Below the group's card, a row of tabs splits its settings. Simple mode has two:
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:
The quick start walks through the same task.
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) |
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.(?<=…)), 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.CalculatorApp.exe) and ApplicationFrameHost.exe, the program that hosts its
window.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.
Once a group has two or more rules, choose ④ how they combine under A window belongs to this group when:
This choice shows in Simple mode too. Advanced mode adds a note under it that explains the two choices.
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).
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 is reserved. It has no rules: it applies to every window no other group owns, and it is where groups fall back to.
Advanced mode. These tabs appear after Windows:
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.
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.
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.
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):
Find the owning group. Check the groups in this order and stop at the first one whose rules match the window:
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.
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.
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.
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.
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.
Exclusion zones are checked, for every window and for the scope group. A press inside one goes back to the window. See Exclusion zones.
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.
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.
The scope group's actions. Go through its actions in list order, and each action's triggers in order. A trigger fits when:
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.
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.
Run the winning action, inside the matched group's Before and After actions. See Before and after actions.
Nothing fits: nothing runs, the press is not given back, and the Nothing matched global event runs if you set one up.
| 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.
| 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.
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 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.
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.
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.
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).
Every window belongs to at most one group. To find it, Input.Observer checks:
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.
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 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:
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.
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. |
The Global group can never be an ignore group.
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.
The cells are equal in size. Rows count from the top and columns from the left, in every language.
| 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.
A trigger can name any number of cells. See The Actions page for the rest of the trigger.
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.
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".
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.
The Global group can have regions too, on its own grid over the monitor:
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.
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.
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).
Modifiers are part of a gesture trigger in the Action editor.
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.
A gesture records two sets of modifiers while you draw it:
A trigger's modifiers must equal one of these sets exactly. A subset is not enough, and extra keys are not ignored:
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 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.
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.
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).
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.
Two kinds of modifier can never be held before a gesture starts:
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.
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.
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.
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:
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.
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:
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.
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.
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.
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:
Scope and fallback rules has a worked example.
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:
There is no duplicate button: to copy a profile with its restrictions, use export and import. See Import and export.
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.
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.
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.
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.
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.
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 |
When a gesture matches, these run strictly one after another:
Details:
Context builtins in the script reference).When a group resolves to no Before and no After script, the action runs on its own.
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.
Besides gestures, Input.Observer reacts to the keyboard in two ways, both of which run actions:
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:
Touch and pen explains what happens with touch and pen input, which Input.Observer doesn't support directly.
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.
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.
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 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.
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.
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.
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.
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:
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).
No hotkey action runs:
The stop-all-actions hotkey on the General page is the exception: it works in every one of these states except Safe Mode.
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).
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.
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.
btw.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.
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:
btw doesn't expand inside abtw or concatbtw.btw doesn't expand BTW or Btw. Add a second replacement for each form you
want.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.
These keys end the typed text and make it expand when it matches:
. , ! ?, 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).
The remembered characters are thrown away, and you start a new word, when:
When a boundary completes a typed text that has a replacement for the window in front:
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).
| 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.
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.
A typed text has no window under the pointer. It uses the window in front at the moment you type the boundary:
Gestures work here and Hotkeys work here on an app group don't affect text expansion.
my addr, and expand on a punctuation mark, Tab or Enter.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.
@ 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.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.
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.
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:
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.
EngineDisableNextGesture builtin, for example from a hotkey (Builtins).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 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:
See Drawing a gesture for how a press becomes a gesture or a click.
An action is the unit of work in Input.Observer. It has two halves:
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).
| 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 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.
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:
How a window is matched to an app group is described in App groups.
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.
Nothing takes effect until you apply your changes (The configuration window).
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). |
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.
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.
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:
What each rule means is explained on Hotkeys, Text expansion, Drawing a gesture and Regions.
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.
| 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).
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:
ContextGetWheelDelta (120 up or right, -120 down or left) and the
draw button with ContextGetStrokeButton.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).
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:
ContextGetStrokeButton, and where the pointer was with
ContextGetEventX and ContextGetEventY.A worked example: Middle-click with the right and left buttons.
Advanced mode. A button chord trigger also has Order:
It also has Held modifier keys once a key is chosen, as a wheel trigger does.
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.
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.
The What it does card holds the action's steps or script.
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.
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.
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.
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.
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.
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.
From Steps to Script shows what each kind of step becomes.
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.
AutoHotkey64.exe.The rules:
_UIA in their name, such as
AutoHotkey64_UIA.exe, can't run scripts from Input.Observer.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.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.
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.
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 |
"ahk_id " IO_GestureWindow
names the window in WinActivate, WinGetTitle and the other window functions.CoordMode "Mouse", "Screen" before using them with AutoHotkey's mouse functions,
which otherwise work relative to the active window.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
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.
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).
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 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.
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.
Advanced mode. Above the editor, the call that runs this snippet ③ is shown in Script form, with a button that copies it.
A snippet runs when a step or a script calls the builtin SnippetExecuteScript with its name:
SnippetExecuteScript) from the list of all builtins
(Adding steps) and type the snippet's name as its Name.How it runs:
false.true only when the snippet ran to the end. It also gives false when the snippet
is empty, has an error or is stopped.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.
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.
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.
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.
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.
A recording is a list of steps, one per thing you did, in the order you did it:
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 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.
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 selected recording opens as Steps ②. Switch to Script to see it translated to the script language.
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).
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.
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 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.
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.
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.
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.
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.
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.
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:
A run stops early, with a message, when it:
A compile error, or no answer from the engine, is shown without a replay.
The sandbox only pretends, and real programs can behave differently:
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.
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.
| 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).
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.
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.
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.
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.
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.
Ignore groups, app groups and profiles don't affect global events.
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.
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 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.
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 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."
| 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.
The Trail row chooses what draws the line that follows a gesture:
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.
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.
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.
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.
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.
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.
A purchase comes as a file ending in .ioentitlement. To unlock the styles it holds:
A purchase belongs to the email address of the license it was bought with:
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.
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.
| 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 page remembers the section, the tab and the gallery category you last used.
Each tile ⑤ shows a picture of the style, its name, and its state in words: In use, Free, or Locked with a padlock.
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 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 draws a different style for each gesture.
While you pick, the Shuffle tile's own button on the In use tab reads Done instead of Choose styles, and also ends picking.
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.
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.
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.
Clicking a style tile opens the style's own settings window.
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.
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.
Each style has three sounds: one when a gesture starts, one that plays while you draw and follows your speed, and one on release.
.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.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.
#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.#AARRGGBB keeps its color part; transparency is
Opacity's job.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.
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 has up to three lines:
It follows these rules:
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.
| 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.
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.
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.
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.
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.
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.
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.
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.
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.
| 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.
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.
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).
| 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. |
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 |
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.
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) |
| 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.
| 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 |
| 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 |
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 |
| 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 |
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.
| 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 |
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.
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.
| 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 |
| 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 |
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 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.
.exe).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.
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.
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.
The gear on a plugin's row opens its settings:
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 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.
Input.Observer checks every running plugin every 5 seconds.
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).
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.
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.
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:
Storage builtins);Recordings folder;Logs folder (Recording a trace);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).
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.
The three files are encrypted at once. The tray menu's Set Password... does the same.
Once a password is set, the button reads Change or remove… (the tray menu's item reads Change Password...).
If the current password is wrong, nothing is changed and the page says so.
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.
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.
There is no reset and no recovery code. What you can do depends on the file:
Backup folder are encrypted with the password that
was in use when each was made.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.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.
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 |
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.
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.
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:
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.
Import from StrokesPlus.net… reads a StrokesPlus.net settings file and turns it into an ordinary import preview, so everything above applies.
StrokesPlus.net.json beside its own
program; browse to it there.What to expect:
// 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..bin) can't be read. Start StrokesPlus.net once so it saves
StrokesPlus.net.json, then import that.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.
Input.Observer looks for config.toml in this order:
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.%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) |
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.
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.config.toml under that
name, and start Input.Observer again.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).
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"
Restart Input.Observer, or choose Reload Config from the tray menu, after changing the pointer.
config.toml is a plain-text TOML file, and you can edit it with any text editor. Know these first:
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 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.
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.
Input.Observer.exe itself
as administrator lifts this, but then every action runs as administrator too.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.
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:
%LOCALAPPDATA%\Input.Observer.%LOCALAPPDATA%\Input.Observer and the Input.Observer shortcut in the
Start menu.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.
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 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.
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.
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).
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.
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.
| 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.
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.
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.
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 menu's Apply License Key... opens "i.o - Activate License" with Activate and Cancel. Its status line depends on your license:
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 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.
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.
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.
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).
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 |
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:
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.
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.
| 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 needs Input.Observer running.
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 starts Input.Observer with nothing that could cause trouble running, so you can fix your configuration.
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.
Backup folder
(Backups).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).UtilityPrint is in the console's User section.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.
C:\Program Files\Input.Observer (for a portable copy, its own folder), and start
Input.Observer.Trace.exe.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.
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.trace.toml, next to the configuration file.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.
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 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:
When your action outgrows Steps, see From Steps to Script. The Script language reference covers the script language and every builtin.
| 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 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.
Each row ① is one step. From left to right a row shows:
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 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.
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.
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:
WindowSendToNextMonitor. This is the name
a script uses.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.
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).
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:
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.
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.
The builtins themselves are documented in Builtin signatures.
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).
Click Remove in the open step, or press Delete while a row (not a text field) has the focus.
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.
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.
| 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.
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.
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).
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.
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.
MouseButton.Secondary. It is -1 for a gesture
drawn with the draw key and for any other trigger.On a switch, a variable you typed earlier shows as a chip; clearing the chip turns the switch off.
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.
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.
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.
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.
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).
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.
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.
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.
A variable name:
_, and doesn't start with a digit;if, else, for, true or false;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.
$count + 1. For that, use Script (From Steps to Script).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.
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.
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.
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:
5 equals 5.0.These are the script language's rules; see Mixed-type rules.
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).
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 (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.
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.
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.
A Repeat block runs the steps inside it more than once.
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.
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.
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 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.
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.
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.
For longer text, or text with line breaks, a typed shortcut on the Text expansion page is often simpler.
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.
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.
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.
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.
Screens are taken left to right, then top to bottom, and the last one wraps to the first. A maximized window stays maximized.
Quick create… offers this action ready-made as Maximize or restore the window.
ContextGetWindow) with Save result as window keeps the window under the
gesture.WindowIsMaximized), its Window field $window.$window restores the 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.
WindowTitleContains):
Window is Target window, Text is Notepad. It is true when the window's title contains
"Notepad", in any upper and lower case.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.
Send keys can't press media keys, so this recipe uses the KeyboardPressKey
builtin, which presses any key by its name.
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).
Quick create… offers this action ready-made as Paste as plain text.
text reads the copied text without its formatting.$text puts that plain text on the clipboard and pastes it.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.$answer, is equal to (==),
Compared with Yes.5.50 milliseconds gives the program time to keep up.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.
Steps covers most actions. Switch to Script when you need something a step can't hold:
Switching never loses your steps: an action keeps its Steps body and its Script body side by side (Steps, Script and AutoHotkey).
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.
The text form itself, every kind of step and its fields, is described in The Steps engine.
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:
| 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).
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.
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.
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).
| 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: 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. |
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.
| 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. |
| 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. |
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. |
| 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). |
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.
The syntax of the script language: source text, literals, value types, variables, statements and operators.
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:
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.
// 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 */.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.
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.
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.
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.
| 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.
| 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.
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.
total = 0; There's no declaration keyword and no type
annotation.if branch compiles when it's used after the if. If
that branch didn't run, the variable holds Integer 0.{ } 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.x and x(…) are told apart by the
parenthesis, though reusing a builtin's name isn't recommended.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 } ] ")" ;
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;.
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 / elseThe 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.
forfor (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.
{ ... } groups statements anywhere a single statement is expected, including at the top level.
It doesn't open a new variable scope.
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.
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). |
Working with text, numbers, bit flags and named constants in a script.
+ 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){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}."" for a value you don't use:
StringFormat("{0} items", n, "").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.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.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.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.
== 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.
7 / 2 is 3. Make one side a Real for a fractional result:
7 / 2.0 or n * 1.0 / d.%. 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.0 and doesn't stop the script. Test the divisor yourself if 0 would
be a misleading answer.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.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.rad = deg * MathGetPi() / 180.&, |, ^, ~, << 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.
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 |
The Oem* keys are named by the symbol they produce on a US keyboard. The physical key varies with
the layout.
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}.
Calling builtins, control-flow idioms, how scripts run, errors, the language's limits, the Steps engine and common gotchas.
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.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.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.for whose step assigns a variable to itself.if.n - (n / d) * dif (cond) x = a; else x = b;SnippetExecuteScript.
It gets its own variables, so pass values through Storage.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.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).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).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.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* 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.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.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:
B1, B2, ... A serial
monitor turns each line into a shortcut, a media key or a window command.LED 255 0 0 to a board driving an LED strip, so a
light shows that recording is on or the build failed.SerialWriteTextLine per command.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.
baudRate) must match the device: the number in an Arduino sketch's
Serial.begin(...), usually 9600 or 115200.8, SerialParity.None,
SerialStopBits.One. Write the constants: the plain number 1 as a stop-bits argument means one
and a half stop bits.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.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.
SerialWriteTextLine, so a monitor can answer its device. SerialGetTextLine can't read a
monitored port: every line goes to the monitor.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.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.
| 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; |
These are missing on purpose, and each has a workaround:
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.ifs.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.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:
args: args = [{ fn = "WindowGetActive" }]left/right: left = { fn = "ContextGetPointCount" }, right = 20value: value = { fn = "EngineIsSafeMode" }repeat's times: times = { fn = "FolderWatchGetCount" }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"
| 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 |
Every builtin's signature and the library of example scripts.
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.
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.
The smallest script. UtilityPrint writes to the diagnostic console: to the Script tab when the
script runs from there, otherwise to the User tab.
One variable of each kind, printed through StringFormat, which is the only way to turn a non-Text
value into Text.
What if considers true for each kind: non-zero numbers, non-empty Text, non-null handles.
Sort the cursor's horizontal position into thirds of the monitor under it.
All three parts of for are assignments or expressions of your choosing.
Nested for loops building one line of Text per row.
The condition does the "while" work, and the counter caps it at 5 seconds.
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.
Set the counter past the limit to break. Put the rest of the body inside an if to continue.
Two C precedence traps, and the explicit parentheses that fix them.
Both operands always run, which matters when the right side has an effect or can fail.
Integer and Real compare numerically. Every other pair of different kinds is simply unequal.
Combinations an operator doesn't understand give Integer 0 without an error. Print a value when a result looks wrong.
Line and block comments, a stray semicolon, and a top-level block (which doesn't create a scope).
Integer division truncates toward zero, one Real operand gives a Real result, and dividing by zero gives 0.
n - (n / d) * d is C's %. With a power-of-two divisor, a mask does the same for non-negative
numbers.
An Integer passed where a builtin declares Real becomes a Real. Rounding goes halves away from zero.
MathClamp (like MathMin/MathMax) takes either numeric kind and returns the winner as it was.
MathRandom includes both ends of the range.
Adds up the straight-line distance between consecutive gesture points. The Integer sum of squares
becomes Real on its way into MathSqrt.
Degrees to radians, trigonometry on Reals, and MathRound back to Integer pixel coordinates.
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.
The four standard mask operations on your own flag values.
Unpack the 0xRRGGBB Integer with shifts and masks.
No builtin formats hex, so peel off four bits at a time and look each digit up in a Text.
Shift through all 64 bits and add each low bit.
>> keeps the sign, and a shift amount outside 0–63 gives 0.
The ordinary way needs a temporary variable. XOR swaps without one.
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.
Double every backslash in a path. \t, \n and \r are escapes, and any other backslash is
dropped.
StringFormat fills {0} and {1} only. Nest a call, or join several with +.
StringSplit returns the count, and StringGetSplitPartAt reads each part. Parts between two
adjacent delimiters are empty.
The inner split replaces the outer split's parts, so re-split the outer list at the top of every pass.
There's no LastIndexOf, so check every position and keep the last match.
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.
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.
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.
Prepend characters until the Text is long enough.
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.
Turn tabs and line breaks into spaces, split on spaces, and count the parts that aren't empty.
Lower-case both sides, because every Text operator and builtin is case-sensitive.
< compares UTF-16 code units: every uppercase ASCII letter sorts before every lowercase one.
StringReplace fills %NAME% placeholders. The clipboard is saved and restored around the paste.
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.
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.
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.
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.
A constant compiles to its number, so these calls are identical. Hex matches the Win32 documentation.
The most common gesture action. ContextGetWindow is the window the gesture started over.
WindowSetTopmost sets always-on-top explicitly, and WindowToggleTopmost flips it. A window
property remembers which state this script chose.
Steps opacity from 255 down to 105 and back to 255. A window that isn't layered reports 255.
Uses the work area (true) so the window doesn't cover the taskbar.
Region* builtins split a rectangle into cells, find the cell containing a point, and give its
bounds.
The second argument moves the mouse along with the window.
Enumerate-then-index, skipping hidden, cloaked and untitled windows.
Matches the executable with a case-insensitive regular expression. Note the \\.: a regex \.
written inside a script string.
A regex over titles, a count in the message, and a check of which button was clicked.
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.
Children use the same window cache as top-level enumeration.
Enumerate process ids by executable name, then find each one's window.
The control under a point, its top-level window, and the point translated into client coordinates.
Minimize to the notification area. TrayRestoreAllWindows() brings every one back.
Attach this to a gesture to see what its script can read.
Compare the first and last points and pick the dominant axis.
ContextGetStrokeButton returns a MouseButton.* value, or -1 outside a gesture or mouse-button
trigger and for a gesture drawn with the draw key.
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.
Saves the gesture's bounding box as a PNG in Pictures.
If a gesture was drawn over a drawing app, replay the stroke to the app as a normal drag.
Save the cursor position in variables, click, and return.
Client coordinates stay correct wherever the window has been moved.
Press, move in steps, release. The separate down, move and up builtins exist for this.
One wheel notch is 120. Negative scrolls down or left.
MouseLockToRect applies system-wide until MouseUnlock, so always pair them.
Modifier prefixes ^ Ctrl, + Shift, % Alt and @ Win, then one key.
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.
Hold a key around a mouse action, and release it in the same script. A key left down stays down.
Send media and volume keys by their VirtualKey names.
Check a live key state to give one gesture two meanings.
Copy the selection, change it, paste it back, and restore whatever was on the clipboard before.
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.
Writes the clipboard's image to disk and reports the outcome.
Creates the file with a header the first time, then appends one line per run.
FileReadText returns the whole file as Text, which then splits on \n.
Enumerates a folder without recursion and counts matches case-insensitively.
Copy with overwrite, then replace the contents.
Combine FileNotify flags with |. The watch's script is Text, so its inner quotes are escaped.
It reads what happened through ContextGetWatch*.
A timer's script has its own variables, so Storage carries the count between firings. Fires 5 times, a second apart.
Keep a long timer script in a snippet and pass its text, so there are no nested quotes to escape.
Enumerate the named timers, and delete one or all of them.
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.
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.
No arrays, but numbered keys built with StringFormat work like one.
A named lock stops two overlapping runs from interleaving. Check the result against LockResult,
and release the lock when you're done.
Buttons and icon are Text names. The result is the name of the clicked button.
Volume is a Real from 0.0 to 1.0. UIShowDisplayMessage takes 19 positional arguments.
Keep the session id and pass it to UIUpdateDisplayMessage with the same 19 arguments.
A title and a message, shown as a toast.
The Capture endpoint is the default recording device.
WAV and MP3 files from a path.
Activates the app if it's already running, otherwise starts it.
The verb is a ShellVerb constant or any verb as Text. The window style is a WindowStyle
constant.
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.
Builds a path that works on every user's machine.
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.
Name, full bounds, work area and DPI for each monitor, by index.
By index from the enumeration, falling back to the next screen when that monitor doesn't exist.
Find the active profile's index, add one, and wrap around with the remainder idiom.
Read whether the engine is disabled or in Safe Mode, then pause it. Re-enable it from the tray menu.
Skips gesture capture once, so the next right-button drag goes to the app.
Pass arguments and results through Storage. The snippet runs to completion before the next line.
Sends a Text command to a connected plugin and waits up to the timeout for its Text reply.
Open the port, write a line, wait up to 2 seconds for the reply, and close the port. Parity and stop bits are constants.
A monitor runs its script for every received line. ContextGetSerialTextLine is the line.
Which ports exist right now, such as the one an Arduino just got when it was plugged in. See Serial devices and Arduino.
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.
A potentiometer reading from 0 to 1023 on each line becomes the playback volume.