thepip3r Posted February 8, 2008 Share Posted February 8, 2008 I'm not looking for code. I just want to know if anyone can point me in the right direction (say to a UDF or previous forum post) concerning how a script can manipulate the system sound volume? I've done general search on the forums for "sound", "sound udf", "volume manipulation", etc and haven't found anything relative to what I'm looking for. I'd appreciate any guidance. My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume Link to comment Share on other sites More sharing options...
Zedna Posted February 8, 2008 Share Posted February 8, 2008 (edited) SoundSetWaveVolume()C:\Program Files\AutoIt3\Include\sound.au3Audio UDFSound UDFlinks collectionAlso look at feature request Edited February 8, 2008 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Monamo Posted February 8, 2008 Share Posted February 8, 2008 I'm not looking for code. I just want to know if anyone can point me in the right direction (say to a UDF or previous forum post) concerning how a script can manipulate the system sound volume? I've done general search on the forums for "sound", "sound udf", "volume manipulation", etc and haven't found anything relative to what I'm looking for. I'd appreciate any guidance.Took me a while to remember who I had remembered talking about this stuff. Here is one from Volly that may help. - MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup] Link to comment Share on other sites More sharing options...
thepip3r Posted February 8, 2008 Author Share Posted February 8, 2008 (edited) Awesome -- FYI -- I hope this doesn't break any kind of TOS about pulling a prank on a coworker but he listens to his music WAY TOO LOUD. So I'm going to throw this in this startup folder on his profile so when he's listneing to music, it will adjust the volume by 5% every 15 secs just to throw him off. =P expandcollapse popup#include <Audio.au3> #NoTrayIcon Global $x,$state $state = "inc" For $x=0 to 3000; Approx a half day based off of the sleep value _VariantVolLevel() Sleep(15000); Sleep 15 Seconds Next Func _VariantVolLevel() Local $curVolume $curVolume = Int(_SoundGetMasterVolume()) Select Case $curVolume <= 0 _SoundSetMasterVolume(1) $state = "inc" Case $curVolume >= 100 _SoundSetMasterVolume(99) $state = "dec" Case $curVolume>=0 AND $curVolume<=100 If $state="inc" Then $curVolume += 5 ElseIf $state = "dec" Then $curVolume -= 5 EndIf _SoundSetMasterVolume($curVolume) EndSelect ;MsgBox(0,$x,"Current: " & _SoundGetMasterVolume() & @CRLF & "State: " & $state & @CRLF & "Val: " & $curVolume) EndFunc If this is not cool to post, please let me know. Thanx for the help gentlemen, those UDFs are exactly what I was looking for. Edited February 8, 2008 by thepip3r My Additions:- RunAs AdminDeviant Fun:- Variable Sound Volume Link to comment Share on other sites More sharing options...
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