CFire Posted April 11, 2007 Share Posted April 11, 2007 (edited) I have made this UDF with the help of lod3n because i wanted a way to change the volume of output from my program without affecting the rest of the comuter's volume settings. when i found this it gave a ton more than just volume control. Hope you find it useful. It TOTALLY replaces any use of Sound.au3 that is needed in ur scripts. It uses a Windows Media Player Com Object to run everything. I gave an Example script along with it, but these functions are rather simple to use. Edit: (4.12) Made The example script use a fileopendialog Edit: (4.14) Corrected a bug due to the indexing of the StringSplit() function. I just add a '+ 1' at the end of line 203. Thanks birdofprey Edit: (4.24) Changed the way the functions are called. You no longer need to call the Objcreate() function instead that is taken care of in a new function, WMStartPlayer(). The Object Variable is kept track of by WMMedia.au3. You still need to pass a Song Object when needed for certain Functions. When your script is Exiting, Run WMClosePlayer(). Only Opening and Closing the Player once seems to reduce the Constant increase in Memory used by the script. All the functions are the same minus the need to Pass the $pObj to it. Downloads : (4.24) - 124WMMedia.au3WMMedia_Example.au3 Edited April 24, 2007 by CFire [u]Scripts and UDF's[/u]WMMedia - UDF full of functions to Control Media Output. Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now