Sign in to follow this  
Followers 0
torels

SET Windows volume [the one of the little speaker in the tray] (a bit forced but still...)

4 posts in this topic

#1 ·  Posted (edited)

:)

func _volup($times = 2)
run("C:\WINDOWS\system32\sndvol32.exe","C:\WINDOWS\system32\",@SW_HIDE)
ControlGetText("[CLASS:Volume Control]","","[CLASS:msctls_trackbar32]")
for $i = 1 to $times
ControlSend("[CLASS:Volume Control]","","[CLASS:msctls_trackbar32; INSTANCE:2]","{UP 70}")
next
ProcessClose("sndvol32.exe")
EndFunc

func _voldown($ times = 2)
run("C:\WINDOWS\system32\sndvol32.exe","C:\WINDOWS\system32\",@SW_HIDE)
ControlGetText("[CLASS:Volume Control]","","[CLASS:msctls_trackbar32]")
for $i = 1 to $times
ControlSend("[CLASS:Volume Control]","","[CLASS:msctls_trackbar32; INSTANCE:2]","{UP 70}")
next
ProcessClose("sndvol32.exe")
EndFunc

still a bit slow... any suggestions ??

Edited by torels

Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

Share this post


Link to post
Share on other sites



SoundSetWaveVolume() ?


[center]"When you look at old, classic games like Snake, you often put it off because it's such a simple game, but it's only when you actually try and create your own unique game from scratch, do you finally appreciate those games."[/center][center]Don't ask for answers if you haven't TRIED yet![/center][center]Most answers can be answered in the help file! Use it![/center]

Share this post


Link to post
Share on other sites

no it's not the same thing!

this one changes the computer volume and not the wave one!


Some Projects:[list][*]ZIP UDF using no external files[*]iPod Music Transfer [*]iTunes UDF - fully integrate iTunes with au3[*]iTunes info (taskbar player hover)[*]Instant Run - run scripts without saving them before :)[*]Get Tube - YouTube Downloader[*]Lyric Finder 2 - Find Lyrics to any of your song[*]DeskBox - A Desktop Extension Tool[/list]indifference will ruin the world, but in the end... WHO CARES :P---------------http://torels.altervista.org

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  
Followers 0