Multimedia - Set volume
Declaration
<AMMULTIMEDIA ACTIVITY="volume" DEVICE="text (options)" VOLUME="text (options)" MUTE="on/off" VALUE="number" />
Description
Changes volume settings on the computer. Optionally, allows you turn mute on or off.
Practical usage
See Description.
Parameters
General
Property | Type | Required | Default | Markup | Description |
---|---|---|---|---|---|
Device | Text (options) | Yes | Main Volume |
|
The
sound device on the system that should be acted upon. The available
options are:
|
Set volume | Text (options) | No | (Disabled) |
|
If
enabled, specifies that the volume should be set to a particular
value or increased/decreased by a certain increment. This parameter
is disabled by default. The available options are:
|
Set mute | Text (options) | No | Disabled |
|
If
enabled, turns mute on or off on the specified device. This parameter
is disabled by default. The available options are:
|
Adjust | Number | No | Current | VALUE="50" | The value to set the volume at in correlation with the Set volume parameter. |
Current | --- | --- | --- | --- | Select
Current to set the volume to the value currently set for the
system. NOTE: This parameter does not contain markup and is only displayed in visual mode for task construction and configuration purposes. |
Example
NOTE:
- Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
- To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.
Description
This sample task decreases the volume level by 51.
Copy
<AMMULTIMEDIA ACTIVITY="volume" DEVICE="window_sound" VOLUME="decrease" VALUE="51" />