Skip to main content

Console

The console is the engine's own window for diagnosing and trying things out. It shows what the engine reports (problems in your configuration, scripts that failed, plugins that fell back), shows what your scripts print, and has an editor where you can write and run a script on the spot.

Opening the console​

Choose Show Console from the tray menu (The tray icon), or run the UIShowConsole builtin from an action — for example, bind it to a hotkey. Nothing opens the console automatically unless you ask for it with On Message (below).

If your configuration is password-protected, the console asks for the password when it opens, unless it is still remembered (Security). While the console is open, the remembered password doesn't run out. UIShowConsole waits until the console is open, including while the password is asked for, and gives false if it didn't open, for example because the password prompt was cancelled.

The console is closed with its close button. Closing it frees the memory it used.

The three sections​

i.o - Console
SystemUserScript
ExecuteStop AllHide ConsoleScript HelpCopyPasteClear
1
UtilityPrint("Hello");
Hello

The buttons across the top ① switch between three sections, each with its own toolbar.

SectionWhat it showsToolbar
SystemWhat 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
UserEverything your scripts print with UtilityPrint, from every action.Copy, Clear, On Message
ScriptA 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.

While the Script section is showing, new System and User lines also appear in its output pane, so you can watch a running script without switching sections.

While the console is closed​

Lines that arrive while the console is closed aren't lost: they are kept in temporary files and shown the next time you open the console. When Input.Observer exits, they are deleted, except what the Engine shutting down event prints, which the next session's console shows.

i.o - Console
SystemUserScript
CopyClearOn Message
Configuration loaded: 3 app groups, 24 actions.
Action "Close tab" stopped: WindowClose needs a window.

On Message ① on the System and User toolbars chooses what a new line does while the console is closed:

ChoiceWhat happens
Do NothingThe line waits until you open the console. The default.
Show UIShowMessageBoxThe line also pops up in a message box.
Open ConsoleThe console opens on that section.

With the console open, a new line is simply added; it never pops up a box or switches sections. The same choices are on the Console page as New System messages and New User messages.

Running a script​

  1. Open the console's Script section.
  2. Type or paste a script in the editor. It uses Input.Observer's script language (Script language).
  3. Choose Execute ② or press F5. With text selected, only the selection runs; otherwise the whole editor runs.
  4. The output and any error appear in the output pane under the editor. Hide Console hides or shows that pane.
  • A script run here works like an action: every builtin is available, and it runs until it finishes or is stopped. Stop All stops every running script and action, not just this one.
  • This is the one place scripts run in Safe Mode, so you can inspect and repair things while nothing else runs (Troubleshooting).
  • The editor completes builtin names as you type; Ctrl+Space lists everything, and typing an area name and a period lists that area's builtins. After you choose a builtin, a tip shows its parameters, with the current one highlighted. The right-click menu has Comment and Uncomment for the selected lines.
  • The editor's text is kept between sessions in console.toml.

Script Help ③ opens the script language reference in the help window (The help window), in the language Input.Observer uses (or English when there is no help in that language).

The Console page​

note

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.

Input.ObserverSimpleAdvanced
AUTOMATION
Actions
Text expansion
Snippets
Recorder
Sandbox
App groups
Ignore groups
Gestures
ENGINE
Global events
Exclusion zones
Scripts
Plugins
SETUP
General
Appearance
Profiles
Console
Security
Help
About
Console
The diagnostic console, and the fonts the engine's own windows use.
Diagnostic console
Console line limit
5000lines
Free memory when the console closes
New System messages
Nothing
New User messages
Nothing
Engine fonts
Engine window font
Segoe UI
Engine editor font
Consolas
SettingWhat it doesDefaultRange
Console line limitOnce a section holds this many lines, the oldest are dropped as new ones arrive. 0 keeps everything. Takes effect with the next line.5000 lines0–1000000
Free memory when the console closesGives 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.OnOn or off
New System messagesWhat a new System line does while the console is closed: Nothing, Message box or Open console (same as On Message above)Nothing—
New User messagesThe same for User linesNothing—
Engine window fontFont and size for the console's labels and buttons and for the engine's dialogs (password, license)Segoe UI, 12 pt6–72 pt
Engine editor fontFont and size for the console's sections and its script editorConsolas, 13 pt6–72 pt

An open console keeps its fonts until you close it and open it again.