home *** CD-ROM | disk | FTP | other *** search
/ Amiga MA Magazine 1998 #6 / amigamamagazinepolishissue1998.iso / cdrom / stuscdxlgui / stuscdxlgui < prev    next >
Text File  |  1995-12-10  |  17KB  |  735 lines

  1. /*rx*/
  2.  
  3. /* $VER: Stu's CDXL GUI v1.
  4. */
  5. /*       Stu's CDXL GUI v1.3          */
  6. /*   By Stuart Tomlinson              */
  7. /*    casper@tomonet.demon.co.uk      */
  8. /* http://metro.turnpike.net/~stu/    */
  9. /*                                    */
  10. /* Copyright © 1995 Stuart Tomlinson  */
  11. /* This is not to be modified or      */
  12. /*  altered in anyway.                */
  13. /*                                    */
  14. /* There is no longer any reason to   */
  15. /* edit ANYTHING in this file or the  */
  16. /* accompanying StusCDXLGUI.dosbit    */
  17. /* as there are seperate config and   */
  18. /* catalog files in S: editable from  */
  19. /* within the RUNNING program itself. */
  20.  
  21. if ~ exists("libs:rexxreqtools.library") then do
  22. say "Fatel Error: Can't find rexxreqtools.library"
  23. exit
  24. end
  25.  
  26. if ~ exists("libs:reqtools.library") then do
  27. say "Fatel Error: Can't find reqtools.library"
  28. exit
  29. end
  30.  
  31. if ~ exists("s:StusCDXLGUI.catalogue") then do
  32. address command 'echo "" >s:StusCDXLGUI.catalogue'
  33. end
  34.  
  35. if ~ exists("s:StusCDXLGUI.config") then do
  36. address command 'echo "call START" >s:StusCDXLGUI.config'
  37. end
  38.  
  39. addlib('rexxreqtools.library',0,-30)
  40.  
  41. TAGS = 'rt_reqpos=reqpos_centerwin'
  42. TITLE = 'Stu`s CDXL GUI v1.3BETA Copyright © Stuart Tomlinson (casper@tomonet.demon.co.uk)'
  43. STAG = ''
  44. CTAG = 'rtez_flags=ezreqf_centertext'
  45. NL = '0a'x
  46.  
  47. if ~ exists("StusCDXLGUI.dosbit") then do
  48.  call rtezrequest('Missing StusCDXLGUI.dosbit!' NL 'Either that or you loaded it from CLI' NL 'and not CD`d to the program`s directory!','Eeek!',TITLE,STAG,)
  49.  exit
  50. end
  51.  
  52. if ~ exists("T:StusCDXLGUI.temp") then do
  53. address command 'c:join StusCDXLGUI S:StusCDXLGUI.catalogue S:StusCDXLGUI.config to T:StusCDXLGUI.temp'
  54. "wait 10"
  55. address command 'rx T:StusCDXLGUI.temp'
  56. exit
  57. end
  58.  
  59. FTOTAL = '0'
  60. BTOTAL = '0'
  61. RESET = '0'
  62. FILENAME = 'None'
  63. BACKDROP = 'None'
  64. X = 'Default'
  65. Y = 'Default'
  66. F1 = 'None'
  67. F2 = 'None'
  68. F3 = 'None'
  69. F4 = 'None'
  70. F5 = 'None'
  71. F6 = 'None'
  72. F7 = 'None'
  73. F8 = 'None'
  74. F9 = 'None'
  75. F10 = 'None'
  76. S1 = 'No'
  77. S2 = 'No'
  78. S3 = 'No'
  79. S4 = 'No'
  80. S5 = 'No'
  81. S6 = 'No'
  82. S7 = 'No'
  83. S8 = 'No'
  84. S9 = 'No'
  85. S10 = 'No'
  86. B1 = 'None'
  87. B2 = 'None'
  88. B3 = 'None'
  89. B4 = 'None'
  90. B5 = 'None'
  91. B6 = 'None'
  92. B7 = 'None'
  93. B8 = 'None'
  94. B9 = 'None'
  95. B10 = 'None'
  96. X1 = 'Default'
  97. X2 = 'Default'
  98. X3 = 'Default'
  99. X4 = 'Default'
  100. X5 = 'Default'
  101. X6 = 'Default'
  102. X7 = 'Default'
  103. X8 = 'Default'
  104. X9 = 'Default'
  105. X10 = 'Default'
  106. Y1 = 'Default'
  107. Y2 = 'Default'
  108. Y3 = 'Default'
  109. Y4 = 'Default'
  110. Y5 = 'Default'
  111. Y6 = 'Default'
  112. Y7 = 'Default'
  113. Y8 = 'Default'
  114. Y9 = 'Default'
  115. Y10 = 'Default'
  116.  
  117.  
  118. CC = 'ON'
  119. SPEED = 'NORMAL'
  120. LACE = 'OFF'
  121. RES = 'LOW'
  122. BOX = 'OFF'
  123. STRETCH = 'OFF'
  124. TV = 'PAL'
  125. POINTER = 'ON'
  126. ENDDELAY = '0'
  127. LOOP = '1'
  128. ABORT = 'FIRE'
  129. CDROM = 'CD32'
  130. SFILE = ''
  131. SCRIPT = 'OFF'
  132. QUITING = '0'
  133.  
  134. call CONFIG
  135. START:
  136.  
  137. TIME = 'times'
  138. if LOOP = '1' then TIME = 'time'
  139. FRAMES = 'frames'
  140. if ENDDELAY = '1' then FRAMES = 'frame'
  141.  
  142. call rtezrequest("Current settings:" NL,
  143. "1. Colour Correction = "CC NL,
  144. "2. Speed = "SPEED NL,
  145. "3. Interlace = "LACE NL,
  146. "4. Resolution = "RES NL,
  147. "5. Box = "BOX NL,
  148. "6. Stretched = "STRETCH NL,
  149. "7. Screenmode = "TV NL,
  150. "8. Pointer = "POINTER NL,
  151. "9. End Delay = "ENDDELAY FRAMES NL,
  152. "10. Loop = "LOOP TIME NL,
  153. "11. Button to Abort = "ABORT NL,
  154. "12. CD-Rom Drive Type = "CDROM NL,
  155. ,"_Go|_1|_2|_3|_4|_5|_6|_7|_8|_9|1_0|11|12|_Disk|_Other|_Quit",TITLE,STAG,)
  156.  
  157.    if rtresult = 2 & CC = 'ON' then do
  158.     CC = 'OFF'
  159.     call START
  160.    end
  161.    if rtresult = 2 & CC = 'OFF' then do
  162.     CC = 'ON'
  163.     call START
  164.    end
  165.  
  166.    if rtresult = 3 & SPEED = 'NORMAL' then do
  167.     SPEED = 'SLOW'
  168.     call START
  169.    end
  170.    if rtresult = 3 & SPEED = 'SLOW' then do
  171.     SPEED = 'NORMAL'
  172.     call START
  173.    end
  174.  
  175.    if rtresult = 4 & LACE = 'ON' then do
  176.     LACE = 'OFF'
  177.     call START
  178.    end
  179.    if rtresult = 4 & LACE = 'OFF' then do
  180.     if STRETCH = 'ON' then do
  181.      call rtezrequest('You cannot have it in Interlace with Stretch ON','They cancel each other out',TITLE,STAG,)
  182.      call START
  183.     end
  184.     LACE = 'ON'
  185.     call START
  186.    end
  187.  
  188.   if rtresult = 5 & RES = 'HIGH' then do
  189.     RES = 'LOW'
  190.     call START
  191.    end
  192.    if rtresult = 5 & RES = 'LOW' then do
  193.     if BACKDROP = 'None' then do
  194.      call rtezrequest('You cannot have it in High Resolution without a backdrop.','Sorry',TITLE,STAG,)
  195.      call START
  196.     end
  197.     RES = 'HIGH'
  198.     call START
  199.    end
  200.  
  201.   if rtresult = 6 & BOX = 'ON' then do
  202.     BOX = 'OFF'
  203.     call START
  204.    end
  205.    if rtresult = 6 & BOX = 'OFF' then do
  206.     BOX = 'ON'
  207.     call START
  208.    end
  209.  
  210.   if rtresult = 7 & STRETCH = 'ON' then do
  211.     STRETCH = 'OFF'
  212.     call START
  213.    end
  214.    if rtresult = 7 & STRETCH = 'OFF' then do
  215.     if LACE = 'ON' then do
  216.      call rtezrequest('You cannot have it Stretched with Interlacen ON','They cancel each other out!',TITLE,STAG,)
  217.      call START
  218.     end
  219.  
  220.     STRETCH = 'ON'
  221.     call START
  222.    end
  223.  
  224.   if rtresult = 8 & TV = 'PAL' then do
  225.     TV = 'NTSC'
  226.     call START
  227.    end
  228.    if rtresult = 8 & TV = 'NTSC' then do
  229.     TV = 'PAL'
  230.     call START
  231.    end
  232.  
  233.   if rtresult = 9 & POINTER = 'ON' then do
  234.     POINTER = 'OFF'
  235.     call START
  236.    end
  237.    if rtresult = 9 & POINTER = 'OFF' then do
  238.     POINTER = 'ON'
  239.     call START
  240.    end
  241.  
  242.   if rtresult = 10 then do
  243.    ENDDELAY = rtgetstring(ENDDELAY,'Enter the delay in frames at the end of the clip before it quits:' NL 'PAL = 50 frames a second' NL 'NTSC = 60 frames a second',TITLE,'_OK|_Cancel',STAG,)
  244.    call START
  245.    end
  246.  
  247.   if rtresult = 11 then do
  248.   LOOP = rtgetstring(LOOP,'Enter the amount of times you want it to play (0 is for infinity):',TITLE,'_OK|_Cancel',STAG,)
  249.   call START
  250.   end
  251.  
  252.   if rtresult = 12 & ABORT = 'FIRE' then do
  253.     ABORT = 'LMB'
  254.     call START
  255.    end
  256.    if rtresult = 12 & ABORT = 'LMB' then do
  257.     ABORT = 'RMB'
  258.     call START
  259.    end
  260.   if rtresult = 12 & ABORT = 'RMB' then do
  261.     ABORT = 'OFF'
  262.     call START
  263.    end
  264.    if rtresult = 12 & ABORT = 'OFF' then do
  265.     ABORT = 'FIRE'
  266.     call START
  267.    end
  268.  
  269.    if rtresult = 13 & CDROM = 'CD32' then do
  270.     CDROM = 'OTHER'
  271.     call START
  272.    end
  273.    if rtresult = 13 & CDROM = 'OTHER' then do
  274.     CDROM = 'CD32'
  275.     call START
  276.    end
  277.  
  278.    if rtresult = 14 then do
  279.     rtresult = ''
  280.     call rtezrequest('Do you want to save current as configuration to use on startup,' NL 'put default configuration to be used on startup,' NL 'or erase the catalogue?','_Save Current|Revert to _Defaults|_Erase Catalogue|_Cancel',TITLE,STAG,)
  281.     if rtresult = 1 then do
  282.      address command 'StusCDXLGUI.dosbit config' FILENAME BACKDROP CDROM X Y CC SPEED LACE RES BOX STRETCH TV POINTER ENDDELAY LOOP ABORT
  283.     end
  284.     if rtresult = 2 then address command 'delete S:StusCDXLGUI.config quiet'
  285.  
  286.     if rtresult = 3 then do
  287.      call rtezrequest('Do you really, really want to do this?','_No|_Dunno|Positive|_Hmm|Not _Sure',TITLE,STAG,)
  288.      if rtresult = 3 then address command 'delete S:StusCDXLGUI.catalogue quiet'
  289.     end
  290.    call START
  291.    end
  292.  
  293.    if rtresult = 15 then call OTHER
  294.  
  295.    if rtresult = 0 then do
  296.    call QUIT
  297.    end
  298.    if rtresult = 1 then do
  299.    call PLAY
  300.    end
  301.  
  302. call QUIT
  303.  
  304. OTHER:
  305. if SCRIPT = 'OFF' then SCRIPTMENU = 'OFF'
  306. if SCRIPT = 'ON' then SCRIPTMENU = 'ON ('SFILE')'
  307. call rtezrequest('Physical Settings:' NL,
  308. 'Filename  = 'FILENAME NL,
  309. 'Backdrop = 'BACKDROP NL,
  310. 'Position = (' X ',' Y ')'NL,
  311. 'Script Writing = 'SCRIPTMENU NL,
  312. ,'_Go|_Filename|_Backdrop|_X Position|_Y Position|_Add Filename|A_dd Backdrop|_Script|_Other',TITLE,STAG,)
  313.  
  314. if BACKDROP = 'None' then RES = 'LOW'
  315.  
  316. if rtresult = 1 then do
  317.  call PLAY
  318. end
  319.  
  320. if rtresult = 2 then do
  321.  call rtezrequest('Current CDXL files stored:' NL,
  322. '1.' F1 NL,
  323. '2.' F2 NL,
  324. '3.' F3 NL,
  325. '4.' F4 NL,
  326. '5.' F5 NL,
  327. '6.' F6 NL,
  328. '7.' F7 NL,
  329. '8.' F8 NL,
  330. '9.' F9 NL,
  331. '10.' F10,'_New|_1|_2|_3|_4|_5|_6|_7|_8|_9|1_0|_Cancel',TITLE,STAG,)
  332.  
  333. if rtresult = 1 then do
  334.  if FILENAME = 'None' then FILENAME = ''
  335.  BACKUP = FILENAME
  336.  FILELOOP:
  337.  FILENAME = rtgetstring(FILENAME,'Please enter filename and path of CDXL file (please use proper disk name, not CD0):',TITLE,'_OK|_Cancel',STAG,)
  338.  if rtresult = 0 then FILENAME = BACKUP
  339.  if FILENAME = '' then FILENAME = 'None'
  340.  if FILENAME = 'None' then call OTHER
  341.  
  342.  if ~ exists( FILENAME ) then do
  343.   call rtezrequest('File does not exist','Hang on, let me change it',TITLE,STAG,)
  344.   call FILELOOP
  345.  end
  346.  
  347.  call OTHER
  348. end
  349. if rtresult = 0 then call OTHER
  350. if rtresult = 2 then do
  351.  FILENAME = F1 ; STRETCH = S1
  352. end
  353. if rtresult = 3 then do
  354. FILENAME = F2 ; STRETCH = S2
  355. end
  356. if rtresult = 4 then do
  357. FILENAME = F3 ; STRETCH = S3
  358. end
  359. if rtresult = 5 then do
  360. FILENAME = F4 ; STRETCH = S4
  361. end
  362. if rtresult = 6 then do
  363. FILENAME = F5 ; STRETCH = S5
  364. end
  365. if rtresult = 7 then do
  366. FILENAME = F6 ; STRETCH = S6
  367. end
  368. if rtresult = 8 then do
  369. FILENAME = F7 ; STRETCH = S7
  370. end
  371. if rtresult = 9 then do
  372. FILENAME = F8 ; STRETCH = S8
  373. end
  374. if rtresult = 10 then do
  375. FILENAME = F9 ; STRETCH = S9
  376. end
  377. if rtresult = 11 then do
  378. FILENAME = F10 ; STRETCH = S10
  379. end
  380. call OTHER
  381. end
  382.  
  383. if rtresult = 3 then do
  384.  call rtezrequest('Current backdrop files stored:' NL,
  385. '1.' B1 NL,
  386. '2.' B2 NL,
  387. '3.' B3 NL,
  388. '4.' B4 NL,
  389. '5.' B5 NL,
  390. '6.' B6 NL,
  391. '7.' B7 NL,
  392. '8.' B8 NL,
  393. '9.' B9 NL,
  394. '10.' F10,'_New|_1|_2|_3|_4|_5|_6|_7|_8|_9|1_0|_Cancel',TITLE,STAG,)
  395.  
  396. if rtresult = 1 then do
  397.  BACKUP = BACKDROP
  398.  if BACKDROP = 'None' then BACKDROP = ''
  399.  BACKLOOP:
  400.  BACKDROP = rtgetstring(BACKDROP,'Please enter filename and path of IFF backdrop file (please place these at a location' NL,
  401.  'that is accessable no matter what CD is in the drive, eg. On HD):',TITLE,'_OK|_Cancel',STAG,)
  402.  if rtresult = 0 then BACKDROP = BACKUP
  403.  if BACKDROP = '' then BACKDROP = 'None'
  404.  if BACKDROP = 'None' then call OTHER
  405.   if ~ exists( FILENAME ) then do
  406.   call rtezrequest('Backdrop does not exist','Hang on, let me change it',TITLE,STAG,)
  407.   call BACKLOOP
  408.  end
  409.  
  410.  call OTHER
  411. end
  412. if rtresult = 0 then call OTHER
  413.  
  414. if rtresult = 2 then do
  415. BACKDROP = B1 ; X = X1 ; Y = Y1 ; BOX = BOX1
  416. end
  417.  
  418. if rtresult = 3 then do
  419. BACKDROP = B2 ; X = X2 ; Y = Y2 ; BOX = BOX2
  420. end
  421.  
  422. if rtresult = 4 then do
  423. BACKDROP = B3 ; X = X3 ; Y = Y3 ; BOX = BOX3
  424. end
  425.  
  426. if rtresult = 5 then do
  427. BACKDROP = B4 ; X = X4 ; Y = Y4 ; BOX = BOX4
  428. end
  429.  
  430. if rtresult = 6 then do
  431. BACKDROP = B5 ; X = X5 ; Y = Y5 ; BOX = BOX5
  432. end
  433.  
  434. if rtresult = 7 then do
  435. BACKDROP = B6 ; X = X6 ; Y = Y6 ; BOX = BOX6
  436. end
  437.  
  438. if rtresult = 8 then do
  439. BACKDROP = B7 ; X = X7 ; Y = Y7 ; BOX = BOX7
  440. end
  441.  
  442. if rtresult = 9 then do
  443. BACKDROP = B8 ; X = X8 ; Y = Y8 ; BOX = BOX8
  444. end
  445.  
  446. if rtresult = 10 then do
  447. BACKDROP = B0 ; X = X9 ; Y = Y9 ; BOX = BOX9
  448. end
  449.  
  450. if rtresult = 11 then do
  451. BACKDROP = B10 ; X = X10 ; Y = Y10 ; BOX = BOX10
  452. end
  453.  
  454. end
  455.  
  456.  
  457. if rtresult = 4 then do
  458.  BACKUP = X
  459.  if X = 'Default' then X = ''
  460.  X = rtgetstring(X,'Please enter new X coordinate:',TITLE,'_OK|_Cancel',STAG,)
  461.  if rtresult = 0 then X = BACKUP
  462.  if X = '' then X = 'Default'
  463. end
  464.  
  465. if rtresult = 5 then do
  466.  BACKUP = Y
  467.  if Y = 'Default' then Y = ''
  468.  Y = rtgetstring(Y,'Please enter new Y coordinate:',TITLE,'_OK|_Cancel',STAG,)
  469.  if rtresult = 0 then Y = BACKUP
  470.  if Y = '' then Y = 'Default'
  471. end
  472.  
  473. if rtresult = 6 then do
  474.  
  475. if FTOTAL = 10 then do
  476. call rtezrequest('This version does not allow more then 10 filenames to be added. :(' NL,
  477. 'This should be fixed in a later version.','I cannot wait!',TITLE,STAG,)
  478. call OTHER
  479. end
  480.  
  481. if FILENAME = 'None' then do
  482.  call rtezrequest('Add what filename? I cannot see a filename there.','Whoops!',TITLE,STAG,)
  483.  call OTHER
  484. end
  485.  
  486. call rtezrequest('Are you sure you want to add' NL FILENAME '?' NL 'It also saves stretched variable with it.','_Yes|_No',TITLE,STAG,)
  487.  if rtresult = 0 then call OTHER
  488.   FTOTAL = FTOTAL + 1
  489.   address command 'execute StusCDXLGUI.dosbit file' FILENAME FTOTAL STRETCH '0 0 0 0 0 0 0 0 0 0 0 0 0'
  490.  
  491.   if FTOTAL = 1 then do
  492.    F1 = FILENAME
  493.    S1 = STRETCH
  494.   end
  495.  
  496.   if FTOTAL = 2 then do
  497.    F2 = FILENAME
  498.    S2 = STRETCH
  499.   end
  500.  
  501.   if FTOTAL = 3 then do
  502.    F3 = FILENAME
  503.    S3 = STRETCH
  504.   end
  505.  
  506.   if FTOTAL = 4 then do
  507.    F4 = FILENAME
  508.    S4 = STRETCH
  509.   end
  510.  
  511.   if FTOTAL = 5 then do
  512.    F5 = FILENAME
  513.    S5 = STRETCH
  514.   end
  515.  
  516.   if FTOTAL = 6 then do
  517.    F6 = FILENAME
  518.    S6 = STRETCH
  519.   end
  520.  
  521.   if FTOTAL = 7 then do
  522.    F7 = FILENAME
  523.    S7 = STRETCH
  524.   end
  525.  
  526.   if FTOTAL = 8 then do
  527.    F8 = FILENAME
  528.    S8 = STRETCH
  529.   end
  530.  
  531.   if FTOTAL = 9 then do
  532.    F9 = FILENAME
  533.    S9 = STRETCH
  534.   end
  535.  
  536.   if FTOTAL = 10 then do
  537.    F10 = FILENAME
  538.    S10 = STRETCH
  539.   end
  540.  
  541.  
  542.   call OTHER
  543. end
  544.  
  545. if rtresult = 7 then do
  546.  
  547. if BTOTAL = 10 then do
  548. call rtezrequest('This version does not allow more then 10 backdrops to be added. :(' NL,
  549. 'This should be fixed in a later version','Ah well.',TITLE,STAG,)
  550. call OTHER
  551. end
  552.  
  553. if BACKDROP = 'None' then do
  554.  call rtezrequest('Add what backdrop? I cannot see a backdrop there.','Whoops!',TITLE,STAG,)
  555.  call OTHER
  556. end
  557.  
  558.  call rtezrequest('Are you sure you want to add' NL BACKDROP '?' NL 'It also saves position variable with it.','_Yes|_No',TITLE,STAG,)
  559.  if rtresult = 0 then call OTHER
  560.   BTOTAL = BTOTAL + 1
  561.   address command 'execute StusCDXLGUI.dosbit back' BACKDROP BTOTAL BOX X Y '0 0 0 0 0 0 0 0 0 0 0'
  562.  
  563. if BTOTAL = 1 then do
  564.  B1 = BACKDROP
  565.  X1 = X
  566.  Y1 = Y
  567.  BOX1 = BOX
  568. end
  569.  
  570. if BTOTAL = 2 then do
  571.  B2 = BACKDROP
  572.  X2 = X
  573.  Y2 = Y
  574.  BOX2 = BOX
  575. end
  576.  
  577. if BTOTAL = 3 then do
  578.  B3 = BACKDROP
  579.  X3 = X
  580.  Y3 = Y
  581.  BOX3 = BOX
  582. end
  583.  
  584. if BTOTAL = 4 then do
  585.  B4 = BACKDROP
  586.  X4 = X
  587.  Y4 = Y
  588.  BOX4 = BOX
  589. end
  590.  
  591. if BTOTAL = 5 then do
  592.  B5 = BACKDROP
  593.  X5 = X
  594.  Y5 = Y
  595.  BOX5 = BOX
  596. end
  597.  
  598. if BTOTAL = 6 then do
  599.  B6 = BACKDROP
  600.  X6 = X
  601.  Y6 = Y
  602.  BOX6 = BOX
  603. end
  604.  
  605. if BTOTAL = 7 then do
  606.  B7 = BACKDROP
  607.  X7 = X
  608.  Y7 = Y
  609.  BOX7 = BOX
  610. end
  611.  
  612. if BTOTAL = 8 then do
  613.  B8 = BACKDROP
  614.  X8 = X
  615.  Y8 = Y
  616.  BOX8 = BOX
  617. end
  618.  
  619. if BTOTAL = 9 then do
  620.  B9 = BACKDROP
  621.  X9 = X
  622.  Y9 = Y
  623.  BOX9 = BOX
  624. end
  625.  
  626. if BTOTAL = 10 then do
  627.  B10 = BACKDROP
  628.  X10 = X
  629.  Y10 = Y
  630.  BOX10 = BOX
  631. end
  632.  
  633.  call OTHER
  634. end
  635.  
  636. if rtresult = 8 then do
  637.  if SCRIPT = 'OFF' then do
  638.   SFILE = rtgetstring(SFILE,'Please enter path and filename of script file to create/add to:',TITLE,'_OK|_Cancel',STAG,)
  639.  if SFILE = '' then call OTHER
  640.  if ~ exists(SFILE) then do
  641.   call rtezrequest('Create file and start script mode?','_Yup|_Mistake!',TITLE,STAG,)
  642.   if rtresult = 0 then call OTHER
  643.  end
  644.  if exists(SFILE) then do
  645.   call rtezrequest('File exists! Append and start script mode?','_Yup|_Mistake!',TITLE,STAG,)
  646.   if rtresult = 0 then call OTHER
  647.  end
  648.   address command 'echo "; AmigaDOS CDXL Playing Script. Created by" >>'SFILE
  649.   address command 'echo "; 'TITLE'" >>'SFILE
  650.   address command 'echo ";" >>'SFILE
  651.   SCRIPT = 'ON'
  652.   call OTHER
  653.  end
  654.  if SCRIPT = 'ON' then do
  655.   call rtezrequest('Really want to end script?','_Yup|_Whoops!',TITLE,STAG,)
  656.    if rtresult = 0 then call OTHER
  657.   call rtezrequest('Install loop at end? (so the script restarts)','_Let it go on and on|_No, just once thanks',TITLE,STAG,)
  658.    if rtezrequest = 1 then address command 'echo "execute 'SFILE'" >>'SFILE
  659.   address command 'echo "; end" >>'SFILE
  660.   address command 'protect' SFILE 'SWRD'
  661.   call rtezrequest('Complete','_Good.',TITLE,STAG,)
  662.   SCRIPT = 'OFF'
  663.  call OTHER
  664.  end
  665. end
  666.  
  667. if rtresult = 0 then call START
  668.  
  669. call OTHER
  670.  
  671. PLAY:
  672.  
  673. if FILENAME = 'None' then do
  674.  call rtezrequest('You need to specify a CDXL filename','_Eek, forgot! Okay.',TITLE,STAG,)
  675.  call OTHER
  676. end
  677.  
  678. if CC = 'ON' then ONE = 'MULTIPAL'
  679. if CC = 'OFF' then ONE = ''
  680. if SPEED = 'NORMAL' then TWO = 'XLSPEED=150'
  681. if SPEED = 'SLOW' then TWO = ''
  682. if LACE = 'OFF' then THREE = ''
  683. if LACE = 'ON' then THREE = 'LACE'
  684. if RES = 'LOW' then FOUR = 'LORES'
  685. if RES = 'HIGH' then FOUR = 'HIRES'
  686.  
  687. if BOX = 'ON' then FIVE = 'BOXIT'
  688. if BOX = 'OFF' then FIVE = ''
  689. if STRETCH = 'ON' then SIX = 'SDBL'
  690. if STRETCH = 'OFF' then SIX = ''
  691. SEVEN = "LOOP="LOOP
  692. if POINTER = 'ON' then EIGHT = ''
  693. if POINTER = 'OFF' then EIGHT = 'NOPOINTER'
  694. NINE = TV
  695. TEN = "ENDDELAY="ENDDELAY
  696. if ABORT = 'OFF' then ELEVEN = ''
  697. if ABORT = 'FIRE' then ELEVEN = 'FIREABORT'
  698. if ABORT = 'LMB' then ELEVEN = 'LMBABORT'
  699. if ABORT = 'RMB' then ELEVEN = 'RMBABORT'
  700. THIRTEEN = 'BACK'
  701. if BACKDROP = 'None' then BACKDROP = ''
  702. if BACKDROP = '' then THIRTEEN = ''
  703. FOURTEEN = 'X'
  704. if X = 'Default' then X = ''
  705. if X = '' then FOURTEEN = ''
  706. FIFTEEN = 'Y'
  707. if Y = 'Default' then Y = ''
  708. if Y = '' then FIFTEEN = ''
  709. if CDROM = 'CD32' then SIXTEEN = 'CDXL'
  710. if CDROM = 'OTHER' then SIXTEEN = 'DOSXL'
  711. if SCRIPT = 'ON' then do
  712.  address command 'echo "cdgsxl.new' FILENAME THIRTEEN BACKDROP FOURTEEN X FIFTEEN Y ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT NINE TEN ELEVEN SIXTEEN' " >>'SFILE
  713.  call rtezrequest('The command and configuration have been added to the script.','Next one then?',TITLE,STAG,)
  714. end
  715. if SCRIPT = 'OFF' then do
  716.  address command 'cdgsxl.new' FILENAME THIRTEEN BACKDROP FOURTEEN X FIFTEEN Y ONE TWO THREE FOUR FIVE SIX SEVEN EIGHT NINE TEN ELEVEN SIXTEEN
  717. end
  718. if BACKDROP = '' then BACKDROP = 'None'
  719. if X = '' then X = 'Default'
  720. if Y = '' then Y = 'Default'
  721.  
  722. call START
  723.  
  724. QUIT:
  725. if SCRIPT = 'ON' then do
  726.  call rtezrequest('Script still running!','_Eek, forgot! Okay.',TITLE,STAG,)
  727.  call START
  728. end
  729.  
  730. address command 'delete t:StusCDXLGUI.temp quiet'
  731. exit
  732.  
  733. CONFIG:
  734.  
  735.