volume controller with Parameter



  • This allows you to set the volume to whatever you want,
    by using "ask Trigger cmd to run Volume (ON Computer Name) with parameter (Volume Level)"

    Parameter, when executed, is optional execution deflates to mute volume or unmute volume.

    Trigger: Volume
    Command: wscript "C:\Users\USER NAME\Desktop\Volume.vbs"
    Group: Foreground
    Voice: Volume
    Voice Reply: ok setting Volume
    Allow Parameters: true (IMPORTANT)
    File Name: Volume.vbs
    File Code:
    Set WshShell = CreateObject("WScript.shell")
    Dim Args, Var1
    Set Args = WScript.Arguments
    if wscript.arguments.count > 0 then
    Var1= Args(0)
    Var1= Var1/2
    Var1= Var1-1
    else
    Var1= 0
    end if
    if Var1 = 0 then
    WshShell.SendKeys(chr(173))
    else
    for i = 0 to 49
    WshShell.SendKeys(chr(174))
    next
    for i = 0 to Var1
    WshShell.SendKeys(chr(175))
    next
    end if


Log in to reply
 

Looks like your connection to TRIGGERcmd Forum was lost, please wait while we try to reconnect.