Soundsetvolume nur für den Musikplayer

  • Ich habe einen Musik Player..... *woooow* (selbsterstellt)
    Nun kann man darin über einen Slider die Lautstärke einstellen....
    Bisher habe ich das über SoundSetWaveVolume gemacht,aber leider stellt die Funktion das gesamte System leiser.

    Ich möchte nun also eine über _SoundPlay-gespielte Funktion leiser stellen und brauche eure Hilfe.....

    Dankeschön schonmal !

    Zitat

    Programmieren ist so lange lustig bis ein Fehler auftritt!


    ~ Dankeschön

  • Spoiler anzeigen
    [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundOpen
    ; Description:: Opens a sound file for use with other _Sound functions
    ; Parameter(s): $hFile - The sound file, $sAlias[optianal] - a name such as sound1,
    ; if you do not specify one it is randomly generated
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): string(the sound id) - Success, 0 - Failure
    ; @extended <> 0 - open failed, @error = 2 - File doesn't exist,
    ; @error = 3 - alias contains whitespace
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundOpen($hFile, $sAlias = "")
    ;Declare variables
    Local $sSnd_id, $iCurrentPos, $iRet, $asAlias
    ;check for file
    If Not FileExists($hFile) Then Return SetError(2, 0, 0)
    ;search for whitespace by character
    $asAlias = StringSplit($sAlias, "")
    For $iCurrentPos = 1 To $asAlias[0]
    If StringIsSpace($asAlias[$iCurrentPos]) Then Return SetError(3, 0, 0)
    Next
    ;create random alias if one is not supplied
    If $sAlias = "" Then
    $sSnd_id = RandomStr(10)
    Else
    $sSnd_id = $sAlias
    EndIf

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    ;open file
    $iRet = mciSendString("open " & FileGetShortName($hFile) & " alias " & FileGetShortName($sSnd_id))
    Return SetError(0, $iRet, $sSnd_id)
    EndFunc ;==>_SoundOpen

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundClose
    ; Description:: Closes a sound
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): 1 - Success, 0 and @error = 1 - Failure
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundClose($sSnd_id)

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    If mciSendString("close " & FileGetShortName($sSnd_id)) = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundClose

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundPlay
    ; Description:: Plays a sound from the current position (beginning is the default)
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen or sound file
    ; $fWait - If set to 1 the script will wait for the sound to finish before continuing
    ; - If set to 0 the script will continue while the sound is playing
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): 1 - Success, 0 - Failure
    ; @error = 2 - $fWait is invalid, @error = 1 - play failed
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundPlay($sSnd_id, $fWait = 0)
    ;Declare variables
    Local $iRet
    ;validate $fWait
    If $fWait <> 0 And $fWait <> 1 Then Return SetError(2, 0, 0)

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;if sound has finished, seek to start
    If _SoundPos($sSnd_id, 2) = _SoundLength($sSnd_id, 2) Then mciSendString("seek " & FileGetShortName($sSnd_id) & " to start")
    ;If $fWait = 1 then pass wait to mci
    If $fWait = 1 Then
    $iRet = mciSendString("play " & FileGetShortName($sSnd_id) & " wait")
    Else
    $iRet = mciSendString("play " & FileGetShortName($sSnd_id))
    EndIf
    ;return
    If $iRet = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundPlay

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundStop
    ; Description:: Stops the sound
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen or sound file
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): 1 - Success, 0 and @error = 1 - Failure,
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundStop($sSnd_id)
    ;Declare variables
    Local $iRet, $iRet2

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;seek to start
    $iRet = mciSendString("seek " & FileGetShortName($sSnd_id) & " to start")
    ;stop
    $iRet2 = mciSendString("stop " & FileGetShortName($sSnd_id))
    ;return
    If $iRet = 0 And $iRet2 = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundStop

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundPause
    ; Description:: Pauses the sound
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen or sound file
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): 1 - Success, 0 and @error = 1 - Failure,
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundPause($sSnd_id)
    ;Declare variables
    Local $iRet

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;pause sound
    $iRet = mciSendString("pause " & FileGetShortName($sSnd_id))
    ;return
    If $iRet = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundPause

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundResume
    ; Description:: Resumes the sound after being paused
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen or sound file
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): 1 - Success, 0 and @error = 1 - Failure,
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundResume($sSnd_id)
    ;Declare variables
    Local $iRet

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;resume sound
    $iRet = mciSendString("resume " & FileGetShortName($sSnd_id))
    ;return
    If $iRet = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundResume

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundLength
    ; Description:: Returns the length of the sound in the format hh:mm:ss
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen or sound file,
    ; $iMode = 1 - hh:mm:ss, $iMode = 2 - milliseconds
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): Length of the sound - Success, 0 and @error = 1 - $iMode is invalid
    ; Author(s): RazerM
    ; Mofified: jpm
    ;
    ;===============================================================================
    ;
    Func _SoundLength($sSnd_id, $iMode = 1)
    ;Declare variables
    Local $iSnd_len_ms, $iSnd_len_min, $iSnd_len_hour, $iSnd_len_sec, $sSnd_len_format
    ;validate $iMode
    If $iMode <> 1 And $iMode <> 2 Then Return SetError(1, 0, 0)

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;tell mci to use time in milliseconds
    mciSendString("set " & FileGetShortName($sSnd_id) & " time format miliseconds")
    ;receive length of sound
    $iSnd_len_ms = mciSendString("status " & FileGetShortName($sSnd_id) & " length", 255)

    ;assign modified data to variables
    $iSnd_len_min = Int($iSnd_len_ms / 60000)
    $iSnd_len_hour = Int($iSnd_len_min / 60)
    $iSnd_len_sec = Int(Int($iSnd_len_ms / 1000) - ($iSnd_len_min * 60))
    $iSnd_len_min = $iSnd_len_min - ($iSnd_len_hour * 60)

    ;assign formatted data to $sSnd_len_format
    $sSnd_len_format = StringFormat("%02i:%02i:%02i", $iSnd_len_hour, $iSnd_len_min, $iSnd_len_sec)

    ;return correct variable
    If $iMode = 1 Then Return $sSnd_len_format
    If $iMode = 2 Then Return $iSnd_len_ms
    EndFunc ;==>_SoundLength

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundSeek
    ; Description:: Seeks the sound to a specified time
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen (must NOT be a file), $iHour, $iMin, $iSec
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): 1 - Success, 0 and @error = 1 - Failure,
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundSeek($sSnd_id, $iHour, $iMin, $iSec)
    ;Declare variables
    Local $iMs = 0
    Local $iRet

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;prepare mci to recieve time in milliseconds
    mciSendString("set " & FileGetShortName($sSnd_id) & " time format miliseconds")
    ;modify the $iHour, $iMin and $iSec parameters to be in milliseconds
    ;and add to $iMs
    $iMs += $iSec * 1000
    $iMs += $iMin * 60 * 1000
    $iMs += $iHour * 60 * 60 * 1000
    ; seek sound to time ($iMs)
    $iRet = mciSendString("seek " & FileGetShortName($sSnd_id) & " to " & $iMs)
    ;return
    If $iRet = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundSeek

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundStatus
    ; Description:: All devices can return the "not ready", "paused", "playing", and "stopped" values.
    ; Some devices can return the additional "open", "parked", "recording", and "seeking" values.(MSDN)
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen or sound file
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): Sound Status
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundStatus($sSnd_id)

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;return status
    Return mciSendString("status " & FileGetShortName($sSnd_id) & " mode", 255)
    EndFunc ;==>_SoundStatus

    [/autoit] [autoit][/autoit] [autoit]

    ;===============================================================================
    ;
    ; Function Name: _SoundPos
    ; Description:: Returns the current position of the song
    ; Parameter(s): $sSnd_id - Sound ID returned by _SoundOpen or sound file,
    ; $iMode = 1 - hh:mm:ss, $iMode = 2 - milliseconds
    ; Requirement(s): AutoIt 3.2 ++
    ; Return Value(s): Current Position - Success, @error = 1 - $iMode is invalid
    ; Author(s): RazerM
    ;
    ;===============================================================================
    ;
    Func _SoundPos($sSnd_id, $iMode = 1)
    ;Declare variables
    Local $iSnd_pos_ms, $iSnd_pos_min, $iSnd_pos_hour, $iSnd_pos_sec, $sSnd_pos_format
    ;validate $iMode
    If $iMode <> 1 And $iMode <> 2 Then Return SetError(1, 0, 0)

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0) ; invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;tell mci to use time in milliseconds
    mciSendString("set " & FileGetShortName($sSnd_id) & " time format miliseconds")
    ;receive position of sound
    $iSnd_pos_ms = mciSendString("status " & FileGetShortName($sSnd_id) & " position", 255)
    ;modify data and assign to variables
    $iSnd_pos_min = Int($iSnd_pos_ms / 60000)
    $iSnd_pos_hour = Int($iSnd_pos_min / 60)
    $iSnd_pos_sec = Int(Int($iSnd_pos_ms / 1000) - ($iSnd_pos_min * 60))
    ;assign formatted data to $sSnd_pos_format
    $sSnd_pos_format = StringFormat("%02i:%02i:%02i", $iSnd_pos_hour, $iSnd_pos_min, $iSnd_pos_sec)
    ;return correct variable
    If $iMode = 1 Then Return $sSnd_pos_format
    If $iMode = 2 Then Return $iSnd_pos_ms
    EndFunc ;==>_SoundPos

    [/autoit] [autoit][/autoit] [autoit]

    ;internal functions
    Func mciSendString($string, $iLen = 0)
    Local $iRet
    $iRet = DllCall("winmm.dll", "int", "mciSendStringA", "str", $string, "str", "", "long", $iLen, "long", 0)
    If Not @error Then Return $iRet[2]
    EndFunc ;==>mciSendString

    [/autoit] [autoit][/autoit] [autoit]

    Func RandomStr($len)
    Local $string
    For $iCurrentPos = 1 To $len
    $string &= Chr(Random(97, 122, 1))
    Next
    Return $string
    EndFunc ;==>RandomStr

    [/autoit]


    Das ist meine Sound.au3......
    Gibt es leider keine nützliche Funktion ?(

    Zitat

    Programmieren ist so lange lustig bis ein Fehler auftritt!


    ~ Dankeschön

    • Offizieller Beitrag

    Hi,

    geht

    Spoiler anzeigen
    [autoit]

    #include <Sound.au3>
    $Sound = _SoundOpen("c:\Toll.mp3"); Pick a song that is at least 1 minute long
    _SoundPlay($Sound)

    [/autoit] [autoit][/autoit] [autoit]

    ConsoleWrite(@CRLF & @CRLF & "First: Volume...")

    [/autoit] [autoit][/autoit] [autoit]

    For $i = 1000 To 0 Step -1
    _SoundVolume($Sound, $i)
    ConsoleWrite("Leiser " & $i & @CRLF)
    Sleep(1)
    Next
    For $i = 0 To 1000
    _SoundVolume($Sound, $i)
    Sleep(1)
    Next

    [/autoit] [autoit][/autoit] [autoit]

    ConsoleWrite(@CRLF & @CRLF & "Second: Pan...")

    [/autoit] [autoit][/autoit] [autoit]

    For $i = 0 To 1000 Step 5
    _SoundPanLeft($Sound, $i)
    _SoundPanRight($Sound, 1000 - $i)
    Sleep(1)
    Next
    For $i = 0 To 1000 Step 5
    _SoundPanLeft($Sound, 1000 - $i)
    _SoundPanRight($Sound, $i)
    Sleep(1)
    Next

    [/autoit] [autoit][/autoit] [autoit]

    _SoundPanRight($Sound, 1000); normal
    _SoundPanLeft($Sound, 1000); normal

    [/autoit] [autoit][/autoit] [autoit]

    ConsoleWrite(@CRLF & @CRLF & "Third: Speed...")

    [/autoit] [autoit][/autoit] [autoit]

    _SoundSpeed($Sound, 500)
    Sleep(3000)
    _SoundSpeed($Sound, 800)
    Sleep(3000)
    _SoundSpeed($Sound, 1500)
    Sleep(3000)
    _SoundSpeed($Sound, 2200)
    Sleep(3000)
    _SoundSpeed($Sound, 1000); normal

    [/autoit] [autoit][/autoit] [autoit]

    ConsoleWrite(@CRLF & @CRLF & "Fourth: Info,")

    [/autoit] [autoit][/autoit] [autoit]

    $Info = _SoundInfo($Sound, "Speed")
    ConsoleWrite(@CRLF & "Current speed: " & $Info)

    [/autoit] [autoit][/autoit] [autoit]

    $Info = _SoundInfo($Sound, "Volume")
    ConsoleWrite(@CRLF & "Current volume: " & $Info)

    [/autoit] [autoit][/autoit] [autoit]

    ConsoleWrite(@CRLF & @CRLF & "Done! Enjoy the rest of the song." & @CRLF & @CRLF)

    [/autoit] [autoit][/autoit] [autoit][/autoit] [autoit]

    While 1

    [/autoit] [autoit][/autoit] [autoit]

    WEnd

    [/autoit] [autoit][/autoit] [autoit]

    Func _SoundTimeToMs($Hours, $Minutes, $Seconds)

    [/autoit] [autoit][/autoit] [autoit]

    Return ($Hours * 3600000) + ($Minutes * 60000) + ($Seconds * 1000)

    [/autoit] [autoit][/autoit] [autoit]

    EndFunc ;==>_SoundTimeToMs

    [/autoit] [autoit][/autoit] [autoit]

    Func _SoundMsToTime($ms)
    Local $Return[3]
    If $ms >= 3600000 Then; 1000*60*60 = 3600000
    $Hours = Floor($ms / 3600000)
    $Rest = $ms - ($Hours * 3600000)
    Else
    $Hours = 0
    $Rest = $ms
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    If $Rest >= 60000 Then; 1000*60 = 60000
    $Minutes = Floor($Rest / 60000)
    $Rest = $Rest - ($Minutes * 60000)
    Else
    $Minutes = 0
    $Rest = $ms
    EndIf

    [/autoit] [autoit][/autoit] [autoit]

    $Seconds = Round($Rest / 1000)

    [/autoit] [autoit][/autoit] [autoit]

    $Return[0] = $Hours
    $Return[1] = $Minutes
    $Return[2] = $Seconds

    [/autoit] [autoit][/autoit] [autoit]

    Return $Return

    [/autoit] [autoit][/autoit] [autoit]

    EndFunc ;==>_SoundMsToTime
    Func _SoundInfo($sSnd_id, $Parameter); look at "http://msdn2.microsoft.com/en-us/library/ms713277(VS.85).aspx" at the table "digitalvideo" for possible parameters

    [/autoit] [autoit][/autoit] [autoit]

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0); invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    ;return status
    Return mciSendString("status " & FileGetShortName($sSnd_id) & " " & $Parameter)
    EndFunc ;==>_SoundInfo
    Func _SoundSpeed($sSnd_id, $Speed); $Speed: 0 - 2267, 1000= normal
    ;Declare variables
    Local $iRet

    [/autoit] [autoit][/autoit] [autoit]

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0); invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    If $Speed < 0 Or $Speed > 2267 Then Return SetError(1, 0, 0)

    [/autoit] [autoit][/autoit] [autoit]

    $iRet = mciSendString("set " & FileGetShortName($sSnd_id) & " speed " & $Speed)
    ;return
    If $iRet = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundSpeed
    Func _SoundPanLeft($sSnd_id, $Pan); $Pan: 0 - 1000, 1000= normal
    ;Declare variables
    Local $iRet

    [/autoit] [autoit][/autoit] [autoit]

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0); invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    If $Pan < 0 Or $Pan > 1000 Then Return SetError(1, 0, 0)

    [/autoit] [autoit][/autoit] [autoit]

    $iRet = mciSendString("setaudio " & FileGetShortName($sSnd_id) & " left volume to " & $Pan)
    ;return
    If $iRet = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundPanLeft

    [/autoit] [autoit][/autoit] [autoit]

    Func _SoundPanRight($sSnd_id, $Pan); $Pan: 0 - 1000, 1000= normal
    ;Declare variables
    Local $iRet

    [/autoit] [autoit][/autoit] [autoit]

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0); invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    If $Pan < 0 Or $Pan > 1000 Then Return SetError(1, 0, 0)

    [/autoit] [autoit][/autoit] [autoit]

    $iRet = mciSendString("setaudio " & FileGetShortName($sSnd_id) & " right volume to " & $Pan)
    ;return
    If $iRet = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundPanRight

    [/autoit] [autoit][/autoit] [autoit]

    Func _SoundVolume($sSnd_id, $Volume); $Volume: 0 - 1000, 1000= normal
    ;Declare variables
    Local $iRet

    [/autoit] [autoit][/autoit] [autoit]

    If StringInStr($sSnd_id, '!') Then Return SetError(3, 0, 0); invalid file/alias

    [/autoit] [autoit][/autoit] [autoit]

    If $Volume < 0 Or $Volume > 1000 Then Return SetError(1, 0, 0)

    [/autoit] [autoit][/autoit] [autoit]

    $iRet = mciSendString("setaudio " & FileGetShortName($sSnd_id) & " volume to " & $Volume)
    ;return
    If $iRet = 0 Then
    Return 1
    Else
    Return SetError(1, 0, 0)
    EndIf
    EndFunc ;==>_SoundVolume

    [/autoit] [autoit][/autoit] [autoit]

    ;~ _SoundInfo()
    ;~ Parameters:
    ;~ audio
    ;~ audio alignment
    ;~ audio bitspersample
    ;~ audio breaks
    ;~ audio bytespersec
    ;~ audio input
    ;~ audio record
    ;~ audio source
    ;~ audio samplespersec
    ;~ audio stream
    ;~ bass
    ;~ bitsperpel
    ;~ brightness
    ;~ color
    ;~ contrast
    ;~ current track
    ;~ file completion
    ;~ file format
    ;~ file mode
    ;~ forward
    ;~ frames skipped
    ;~ gamma
    ;~ input
    ;~ left volume
    ;~ length
    ;~ media present
    ;~ mode
    ;~ monitor
    ;~ monitor method
    ;~ nominal
    ;~ nominal frame rate
    ;~ nominal record frame rate
    ;~ number of tracks
    ;~ output
    ;~ palette handle
    ;~ pause mode
    ;~ play speed
    ;~ position
    ;~ ready
    ;~ record frame rate
    ;~ reserved size
    ;~ right volume
    ;~ seek exactly
    ;~ sharpness
    ;~ smpte
    ;~ speed
    ;~ start position
    ;~ still file format
    ;~ time format
    ;~ tint
    ;~ treble
    ;~ unsaved
    ;~ video
    ;~ video key index
    ;~ video key color
    ;~ video record
    ;~ video source
    ;~ video source number
    ;~ video stream
    ;~ volume
    ;~ window handle
    ;~ window visible
    ;~ window minimized
    ;~ window maximized

    [/autoit]

    Mega