Advertisement
chuxo

DF copy menu

Mar 15th, 2021
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 4.10 KB | None | 0 0
  1. @echo off
  2. title Color ASCII
  3. mode con:cols=87 lines=25
  4. SETLOCAL EnableDelayedExpansion
  5.  
  6. :m1
  7. cls
  8. mode con:cols=87 lines=25
  9. for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
  10.   set "DEL=%%a"
  11. )
  12.  
  13.  
  14. call :ColorText 0e "                       Plase view the readme.txt before playing"
  15. echo(
  16. echo(
  17. call :ColorText 0C "                                      Control RPG"
  18. echo(
  19. call :ColorText 0F "                       Copyright (C) 2002-2020,  Nasty Hackers"
  20. echo(
  21. echo(
  22. call :ColorText 07 "                                      Start Game"
  23. echo(
  24. call :ColorText 08 "                                         About"
  25. echo(
  26. call :ColorText 08 "                                       Quit Game"
  27. echo(
  28. echo(
  29. echo(
  30. echo(
  31. echo(
  32. echo(
  33. echo(
  34. echo(
  35. echo(
  36. echo(
  37. echo(
  38. call :ColorText 07 "                             Press "
  39. call :ColorText 0a " k "
  40. call :ColorText 07 " to choose an option. "
  41. echo(
  42. call :ColorText 07 "                                Use "
  43. call :ColorText 0a " w"
  44. call :ColorText 07 " and"
  45. call :ColorText 0a " s"
  46. call :ColorText 07 " to scroll."
  47. echo(
  48. echo(
  49. echo(
  50. call :ColorText 0b " Programmed by"
  51. echo(
  52. call :ColorText 0b "     Chyxo                                                                         v1.1"
  53. choice /c wsk /n
  54. if %errorlevel%==1 goto m3
  55. if %errorlevel%==2 goto m2
  56. if %errorlevel%==3 goto m1
  57.  
  58. :m2
  59. cls
  60. mode con:cols=87 lines=25
  61. for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
  62.   set "DEL=%%a"
  63. )
  64.  
  65.  
  66. call :ColorText 0e "                       Plase view the readme.txt before playing"
  67. echo(
  68. echo(
  69. call :ColorText 0C "                                      Control RPG"
  70. echo(
  71. call :ColorText 0F "                       Copyright (C) 2002-2020,  Nasty Hackers"
  72. echo(
  73. echo(
  74. call :ColorText 08 "                                      Start Game"
  75. echo(
  76. call :ColorText 07 "                                         About"
  77. echo(
  78. call :ColorText 08 "                                       Quit Game"
  79. echo(
  80. echo(
  81. echo(
  82. echo(
  83. echo(
  84. echo(
  85. echo(
  86. echo(
  87. echo(
  88. echo(
  89. echo(
  90. call :ColorText 07 "                             Press "
  91. call :ColorText 0a " k "
  92. call :ColorText 07 " to choose an option. "
  93. echo(
  94. call :ColorText 07 "                                Use "
  95. call :ColorText 0a " w"
  96. call :ColorText 07 " and"
  97. call :ColorText 0a " s"
  98. call :ColorText 07 " to scroll."
  99. echo(
  100. echo(
  101. echo(
  102. call :ColorText 0b " Programmed by"
  103. echo(
  104. call :ColorText 0b "     Chyxo                                                                         v1.1"
  105. choice /c wsk /n
  106. if %errorlevel%==1 goto m1
  107. if %errorlevel%==2 goto m3
  108. if %errorlevel%==3 goto m1
  109.  
  110. :m3
  111. cls
  112. mode con:cols=87 lines=25
  113. for /F "tokens=1,2 delims=#" %%a in ('"prompt #$H#$E# & echo on & for %%b in (1) do rem"') do (
  114.   set "DEL=%%a"
  115. )
  116.  
  117.  
  118. call :ColorText 0e "                       Plase view the readme.txt before playing"
  119. echo(
  120. echo(
  121. call :ColorText 0C "                                      Control RPG"
  122. echo(
  123. call :ColorText 0F "                       Copyright (C) 2002-2020,  Nasty Hackers"
  124. echo(
  125. echo(
  126. call :ColorText 08 "                                      Start Game"
  127. echo(
  128. call :ColorText 08 "                                         About"
  129. echo(
  130. call :ColorText 07 "                                       Quit Game"
  131. echo(
  132. echo(
  133. echo(
  134. echo(
  135. echo(
  136. echo(
  137. echo(
  138. echo(
  139. echo(
  140. echo(
  141. echo(
  142. call :ColorText 07 "                             Press "
  143. call :ColorText 0a " k "
  144. call :ColorText 07 " to choose an option. "
  145. echo(
  146. call :ColorText 07 "                                Use "
  147. call :ColorText 0a " w"
  148. call :ColorText 07 " and"
  149. call :ColorText 0a " s"
  150. call :ColorText 07 " to scroll."
  151. echo(
  152. echo(
  153. echo(
  154. call :ColorText 0b " Programmed by"
  155. echo(
  156. call :ColorText 0b "     Chyxo                                                                         v1.1"
  157. choice /c wsk /n
  158. if %errorlevel%==1 goto m2
  159. if %errorlevel%==2 goto m1
  160. if %errorlevel%==3 goto m1
  161.  
  162. :ColorText
  163. echo off
  164. <nul set /p ".=%DEL%" > "%~2"
  165. findstr /v /a:%1 /R "^$" "%~2" nul
  166. del "%~2" > nul 2>&1
  167. goto :eof
  168.  
  169. :Beginoffile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement