Actions
Here you will find a list of all the current supported actions & parameters in this program as well as planned ones. Actions
is what the software reacts to. The program searches for a specific file on your computer, if that file contains one of the supported actions it will then execute that action. Some actions have parameters
, something that the action (may) need to be executed.
Supported actions
shutdown
- Description: Shuts down the computer
- Parameters: optional
- All accepted shutdown parameters: list
- Use parameter
abort
to abort a scheduled shutdown - Default:
/s /t 0
- Description: Parameters are added after the
/s
parameter:/s %parameters%
. If/t
is not a part of the parameter/t 0
will be appended after the ACC-parameter:/s %parameter% /t 0
restart
- Description: Restarts the computer
- Parameters: optional
- All accepted shutdown parameters: list
- Default:
/r /t 0
- Description: Parameters are added after the
/r
parameter:/r %parameters%
. If/t
is not a part of the parameter/t 0
will be appended after the ACC-parameter:/r %parameter% /t 0
open
- Description: Open file or folder located in Documents/AssistantComputerControl/shortcuts/ if no full path is set. If the parameter is a full path, the file/folder at the full location will be opened.
- Parameters:
- File path (required)
- Type: Full path or name of file
- Description: Full path to the file or folder you wish to open. This can also simply be the name and extension of the file, if the file is located in the
shortcuts
ACC folder, which is located atDocuments/AssistantComputerControl/shortcuts
. Use backslash (\
) instead of normal slash (/
) for full paths. (please note that if you wish to open shortcuts, the extension is.lnk
, L, not i) - Example:
open:C:\Users\myuser\Documents\Music\my_music.mp3
or if the file is located in the shortcuts folder;open:my_music.mp3
- Secondary: Argument (optional)
- Type: Text
- Description: If you wish to pass arguments / parameters to the file you're opening, it's defined here.
- Example:
open:C:\Documents\my_batch_file.bat{this will be passed as an argument}
- File path (required)
open_all new as of 1.1.0
- Description: Opens all files and folders at a specific path
- Parameter: Path (required)
- Example:
open_all:C:\Users\my_user\Documents\my_awesome_folder
- Description: Folder where all files & folders should be opened. Should be a full path
- Type: full path
- Example:
sleep
- Description: Puts the computer in sleep mode
- Parameters: optional:
%bool%
- Description: Whether to force sleep-mode or not. True = force sleep
- Default:
true
- Type: boolean (true/false)
hibernate new as of 1.1.0
- Description: Puts the computer in hibernate state
- Parameters: optional:
%bool%
- Description: Whether to force hibernate-mode or not. True = force hibernation
- Default:
true
- Type: boolean (true/false)
logout
- Description: Logs out of the current user
- Parameters: none
lock
- Description: Locks the current user (password, if set, will be required again)
- Parameters: none
mute
- Description: Mutes or unmutes current playback device
- Parameters: optional:
%bool%
- Description: Whether to "mute" or "unmute". If no parameter is set the action is a toggle (if muted it unmutes, if unmuted it mutes)
- Type: boolean (true/false)
set_volume
- Description: Sets the volume of the current playback device to x percent
- Parameters: Required
%number%
- Description: the number-percent the volume of the current playback device will be set to
- Type: number
- Range: 0-100
- Notice: When using IFTTT the parameter (number) has to be the last item in the phrase. So "... set pc volume to 40 percent" will most likely not work, but "... set pc volume to 40" always will*
music
- Parameters: Required:
-
next
- Description: Plays the next song in queue
-
play_pause
- Description: Toggles between play/pause
-
previous
- Description: Plays the previous song
- Notice: In most cases, this will just go to the start of the current song (replay it). For applications where this is the case, use the action below:
previousx2
-
previousx2
new as of 1.1.0- Description: Does the
previous
action twice. Useful for applications like Spotify that require a "previous" command twice to not just go back to the start of the song
- Description: Does the
-
die
- Description: Closes ACC
- Parameters: none
monitors_off new as of 1.1.0
- Description: Turns all monitors connected your computer black (doesn't actually turn them off). Press any key on the PC to turn them on again. Note: In some cases, the PC will be locked after the monitors have been turned off
- Parameters: none
message_box new as of 1.1.0
- Description: Creates a message box with a custom message and title
- Parameters:
- This action supports two parameters. One for the message, and another for the title.
- Example:
message_box:this is the content!{And this is the title}
- Primary:
message
required- Description: the message to be displayed in the message box
- Type: text
- Secondary:
title
optional- Description: the title/name of the message box
- Type: text
create_file new as of 1.1.0
- Description: Creates a file at the desired location with any path, name and extension
- Parameter: Path required
- Type: Full path with extension
- Description: Full path to where you wish the file to be created with the file-name and extension. Cannot create folders. Cannot create file in locations that require administrative access unless you have opened ACC with admin rights.
- Example:
create_file:C:\Documents\new_file.txt
delete_file new as of 1.1.0
- Description: Deletes file or folder at a specific path
- Parameter: Path required
- Type: Full path. If file; with extension
- Description: Full path to the file or folder you wish be delete. Cannot delete files or folders in locations that require administrative access unless you have opened ACC with admin rights.
- Example:
delete_file:C:\Documents\new_file.txt
&delete_file:C:\Documents\my_folder
append_text new as of 1.1.0
- Description: Writes text to a file
- Parameters:
- Primary: path
- Type: Full path to file
- Description: Full path to the file or folder you wish be delete. Cannot delete files or folders in locations that require administrative access unless you have opened ACC with admin rights.
- Secondary:
- Type: Text
- Description: The text you want to write to the file. Use
\n
for a linebreak.
- Example:
append_text:C:\Documents\new_file.txt{This will be written in the file\nThis is a new line\nAnd another newline}
- Primary: path
write_out new as of 1.1.0
- Description: Speech to text. Writes out what you say to your assistant in the active text field
- Parameter: Text to write
- Type: Text
- Description: The text that shoud be inserted to the text/input field. Assistant-wise it only works with Google Assistant, as Amazon Alexa still doesn't allow parameters in their IFTTT applets.
- Example: (for Google Assistant on IFTTT)
write_out:{{TextField}}
where the{{TextField}}
is everything said as the variable, e.g.;Hey Google, PC write out {{TextField}}
Total: 18 actions (20 including all 3 music
parameters)
* More in-depth explanation: IFTTT will sometimes treat a number-parameter like a word if it isn't the last word in the pickup-phrase. So the if anything comes after the number, like "percent", IFTTT might pick it up as "five" instead of "5"
Updated less than a minute ago