@echo off
rem play.bat
rem RJM Programming
rem November, 2025

set passed=
set rest=

if trick==trick%1 (
  set /p ans=Radio Play via comma separate YouTube 11 character IDs or search ideas for a playlist ... egs. Tragedy,Boogie Wonderland,Down Among the Dead Men ... random ... Tragedy ,Imagine*3,Breezin ... ordered 5 ... Tragedy  ,Pina Colada Son,Fast Car ... audio ... Tragedy   ,Galveston,Fix You    ... audio ordered,    and go.  
) else (
  set ans="%1"
  set passed=yes
  if trick==trick%2 goto :loop
  set ans="%ans%,%2"
  if trick==trick%3 goto :loop
  set ans="%ans%,%3"
  if trick==trick%4  goto :loop
  set ans="%ans%,%4"
  if trick==trick%5  goto :loop
  set ans="%ans%,%5"
  if trick==trick%6  goto :loop
  set ans="%ans%,%6"
  if trick==trick%7 goto :loop
  set ans="%ans%,%7"
  if trick==trick%8  goto :loop
  set ans="%ans%,%8"
  if trick==trick%9  goto :loop
  set ans="%ans%,%9"
  explorer.exe "https://www.rjmprogramming.com.au/HTMLCSS/swipe_media.html %ans:"=%"
:loop
  if "%9"=="" (
   @echo off
  ) else (
   shift
   set rest="%rest%,%9"
   goto :loop
  )
  set ans="%ans%%rest%"
  set ans=%ans:"=%
  explorer.exe "https://www.rjmprogramming.com.au/HTMLCSS/swipe_media.html %ans%"
)
if trick==trick%passed% (
set ans=%ans:"=%
if "%ans:,=%"=="%ans%" (
  echo "Nothing to do."
) else (
  explorer.exe "https://www.rjmprogramming.com.au/HTMLCSS/swipe_media.html %ans%"
)
)
rem exit
:end
