michail Posted May 23, 2010 Posted May 23, 2010 (edited) 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 May 23, 2010 by michail
Fire Posted May 23, 2010 Posted May 23, 2010 Hi michail. I`m not sure is it that exactly what you are looking for but i think only about this way. expandcollapse popup#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]
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now