Commands
From ControlPad
Commands
The syntax of the command you enter in the Command Dialog determines how ControlPad executes your command.
| Syntax | Example | Meaning |
|---|---|---|
| Any Windows command, filename or URL | Notepad | Accepts anything that can be run through the Windows Run... dialog. You may use relative path (relative to the location of ControlPad.exe). In order to use dynamic URLs, which will ask you for input when executed (e.g. for search engine URLs), see the Dynamic Input section. |
| C:\Path\To\Some.exe | ||
| C:\Path\To\Document.doc | ||
| RelativeDir\Notes.txt | ||
| http://www.example.com | ||
| +Key Sequence (see Keystroke Reference) | +Best Regards {Enter} John | Sends a key sequence to the active window. |
| +!{F4}{ESC} | Sends Alt+F4 then Escape | |
| +user{TAB}password{ENTER} | Sends "user" then tab then "password" then Enter | |
| ~InternalCommand (see Internal Commands) | ~OpenCommandFile | Runs an internal ControlPad command. |
| ~Close Notepad | Closes the first found window with "Notepad" in the title | |
| cmd.exe /c Console Command (see Console Commands) | cmd.exe /c ipconfig && pause | Runs a console command. To run a sequence of commands separate with &&. |
| @Command | @cmd.exe /c ipconfig > log.txt && start log.txt | Runs a command in a hidden mode. This is especially useful when you are running console commands and wish to avoid seeing the black console window. Use caution with this syntax as it will also work on any regular application, and will cause its window to be hidden and only visible in the Windows Task Manager. |
| command1;command2 | firefox;iexplore | Runs multiple commands with one code. You may modify the character used as a separator in the Options dialog. You may hold down the Ctrl key while pressing the Browse button (...) in order to add your selected file as an additional command. |
| *code*code (see Combination Commands) | *12*13 | Combination Command - runs the commands associated with one or more codes. |