Combination Commands

ControlPad

Combination Commands

For more advanced uses, you may assign one code to run multiple other codes.

The command syntax (as it looks in your command file) is:

code = *code*code*code...

For example, the command *12*13 will run codes 12 then 13 when executed.

Note that commands are executed immediately, without delay. If you would like to create a delay between commands, or to wait for a specific window to open, you should include one of the internal commands in your sequence.

This feature is specifically designed to help you run different types of commands (internal, keystroke etc.) using one code.

Examples

Put these lines in your command file to see how it works.

123 = *55*66
55  = notepad
66  = +{Launch_Mail}

Meaning: When the code 123 is executed, run notepad and press the Launch Mail key on the keyboard (which normally runs your default mail client).

123 = *55*66*77
55  = notepad
66  = ~WinWaitActive Notepad
77  = +Hello World

Meaning: When the code 123 is executed, run notepad, wait for it to become active (for up to 5 seconds) and send the text "Hello World" to it.

123 = *55*66*77
55  = +{Launch_Mail}
66  = ~WinWaitActive Outlook
77  = +^n

Meaning: When the code 123 is executed, start the default mail client, wait for it to become active, then send Ctrl+N to it (normally new message).

123 = *55*66*77
55  = +{Launch_Mail}
66  = ~WinWaitActive Outlook, 10
77  = +^n

Meaning: Same as above, only we will wait for 10 seconds (instead of the default 5) for Outlook to become active.

123 = *55*66
55  = ~MsgBox Press OK to run task manager
66  = taskmgr

Meaning: When the code 123 is executed, show a message box, and when it is closed, run Windows Task Manager.