Jump to content
Sign in to follow this  
michail

Control sound level of WMP

Recommended Posts

michail

Hello!

Is there any way to control the level of sound of Windows Media Player with AutoIT? Any special command or function... For example, I need to make the volume of 55

OS: XP/Vista/7

Edited by michail

Share this post


Link to post
Share on other sites
Fire

Hi michail.

I`m not sure is it that exactly what you are looking for but i think only about this way.

#cs

Right Arrow for Up Volume

Left Arrow for down Volume

Down Arrow for Mute

Tested under: Win XP SP2

Windows Media Player 11.0.5721.5145


#ce




HotKeySet("{RIGHT}", "UP")

HotKeySet("{LEFT}", "DOWN")

HotKeySet("{DOWN}","Mute")

HotKeySet("{ESC}","_exit")


While 1
Sleep(98)
WEnd


Func UP()

    if ProcessExists("wmplayer.exe") Then
        WinActivate("[CLASS:WMPlayerApp]")
    Send("{F9}")
EndIf
EndFunc ;<== UP()


Func down()

    if ProcessExists("wmplayer.exe") Then
    WinActivate("[CLASS:WMPlayerApp]")
    Send("{F8}")
EndIf
EndFunc ; <== down()


Func Mute()

    if ProcessExists("wmplayer.exe") Then
    WinActivate("[CLASS:WMPlayerApp]")
    Send("{F7}")
EndIf
    EndFunc ; <= Mute

Func _exit()
    Exit
    EndFunc; _exit()

[size="5"] [/size]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×