michail 0 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 Share this post Link to post Share on other sites
Fire 3 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] Share this post Link to post Share on other sites