How parameters work
ACC actions can have two parameters. A primary, and a secondary. This article shows how to use them.
How ACC parameters are used
An action is passed to ACC by creating a file in a specific folder, with the content being the name of the action. If the action however must / can receive parameters, this needs to be included in the file as well.
Basic parameter setup example;
The way parameters are included in the file content is as follows;
action_name:primary parameter{secondary parameter}
Example; parameters in the shutdown
action (primary parameter);
As the Actions article shows for the shutdown
action, it accepts an optional parameter, which can be all the Windows shutdown parameters. Fx; /f
for "force shutdown". If we want to include this in the action, it'd look like this;
shutdown:/f
^ this passes "/f" as a parameter to the shutdown
action.
Example; parameters in the set_volume
action (primary parameter);
The set_volume
action requires a parameter; the volume level it should set, anything from 0 to 100. Passing a parameter to set_volume
looks like this;
set_volume:55
^ this will set the volume to 55 on your PC!
Example; parameters in the message_box
action (primary and secondary parameter);
The message_box
action shows a standard Windows message box on your PC. The first parameter determines the content of the message box, and the secondary parameter is the title of the message box. Example;
message_box:This is the content of the message box!{And this is the title!}
Using the parameters in IFTTT applets?
There's an article on how to utilize the parameters with dynamic content depending on what you tell your assistant right here; The use of parameters
Updated almost 4 years ago