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 that the volume should be adjusted in correspondence with the Set volume parameter. |
Current |
Press this button to set the volume to the value currently set for the system. This is a design time parameter, therefore, contains no markups. |
Example
- The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
- Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.
Description
This sample task decreases the volume level by 51.
<AMMULTIMEDIA ACTIVITY="volume" DEVICE="window_sound" VOLUME="decrease" VALUE="51" />