erifash Posted March 21, 2005 Posted March 21, 2005 Just because i wanted to listen to all my favorite songs in a row in Windows 2000: HotkeySet("{ESC}", "myexit") If not FileExists("amp.ini") Then create() $loop = IniRead("amp.ini", "loop", "loop", "nan") $delay = IniRead("amp.ini", "sleep", "delay", "nan") $looped = IniRead("amp.ini", "sleep", "looped", "nan") If $loop = "nan" or $delay = "nan" or $looped = "nan" Then Exit $song = IniReadSection("amp.ini", "songs") For $i = 1 to $song[0][0] step 1 If $loop = 1 and $i = $song[0][0] Then $i = 1 Sleep($looped) EndIf If FileExists($song[$i][1]) Then SoundPlay($song[$i][1], 1) Sleep($delay) Next Func create() FileWrite("amp.ini", "[loop]" & @CRLF & "loop=0" & @CRLF & "[sleep]" & @CRLF & "delay=2000" & @CRLF & "looped=3000" & @CRLF & "[songs]" & @CRLF & "1=" & @WindowsDir & "\media\ding.wav") EndFunc Func myexit() Exit EndFunc Run it once, it will create the properly formatted INI, you can edit it from there. Any questions/comments are appreciated! My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver
SlimShady Posted March 22, 2005 Posted March 22, 2005 1. Create a GUI 2. Add file to play list/ delete from play list
zcoacoaz Posted March 22, 2005 Posted March 22, 2005 look at zero's media player that may help you out [font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]
erifash Posted March 22, 2005 Author Posted March 22, 2005 look at zero's media player that may help you out<{POST_SNAPBACK}>okay, thnx My UDFs:_FilePrint() | _ProcessGetName() | _Degree() and _Radian()My Scripts:Drive Lock - Computer Lock Using a Flash DriveAU3Chat - Simple Multiuser TCP ChatroomStringChunk - Split a String Into Equal PartsAutoProxy - Custom Webserver
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