From the wonderful RedGuides Wiki
This command is added by MacroQuest
Syntax Key
Notation |
Description
|
Text without brackets or braces |
Required items
|
<Text inside angle brackets> |
Placeholder for which you must supply a value
|
[Text inside square brackets] |
Optional items
|
Vertical bar (|) |
Separator for mutually exclusive items; choose one
|
{Text | inside | braces} |
Set of required items; choose one
|
Ellipsis (…) |
Items that can be repeated
|
Syntax
|
/exec <application [parameters]> [bg|fg]
|
Description
|
Executes the specified command as if from the command line.
|
|
Options
Option |
Description |
bg|fg |
background or foreground |
Examples
- The command
/exec shutdown -s -t 600
, would shut down your PC/laptop after 10 minutes
/exec notepad fg
opens notepad in the foreground
- If you'd like to open MacroQuest.ini with VS Code, first set an application path set in your MacroQuest.ini, like this:
[Application Paths]
vscode="C:\Users\YourName\AppData\Local\Programs\Microsoft VS Code\bin\code.cmd"
You can then open your MacroQuest.ini with the following command:
/exec vscode "${MacroQuest.Path[mqini]}"
See also