alias next.end {
%g = 0
;var g set to 0
:loop
;goto point called loop
inc %g
;var g incremented by 1
%temp.nextname = $readini $mircdirsystem\mp3.ini MP3 %g
;var temp.nextname stores what it reads from the mp3.ini with g
;being the incremented value from earlier.
if (%totalmp3lists <= %g) { if (%mp3repeat) { set %g 0 | if ($dialog(mp3) != $null) { .did -c mp3 14 1 } | goto end } | else { set %g 0 | if ($dialog(mp3) != $null) { .did -c mp3 14 1 } | set %mp3file $readini $mircdirsystem\mp3.ini MP3 1 | halt } }
;var %totalmp3lists ?? no point of this theres missing part of script
;so lets assume totalmp3list is the total of all mp3s in list of course...
;if mp3repeat var is set then var g is set to 0
;then script checks if the mp3 dialog isnot null if it is then theres a checkmark
;on ID 14 then the script skips the loop and goes to END point "Later in script"
;ELSE if the %mp3repeat is not there then it sets %g to 0 then checks if
;dialog isnot null again then checkmarks ID 14 then sets %mp3file to whatever the
;$readini command calls for.
;>>>>>>>>SCRIPT CONTINUES>>>>><<<<<<<<<<<
if (%mp3file == %temp.nextname) { if ($dialog(mp3) != $null) { .did -c mp3 14 $calc(%g + 2) } | goto end }
;if %mp3file equals to same result as %temp.nextname it checks for if
;mp3 dialog isnot $null then checksmarks id 14 + 2 from old position. then jumps to END
;goto point
goto loop
;goto loop is called again to go back in script and perform mp3 filename reads
:end
;this end point is where the script all leads too in the end once your here
%mp3file = $readini $mircdirsystem\mp3.ini MP3 $calc(%g + 1)
;var %mp3file is set to read the mp3 ini from its current position + 1 "AKA next"
if ($exists(%mp3file)) { .splay -p %mp3file } | else { next.end2 }
;if your mp3file exsits then the file is played, else alias next.end2 is called}