Commands

From ControlPad

Commands

Command Dialog

The syntax of the command you enter in the Command Dialog determines how ControlPad executes your command.

SyntaxExampleMeaning
Any Windows command, filename or URLNotepadAccepts 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} JohnSends 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)
~OpenCommandFileRuns an internal ControlPad command.
~Close NotepadCloses the first found window with "Notepad" in the title
cmd.exe /c Console Command
(see Console Commands)
cmd.exe /c ipconfig && pauseRuns a console command. To run a sequence of commands separate with &&.
@Command@cmd.exe /c ipconfig > log.txt && start log.txtRuns 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;command2firefox;iexploreRuns 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*13Combination Command - runs the commands associated with one or more codes.