[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
回复 18# HOPE2021


    1.0.0013
  1. @echo off
  2. mode con cols=68 lines=5
  3. color f9
  4. endlocal
  5. setlocal enabledelayedexpansion
  6. chcp 936 > nul
  7. Rem By Hope2021
  8. title Hope计时器
  9. cls
  10. echo.
  11. echo.
  12. echo.                                HOPE
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @call :Restart
  16. @goto :Main
  17. :Restart
  18. color 0f
  19. cls
  20. set H=0
  21. set Min=0
  22. set S=0
  23. set H_2=0
  24. set Min_2=0
  25. set S_2=0
  26. set Ms=0
  27. set Ms_2=0
  28. @goto :eof
  29. :Main
  30. mode con cols=68 lines=7
  31. title Hope计时器
  32. set Error=0
  33. cls
  34. echo.
  35. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  36. echo.
  37. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  38. echo.
  39. echo.  P 打开计划程序
  40. call :get_key
  41. call :Settings_Time
  42. if /i "!key!"=="P" (
  43. set St_1=10001
  44. set En_1=10010
  45. mode con cols=68 lines=34
  46. @goto :Task
  47. )
  48. if /i "!key!"=="u" (
  49. mode con cols=68 lines=5
  50. @goto :Start
  51. )
  52. if /i "!key!"=="i" (
  53. del sleep.vbs sleep.com sleep.exe >nul 2>nul
  54. rd /s /q Tasks >nul 2>nul
  55. exit
  56. )
  57. if /i "!valid_key!" equ "0" goto :Main
  58. :Task
  59. Md Tasks >nul 2>nul
  60. cls
  61. title Hope计时器[计划程序]
  62. set Error=0
  63. echo.
  64. echo.  Hope计时器[计划程序]
  65. set /p Str=--------------------------------------------------------------------<nul
  66. echo.
  67. echo.    ^>^> Q 新建计划   W 使用计划   D 删除计划   E 返回菜单   R 退出
  68. if not exist Tasks\*.Htd (
  69. echo.
  70. echo.    ^>^> 当前没有计划
  71. set /p Str=--------------------------------------------------------------------<nul
  72. echo.
  73. echo.
  74. )
  75. if not exist Tasks\Htd.Hdat echo.10000 > Tasks\Htd.Hdat
  76. if exist Tasks\*.Htd (
  77. cd Tasks
  78. echo.
  79. echo.    ^>^> 当前计划列表
  80. set /p Str=--------------------------------------------------------------------<nul
  81. echo.
  82. echo.
  83. for /f %%i in ('dir /b *.Htd') do (
  84. for /f "skip=4" %%j in (%%~ni.Htd) do echo.    ^>^> 编号:%%~ni  备注:%%j
  85. )
  86. echo.
  87. cd..
  88. )
  89. )
  90. call :get_key
  91. if /i "!key!"=="E" (
  92. @goto :Main
  93. )
  94. if /i "!key!"=="D" (
  95. @goto :Del
  96. )
  97. if /i "!key!"=="R" (
  98. del sleep.vbs sleep.com sleep.exe >nul 2>nul
  99. rd /s /q Tasks >nul 2>nul
  100. exit
  101. )
  102. if /i "!key!"=="Q" (
  103. @goto :New
  104. )
  105. if /i "!key!"=="W" (
  106. @goto :Open
  107. )
  108. if /i "!valid_key!" equ "0" @goto :Task
  109. :Open
  110. if exist Tasks\*.Htd (
  111. set "Content= "
  112. set /p Content=    ^>^> 请输入计划编号:
  113. goto Open_2
  114. ) else cd..&@goto :Task
  115. :Del
  116. if exist Tasks\*.Htd (
  117. set "Content= "
  118. set /p Content=    ^>^> 请输入计划编号:
  119. goto Del_2
  120. ) else cd..&@goto :Task
  121. :Del_2
  122. cd Tasks
  123. if exist %Content%.Htd (
  124. del %Content%.Htd
  125. cd..
  126. goto Task
  127. ) else cd..&goto Task
  128. :Open_2
  129. cd Tasks
  130. if exist %Content%.Htd (
  131. call :Read %Content%
  132. cd..
  133. mode con cols=68 lines=5
  134. @goto :Start
  135. ) else cd..&goto Task
  136. :New
  137. cd Tasks
  138. < Htd.Hdat (
  139. set /p Num=
  140. )
  141. set /a Num+=1
  142. echo.%Num% > Htd.Hdat
  143. cd..
  144. echo.
  145. echo.    ^>^> 新建计划:%Num%
  146. echo.
  147. set "Content= "
  148. set /p Content=    ^>^> 备注:
  149. echo.
  150. set "Content=%Content:>=^>%"
  151. set "Content=%Content:<=^<%"
  152. set "Content=%Content:|=^|%"
  153. set H=0
  154. set Min=0
  155. set S=0
  156. set H_2=0
  157. set Min_2=0
  158. set S_2=0
  159. set Ms=0
  160. set Ms_2=0
  161. call :Vbs_Sleep 1000
  162. @goto :New_2
  163. :Read
  164. < %1.Htd (
  165. set /p H=
  166. set /p Min=
  167. set /p S=
  168. set /p Ms_2=
  169. set /p Content=
  170. )
  171. @goto :eof
  172. :New_2
  173. cls
  174. echo.
  175. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  176. echo.
  177. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U 完成计划
  178. echo.
  179. call :get_key
  180. call :Settings_Time
  181. if /i "!key!"=="U" (
  182. (
  183. echo.%H%
  184. echo.%Min%
  185. echo.%S%
  186. echo.%Ms_2%
  187. echo.%Content%
  188. ) > Tasks\%Num%.Htd
  189. @goto :Task
  190. )
  191. if /i "!valid_key!" equ "0" @goto :New_2
  192. :Error
  193. color 1f
  194. cls
  195. echo.
  196. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  197. echo.
  198. echo.    ^>^> 正在帮您恢复
  199. call :Sleep_Installs
  200. goto :Restart
  201. :Start
  202. set Error=0
  203. cls
  204. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  205. echo.
  206. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒%Ms%毫秒/%H%小时%Min%分钟%S%秒
  207. echo.
  208. echo.    ^>^> Ctrl+C暂停或退出...
  209. call :Sleep 100
  210. if %Error%==1 goto :Error
  211. set /a Ms+=100
  212. if %Ms%==1000 set /a S_2+=1&set Ms=0
  213. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  214. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  215. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  216. if /i "!valid_key!" equ "0" goto :Start
  217. :End
  218. cls
  219. color 4e
  220. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  221. Call :Msg "时间到" vbExclamation "Hope计时器"
  222. color 0f
  223. @call :Restart
  224. @goto :Main
  225. :Vbs_Sleep
  226. echo.Wscript.Sleep %1 > Sleep.vbs
  227. call Sleep.vbs > nul
  228. if exist ReturnKey.vbs del ReturnKey.vbs
  229. @goto :eof
  230. :Sleep_Installs
  231. mode con cols=68 lines=5
  232. color 0f
  233. (
  234. echo.-----BEGIN CERTIFICATE-----
  235. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  236. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  237. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  238. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  239. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  240. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  241. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  242. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  243. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  244. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  245. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  246. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  247. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  248. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  249. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  250. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  251. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  252. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  253. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  254. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  255. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  256. echo.AAAAAAAAAAAAAAAAAAAAAA==
  257. echo.-----END CERTIFICATE-----
  258. ) > Sleep.com
  259. Certutil -Decode Sleep.com Sleep.exe > nul
  260. Certutil -Decode -f Sleep.com Sleep.com > nul
  261. goto :eof
  262. :Sleep
  263. set Error=0
  264. if exist Sleep.exe (
  265. Sleep.exe %1
  266. goto :eof
  267. )
  268. if not exist Sleep.exe if exist Sleep.com (
  269. Sleep.com %1
  270. goto :eof
  271. )
  272. if not exist Sleep.exe if not exist Sleep.com (
  273. set Error=1
  274. goto :eof
  275. )
  276. :get_key
  277. rem 用法:call :get_key
  278. set "key="
  279.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  280.   set "key=%key:~-1%"
  281.   set "valid_key=0"
  282. goto :eof
  283. :Msg
  284. Rem 用法: Call :Msg "Text" [buttons] "Title"
  285. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  286. Call ReturnKey.vbs > nul
  287. if exist ReturnKey.vbs del ReturnKey.vbs
  288. goto :eof
  289. :Settings_Time
  290. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  291. if /i "!key!"=="q" (
  292. set /a Ms_2+=3600000
  293. set /a H+=1
  294. )
  295. if /i "!key!"=="w" (
  296. set /a Ms_2-=3600000
  297. set /a H-=1
  298. )
  299. if /i "!key!"=="e" (
  300. set /a Ms_2+=60000
  301. set /a Min+=1
  302. )
  303. if /i "!key!"=="r" (
  304. set /a Ms_2-=60000
  305. set /a Min-=1
  306. )
  307. if /i "!key!"=="t" (
  308. set /a Ms_2+=1000
  309. set /a S+=1
  310. )
  311. if /i "!key!"=="y" (
  312. set /a Ms_2-=1000
  313. set /a S-=1
  314. )
  315. )
  316. if %S% Lss 0 (
  317. if %Min% Geq 0 if %H% Geq 0 (
  318. set /a Min-=1&set /a S+=60
  319. )
  320. if %Min% Leq 0 if %H% Leq 0 (
  321. echo.
  322. echo.    ^>^> 算数错误!
  323. call :Vbs_Sleep 100
  324. @call :Restart
  325. )
  326. )
  327. if %Min% Lss 0 (
  328. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  329. if %H% Leq 0 (
  330. echo.
  331. echo.    ^>^> 算数错误!
  332. call :Vbs_Sleep 100
  333. @call :Restart
  334. )
  335. )
  336. if %H% Lss 0 (
  337. echo.
  338. echo.    ^>^> 算数错误!
  339. call :Vbs_Sleep 100
  340. @call :Restart
  341. )
  342. if %Ms_2% Gtr 200000000 (
  343. echo.
  344. echo.    ^>^> 算数错误!
  345. call :Vbs_Sleep 100
  346. @call :Restart
  347. )
  348. if %S% Geq 60 set /a Min+=1&set S=0
  349. if %Min% Geq 60 set /a H+=1&set Min=0
复制代码
梦依旧在,只是,心有余而力渐有不足
年年岁岁花相似,岁岁年年人不同

TOP

版本1.0.0012
  1. @echo off
  2. mode con cols=68 lines=5
  3. color f9
  4. endlocal
  5. setlocal enabledelayedexpansion
  6. chcp 936 > nul
  7. Rem By Hope2021
  8. title Hope计时器
  9. cls
  10. echo.
  11. echo.
  12. echo.                                HOPE
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @call :Restart
  16. @goto :Main
  17. :Restart
  18. color 0f
  19. cls
  20. set H=0
  21. set Min=0
  22. set S=0
  23. set H_2=0
  24. set Min_2=0
  25. set S_2=0
  26. set Ms=0
  27. set Ms_2=0
  28. @goto :eof
  29. :Main
  30. mode con cols=68 lines=7
  31. title Hope计时器
  32. set Error=0
  33. cls
  34. echo.
  35. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  36. echo.
  37. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  38. echo.
  39. echo.  P 打开计划程序
  40. call :get_key
  41. call :Settings_Time
  42. if /i "!key!"=="P" (
  43. set St_1=10001
  44. set En_1=10010
  45. mode con cols=68 lines=34
  46. @goto :Task
  47. )
  48. if /i "!key!"=="u" (
  49. mode con cols=68 lines=5
  50. @goto :Start
  51. )
  52. if /i "!key!"=="i" (
  53. exit
  54. )
  55. if /i "!valid_key!" equ "0" goto :Main
  56. :Task
  57. Md Tasks >nul 2>nul
  58. cls
  59. title Hope计时器[计划程序]
  60. set Error=0
  61. echo.
  62. echo.  Hope计时器[计划程序]
  63. set /p Str=--------------------------------------------------------------------<nul
  64. echo.
  65. echo.    ^>^> Q 新建计划   W 使用计划   D 删除计划   E 返回菜单   R 退出
  66. if not exist Tasks\*.Htd (
  67. echo.
  68. echo.    ^>^> 当前没有计划
  69. set /p Str=--------------------------------------------------------------------<nul
  70. echo.
  71. echo.
  72. )
  73. if not exist Tasks\Htd.Hdat echo.10000 > Tasks\Htd.Hdat
  74. if exist Tasks\*.Htd (
  75. cd Tasks
  76. echo.
  77. echo.    ^>^> 当前计划列表
  78. set /p Str=--------------------------------------------------------------------<nul
  79. echo.
  80. echo.
  81. for /f %%i in ('dir /b *.Htd') do (
  82. for /f "skip=4" %%j in (%%~ni.Htd) do echo.    ^>^> 编号:%%~ni  备注:%%j
  83. )
  84. echo.
  85. cd..
  86. )
  87. )
  88. call :get_key
  89. if /i "!key!"=="E" (
  90. @goto :Main
  91. )
  92. if /i "!key!"=="D" (
  93. @goto :Del
  94. )
  95. if /i "!key!"=="R" (
  96. exit
  97. )
  98. if /i "!key!"=="Q" (
  99. @goto :New
  100. )
  101. if /i "!key!"=="W" (
  102. @goto :Open
  103. )
  104. if /i "!valid_key!" equ "0" @goto :Task
  105. :Open
  106. if exist Tasks\*.Htd (
  107. set "Content= "
  108. set /p Content=    ^>^> 请输入计划编号:
  109. goto Open_2
  110. ) else cd..&@goto :Task
  111. :Del
  112. if exist Tasks\*.Htd (
  113. set "Content= "
  114. set /p Content=    ^>^> 请输入计划编号:
  115. goto Del_2
  116. ) else cd..&@goto :Task
  117. :Del_2
  118. cd Tasks
  119. if exist %Content%.Htd (
  120. del %Content%.Htd
  121. cd..
  122. goto Task
  123. ) else cd..&goto Task
  124. :Open_2
  125. cd Tasks
  126. if exist %Content%.Htd (
  127. call :Read %Content%
  128. cd..
  129. mode con cols=68 lines=5
  130. @goto :Start
  131. ) else cd..&goto Task
  132. :New
  133. cd Tasks
  134. < Htd.Hdat (
  135. set /p Num=
  136. )
  137. set /a Num+=1
  138. echo.%Num% > Htd.Hdat
  139. cd..
  140. echo.
  141. echo.    ^>^> 新建计划:%Num%
  142. echo.
  143. set "Content= "
  144. set /p Content=    ^>^> 备注:
  145. echo.
  146. set "Content=%Content:>=^>%"
  147. set "Content=%Content:<=^<%"
  148. set "Content=%Content:|=^|%"
  149. set H=0
  150. set Min=0
  151. set S=0
  152. set H_2=0
  153. set Min_2=0
  154. set S_2=0
  155. set Ms=0
  156. set Ms_2=0
  157. call :Vbs_Sleep 1000
  158. @goto :New_2
  159. :Read
  160. < %1.Htd (
  161. set /p H=
  162. set /p Min=
  163. set /p S=
  164. set /p Ms_2=
  165. set /p Content=
  166. )
  167. @goto :eof
  168. :New_2
  169. cls
  170. echo.
  171. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  172. echo.
  173. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U 完成计划
  174. echo.
  175. call :get_key
  176. call :Settings_Time
  177. if /i "!key!"=="U" (
  178. (
  179. echo.%H%
  180. echo.%Min%
  181. echo.%S%
  182. echo.%Ms_2%
  183. echo.%Content%
  184. ) > Tasks\%Num%.Htd
  185. @goto :Task
  186. )
  187. if /i "!valid_key!" equ "0" @goto :New_2
  188. :Error
  189. color 1f
  190. cls
  191. echo.
  192. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  193. echo.
  194. echo.    ^>^> 正在帮您恢复
  195. call :Sleep_Installs
  196. goto :Restart
  197. :Start
  198. set Error=0
  199. cls
  200. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  201. echo.
  202. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒%Ms%毫秒/%H%小时%Min%分钟%S%秒
  203. echo.
  204. echo.    ^>^> Ctrl+C暂停或退出...
  205. call :Sleep 100
  206. if %Error%==1 goto :Error
  207. set /a Ms+=100
  208. if %Ms%==1000 set /a S_2+=1&set Ms=0
  209. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  210. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  211. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  212. if /i "!valid_key!" equ "0" goto :Start
  213. :End
  214. cls
  215. color 4e
  216. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  217. Call :Msg "时间到" vbExclamation "Hope计时器"
  218. color 0f
  219. @call :Restart
  220. @goto :Main
  221. :Vbs_Sleep
  222. echo.Wscript.Sleep %1 > Sleep.vbs
  223. call Sleep.vbs > nul
  224. if exist ReturnKey.vbs del ReturnKey.vbs
  225. @goto :eof
  226. :Sleep_Installs
  227. mode con cols=68 lines=5
  228. color 0f
  229. (
  230. echo.-----BEGIN CERTIFICATE-----
  231. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  232. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  233. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  234. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  235. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  236. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  237. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  238. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  239. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  240. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  241. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  242. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  243. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  244. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  245. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  246. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  247. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  248. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  249. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  250. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  251. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  252. echo.AAAAAAAAAAAAAAAAAAAAAA==
  253. echo.-----END CERTIFICATE-----
  254. ) > Sleep.com
  255. Certutil -Decode Sleep.com Sleep.exe > nul
  256. Certutil -Decode -f Sleep.com Sleep.com > nul
  257. goto :eof
  258. :Sleep
  259. set Error=0
  260. if exist Sleep.exe (
  261. Sleep.exe %1
  262. goto :eof
  263. )
  264. if not exist Sleep.exe if exist Sleep.com (
  265. Sleep.com %1
  266. goto :eof
  267. )
  268. if not exist Sleep.exe if not exist Sleep.com (
  269. set Error=1
  270. goto :eof
  271. )
  272. :get_key
  273. rem 用法:call :get_key
  274. set "key="
  275.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  276.   set "key=%key:~-1%"
  277.   set "valid_key=0"
  278. goto :eof
  279. :Msg
  280. Rem 用法: Call :Msg "Text" [buttons] "Title"
  281. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  282. Call ReturnKey.vbs > nul
  283. if exist ReturnKey.vbs del ReturnKey.vbs
  284. goto :eof
  285. :Settings_Time
  286. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  287. if /i "!key!"=="q" (
  288. set /a Ms_2+=3600000
  289. set /a H+=1
  290. )
  291. if /i "!key!"=="w" (
  292. set /a Ms_2-=3600000
  293. set /a H-=1
  294. )
  295. if /i "!key!"=="e" (
  296. set /a Ms_2+=60000
  297. set /a Min+=1
  298. )
  299. if /i "!key!"=="r" (
  300. set /a Ms_2-=60000
  301. set /a Min-=1
  302. )
  303. if /i "!key!"=="t" (
  304. set /a Ms_2+=1000
  305. set /a S+=1
  306. )
  307. if /i "!key!"=="y" (
  308. set /a Ms_2-=1000
  309. set /a S-=1
  310. )
  311. )
  312. if %S% Lss 0 (
  313. if %Min% Geq 0 if %H% Geq 0 (
  314. set /a Min-=1&set /a S+=60
  315. )
  316. if %Min% Leq 0 if %H% Leq 0 (
  317. echo.
  318. echo.    ^>^> 算数错误!
  319. call :Vbs_Sleep 100
  320. @call :Restart
  321. )
  322. )
  323. if %Min% Lss 0 (
  324. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  325. if %H% Leq 0 (
  326. echo.
  327. echo.    ^>^> 算数错误!
  328. call :Vbs_Sleep 100
  329. @call :Restart
  330. )
  331. )
  332. if %H% Lss 0 (
  333. echo.
  334. echo.    ^>^> 算数错误!
  335. call :Vbs_Sleep 100
  336. @call :Restart
  337. )
  338. if %Ms_2% Gtr 200000000 (
  339. echo.
  340. echo.    ^>^> 算数错误!
  341. call :Vbs_Sleep 100
  342. @call :Restart
  343. )
  344. if %S% Geq 60 set /a Min+=1&set S=0
  345. if %Min% Geq 60 set /a H+=1&set Min=0
复制代码

TOP

本帖最后由 HOPE2021 于 2021-8-13 10:51 编辑

有重大谬误,请停止使用!
版本1.0.0011
  1. @echo off
  2. mode con cols=68 lines=5
  3. color f9
  4. endlocal
  5. setlocal enabledelayedexpansion
  6. chcp 936 > nul
  7. Rem By Hope2021
  8. title Hope计时器
  9. cls
  10. echo.
  11. echo.
  12. echo.                                HOPE
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @call :Restart
  16. @goto :Main
  17. :Restart
  18. color 0f
  19. cls
  20. set H=0
  21. set Min=0
  22. set S=0
  23. set H_2=0
  24. set Min_2=0
  25. set S_2=0
  26. set Ms=0
  27. set Ms_2=0
  28. @goto :eof
  29. :Main
  30. mode con cols=68 lines=7
  31. title Hope计时器
  32. set Error=0
  33. cls
  34. echo.
  35. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  36. echo.
  37. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  38. echo.
  39. echo.  P 打开计划程序
  40. call :get_key
  41. call :Settings_Time
  42. if /i "!key!"=="P" (
  43. set St_1=10001
  44. set En_1=10010
  45. mode con cols=68 lines=34
  46. @goto :Task
  47. )
  48. if /i "!key!"=="u" (
  49. mode con cols=68 lines=5
  50. @goto :Start
  51. )
  52. if /i "!key!"=="i" (
  53. exit
  54. )
  55. if /i "!valid_key!" equ "0" goto :Main
  56. :Task
  57. Md Tasks >nul 2>nul
  58. cls
  59. title Hope计时器[计划程序]
  60. set Error=0
  61. echo.
  62. echo.  Hope计时器[计划程序]
  63. set /p Str=--------------------------------------------------------------------<nul
  64. echo.
  65. echo.    ^>^> Q 新建计划   W 使用计划   D 删除计划   E 返回菜单   R 退出
  66. if not exist Tasks\*.Htd (
  67. echo.
  68. echo.    ^>^> 当前没有计划
  69. set /p Str=--------------------------------------------------------------------<nul
  70. echo.
  71. echo.
  72. )
  73. if not exist Tasks\Htd.Hdat echo.10000 > Tasks\Htd.Hdat
  74. if exist Tasks\*.Htd (
  75. cd Tasks
  76. echo.
  77. echo.    ^>^> 当前计划列表
  78. set /p Str=--------------------------------------------------------------------<nul
  79. echo.
  80. echo.
  81. for /f %%i in ('dir /b *.Htd') do (
  82. for /f "skip=4" %%j in (%%~ni.Htd) do echo.    ^>^> 编号:%%~ni  备注:%%j
  83. )
  84. echo.
  85. cd..
  86. )
  87. )
  88. call :get_key
  89. if /i "!key!"=="E" (
  90. @goto :Main
  91. )
  92. if /i "!key!"=="D" (
  93. @goto :Del
  94. )
  95. if /i "!key!"=="R" (
  96. exit
  97. )
  98. if /i "!key!"=="Q" (
  99. @goto :New
  100. )
  101. if /i "!key!"=="W" (
  102. @goto :Open
  103. )
  104. if /i "!valid_key!" equ "0" @goto :Task
  105. :Open
  106. if exist Tasks\*.Htd (
  107. set "Content= "
  108. set /p Content=    ^>^> 请输入计划编号:
  109. goto Open_2
  110. ) else cd..&@goto :Task
  111. :Del
  112. if exist Tasks\*.Htd (
  113. set "Content= "
  114. set /p Content=    ^>^> 请输入计划编号:
  115. goto Del_2
  116. ) else cd..&@goto :Task
  117. :Del_2
  118. cd Tasks
  119. if exist %Content%.Htd (
  120. del %Content%.Htd
  121. cd..
  122. goto Task
  123. ) else cd..&goto Task
  124. :Open_2
  125. cd Tasks
  126. if exist %Content%.Htd (
  127. call :Read %Content%
  128. cd..
  129. mode con cols=68 lines=5
  130. @goto :Start
  131. ) else cd..&goto Task
  132. :New
  133. cd Tasks
  134. < Htd.Hdat (
  135. set /p Num=
  136. )
  137. set /a Num+=1
  138. echo.%Num% > Htd.Hdat
  139. cd..
  140. echo.
  141. echo.    ^>^> 新建计划:%Num%
  142. echo.
  143. set "Content= "
  144. set /p Content=    ^>^> 备注:
  145. echo.
  146. set "Content=%Content:>=^>%"
  147. set "Content=%Content:<=^<%"
  148. set "Content=%Content:|=^|%"
  149. set H=0
  150. set Min=0
  151. set S=0
  152. set H_2=0
  153. set Min_2=0
  154. set S_2=0
  155. set Ms=0
  156. set Ms_2=0
  157. call :Vbs_Sleep 1000
  158. @goto :New_2
  159. :Read
  160. < %1.Htd (
  161. set /p H=
  162. set /p Min=
  163. set /p S=
  164. set /p Ms_2=
  165. set /p Content=
  166. )
  167. @goto :eof
  168. :New_2
  169. cls
  170. echo.
  171. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  172. echo.
  173. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U 完成计划
  174. echo.
  175. call :get_key
  176. call :Settings_Time
  177. if /i "!key!"=="U" (
  178. (
  179. echo.%H%
  180. echo.%Min%
  181. echo.%S%
  182. echo.%Ms_2%
  183. echo.%Content%
  184. ) > Tasks\%Num%.Htd
  185. @goto :Task
  186. )
  187. if /i "!valid_key!" equ "0" @goto :New_2
  188. :Error
  189. color 1f
  190. cls
  191. echo.
  192. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  193. echo.
  194. echo.    ^>^> 正在帮您恢复
  195. call :Sleep_Installs
  196. goto :Restart
  197. :Start
  198. set Error=0
  199. cls
  200. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  201. echo.
  202. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒%Ms%毫秒/%H%小时%Min%分钟%S%秒
  203. echo.
  204. echo.    ^>^> Ctrl+C暂停或退出...
  205. call :Sleep 100
  206. if %Error%==1 goto :Error
  207. set /a Ms+=100
  208. if %Ms%==1000 set /a S_2+=1&set Ms=0
  209. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  210. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  211. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  212. if /i "!valid_key!" equ "0" goto :Start
  213. :End
  214. cls
  215. color 4e
  216. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  217. Call :Msg "时间到" vbExclamation "Hope计时器"
  218. color 0f
  219. @call :Restart
  220. :Vbs_Sleep
  221. echo.Wscript.Sleep %1 > Sleep.vbs
  222. call Sleep.vbs > nul
  223. if exist ReturnKey.vbs del ReturnKey.vbs
  224. @goto :eof
  225. :Sleep_Installs
  226. mode con cols=68 lines=5
  227. color 0f
  228. (
  229. echo.-----BEGIN CERTIFICATE-----
  230. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  231. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  232. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  233. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  234. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  235. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  236. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  237. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  238. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  239. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  240. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  241. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  242. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  243. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  244. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  245. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  246. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  247. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  248. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  249. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  250. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  251. echo.AAAAAAAAAAAAAAAAAAAAAA==
  252. echo.-----END CERTIFICATE-----
  253. ) > Sleep.com
  254. Certutil -Decode Sleep.com Sleep.exe > nul
  255. Certutil -Decode -f Sleep.com Sleep.com > nul
  256. goto :eof
  257. :Sleep
  258. set Error=0
  259. if exist Sleep.exe (
  260. Sleep.exe %1
  261. goto :eof
  262. )
  263. if not exist Sleep.exe if exist Sleep.com (
  264. Sleep.com %1
  265. goto :eof
  266. )
  267. if not exist Sleep.exe if not exist Sleep.com (
  268. set Error=1
  269. goto :eof
  270. )
  271. :get_key
  272. rem 用法:call :get_key
  273. set "key="
  274.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  275.   set "key=%key:~-1%"
  276.   set "valid_key=0"
  277. goto :eof
  278. :Msg
  279. Rem 用法: Call :Msg "Text" [buttons] "Title"
  280. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  281. Call ReturnKey.vbs > nul
  282. if exist ReturnKey.vbs del ReturnKey.vbs
  283. goto :eof
  284. :Settings_Time
  285. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  286. if /i "!key!"=="q" (
  287. set /a Ms_2+=3600000
  288. set /a H+=1
  289. )
  290. if /i "!key!"=="w" (
  291. set /a Ms_2-=3600000
  292. set /a H-=1
  293. )
  294. if /i "!key!"=="e" (
  295. set /a Ms_2+=60000
  296. set /a Min+=1
  297. )
  298. if /i "!key!"=="r" (
  299. set /a Ms_2-=60000
  300. set /a Min-=1
  301. )
  302. if /i "!key!"=="t" (
  303. set /a Ms_2+=1000
  304. set /a S+=1
  305. )
  306. if /i "!key!"=="y" (
  307. set /a Ms_2-=1000
  308. set /a S-=1
  309. )
  310. )
  311. if %S% Lss 0 (
  312. if %Min% Geq 0 if %H% Geq 0 (
  313. set /a Min-=1&set /a S+=60
  314. )
  315. if %Min% Leq 0 if %H% Leq 0 (
  316. echo.
  317. echo.    ^>^> 算数错误!
  318. call :Vbs_Sleep 100
  319. @call :Restart
  320. )
  321. )
  322. if %Min% Lss 0 (
  323. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  324. if %H% Leq 0 (
  325. echo.
  326. echo.    ^>^> 算数错误!
  327. call :Vbs_Sleep 100
  328. @call :Restart
  329. )
  330. )
  331. if %H% Lss 0 (
  332. echo.
  333. echo.    ^>^> 算数错误!
  334. call :Vbs_Sleep 100
  335. @call :Restart
  336. )
  337. if %Ms_2% Gtr 200000000 (
  338. echo.
  339. echo.    ^>^> 算数错误!
  340. call :Vbs_Sleep 100
  341. @call :Restart
  342. )
  343. if %S% Geq 60 set /a Min+=1&set S=0
  344. if %Min% Geq 60 set /a H+=1&set Min=0
复制代码

TOP

本帖最后由 HOPE2021 于 2021-8-13 10:51 编辑

有重大谬误,请停止使用!
版本1.0.0010
  1. @echo off
  2. mode con cols=68 lines=5
  3. color f9
  4. endlocal
  5. setlocal enabledelayedexpansion
  6. chcp 936 > nul
  7. Rem By Hope2021
  8. title Hope计时器
  9. cls
  10. echo.
  11. echo.
  12. echo.                                HOPE
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @goto :Restart
  16. :Restart
  17. color 0f
  18. cls
  19. set H=0
  20. set Min=0
  21. set S=0
  22. set H_2=0
  23. set Min_2=0
  24. set S_2=0
  25. set Ms=0
  26. set Ms_2=0
  27. @goto :Main
  28. :Main
  29. mode con cols=68 lines=7
  30. title Hope计时器
  31. set Error=0
  32. cls
  33. echo.
  34. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  35. echo.
  36. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  37. echo.
  38. echo.  P 打开计划程序
  39. call :get_key
  40. call :Settings_Time
  41. if /i "!key!"=="P" (
  42. set St_1=10001
  43. set En_1=10010
  44. mode con cols=68 lines=34
  45. @goto :Task
  46. )
  47. if /i "!key!"=="u" (
  48. mode con cols=68 lines=5
  49. @goto :Start
  50. )
  51. if /i "!key!"=="i" (
  52. exit
  53. )
  54. if /i "!valid_key!" equ "0" goto :Main
  55. :Task
  56. Md Tasks >nul 2>nul
  57. cls
  58. title Hope计时器[计划程序]
  59. set Error=0
  60. echo.
  61. echo.  Hope计时器[计划程序]
  62. set /p Str=--------------------------------------------------------------------<nul
  63. echo.
  64. echo.    ^>^> Q 新建计划   W 使用计划   D 删除计划   E 返回菜单   R 退出
  65. if not exist Tasks\*.Htd (
  66. echo.
  67. echo.    ^>^> 当前没有计划
  68. set /p Str=--------------------------------------------------------------------<nul
  69. echo.
  70. echo.
  71. )
  72. if not exist Tasks\Htd.Hdat echo.10000 > Tasks\Htd.Hdat
  73. if exist Tasks\*.Htd (
  74. cd Tasks
  75. echo.
  76. echo.    ^>^> 当前计划列表
  77. set /p Str=--------------------------------------------------------------------<nul
  78. echo.
  79. echo.
  80. for /f %%i in ('dir /b *.Htd') do (
  81. for /f "skip=4" %%j in (%%~ni.Htd) do echo.    ^>^> 编号:%%~ni  备注:%%j
  82. )
  83. echo.
  84. cd..
  85. )
  86. )
  87. call :get_key
  88. if /i "!key!"=="E" (
  89. @goto :Main
  90. )
  91. if /i "!key!"=="D" (
  92. @goto :Del
  93. )
  94. if /i "!key!"=="R" (
  95. exit
  96. )
  97. if /i "!key!"=="Q" (
  98. @goto :New
  99. )
  100. if /i "!key!"=="W" (
  101. @goto :Open
  102. )
  103. if /i "!valid_key!" equ "0" @goto :Task
  104. :Open
  105. if exist Tasks\*.Htd (
  106. set "Content= "
  107. set /p Content=    ^>^> 请输入计划编号:
  108. goto Open_2
  109. ) else cd..&@goto :Task
  110. :Del
  111. if exist Tasks\*.Htd (
  112. set "Content= "
  113. set /p Content=    ^>^> 请输入计划编号:
  114. goto Del_2
  115. ) else cd..&@goto :Task
  116. :Del_2
  117. cd Tasks
  118. if exist %Content%.Htd (
  119. del %Content%.Htd
  120. cd..
  121. goto Task
  122. ) else cd..&goto Task
  123. :Open_2
  124. cd Tasks
  125. if exist %Content%.Htd (
  126. call :Read %Content%
  127. cd..
  128. mode con cols=68 lines=5
  129. @goto :Start
  130. ) else cd..&goto Task
  131. :New
  132. cd Tasks
  133. < Htd.Hdat (
  134. set /p Num=
  135. )
  136. set /a Num+=1
  137. echo.%Num% > Htd.Hdat
  138. cd..
  139. echo.
  140. echo.    ^>^> 新建计划:%Num%
  141. echo.
  142. set "Content= "
  143. set /p Content=    ^>^> 备注:
  144. echo.
  145. set "Content=%Content:>=^>%"
  146. set "Content=%Content:<=^<%"
  147. set "Content=%Content:|=^|%"
  148. set H=0
  149. set Min=0
  150. set S=0
  151. set H_2=0
  152. set Min_2=0
  153. set S_2=0
  154. set Ms=0
  155. set Ms_2=0
  156. call :Vbs_Sleep 1000
  157. @goto :New_2
  158. :Read
  159. < %1.Htd (
  160. set /p H=
  161. set /p Min=
  162. set /p S=
  163. set /p Ms_2=
  164. set /p Content=
  165. )
  166. @goto :eof
  167. :New_2
  168. cls
  169. echo.
  170. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  171. echo.
  172. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U 完成计划
  173. echo.
  174. call :get_key
  175. call :Settings_Time
  176. if /i "!key!"=="U" (
  177. (
  178. echo.%H%
  179. echo.%Min%
  180. echo.%S%
  181. echo.%Ms_2%
  182. echo.%Content%
  183. ) > Tasks\%Num%.Htd
  184. @goto :Task
  185. )
  186. if /i "!valid_key!" equ "0" @goto :New_2
  187. :Error
  188. color 1f
  189. cls
  190. echo.
  191. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  192. echo.
  193. echo.    ^>^> 正在帮您恢复
  194. call :Sleep_Installs
  195. goto :Restart
  196. :Start
  197. set Error=0
  198. cls
  199. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  200. echo.
  201. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒%Ms%毫秒/%H%小时%Min%分钟%S%秒
  202. echo.
  203. echo.    ^>^> Ctrl+C暂停或退出...
  204. call :Sleep 100
  205. if %Error%==1 goto :Error
  206. set /a Ms+=100
  207. if %Ms%==1000 set /a S_2+=1&set Ms=0
  208. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  209. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  210. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  211. if /i "!valid_key!" equ "0" goto :Start
  212. :End
  213. cls
  214. color 4e
  215. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  216. Call :Msg "时间到" vbExclamation "Hope计时器"
  217. color 0f
  218. @goto :Restart
  219. :Vbs_Sleep
  220. echo.Wscript.Sleep %1 > Sleep.vbs
  221. call Sleep.vbs > nul
  222. if exist ReturnKey.vbs del ReturnKey.vbs
  223. @goto :eof
  224. :Sleep_Installs
  225. mode con cols=68 lines=5
  226. color 0f
  227. (
  228. echo.-----BEGIN CERTIFICATE-----
  229. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  230. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  231. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  232. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  233. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  234. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  235. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  236. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  237. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  238. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  239. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  240. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  241. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  242. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  243. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  244. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  245. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  246. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  247. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  248. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  249. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  250. echo.AAAAAAAAAAAAAAAAAAAAAA==
  251. echo.-----END CERTIFICATE-----
  252. ) > Sleep.com
  253. Certutil -Decode Sleep.com Sleep.exe > nul
  254. Certutil -Decode -f Sleep.com Sleep.com > nul
  255. goto :eof
  256. :Sleep
  257. set Error=0
  258. if exist Sleep.exe (
  259. Sleep.exe %1
  260. goto :eof
  261. )
  262. if not exist Sleep.exe if exist Sleep.com (
  263. Sleep.com %1
  264. goto :eof
  265. )
  266. if not exist Sleep.exe if not exist Sleep.com (
  267. set Error=1
  268. goto :eof
  269. )
  270. :get_key
  271. rem 用法:call :get_key
  272. set "key="
  273.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  274.   set "key=%key:~-1%"
  275.   set "valid_key=0"
  276. goto :eof
  277. :Msg
  278. Rem 用法: Call :Msg "Text" [buttons] "Title"
  279. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  280. Call ReturnKey.vbs > nul
  281. if exist ReturnKey.vbs del ReturnKey.vbs
  282. goto :eof
  283. :Settings_Time
  284. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  285. if /i "!key!"=="q" (
  286. set /a Ms_2+=3600000
  287. set /a H+=1
  288. )
  289. if /i "!key!"=="w" (
  290. set /a Ms_2-=3600000
  291. set /a H-=1
  292. )
  293. if /i "!key!"=="e" (
  294. set /a Ms_2+=60000
  295. set /a Min+=1
  296. )
  297. if /i "!key!"=="r" (
  298. set /a Ms_2-=60000
  299. set /a Min-=1
  300. )
  301. if /i "!key!"=="t" (
  302. set /a Ms_2+=1000
  303. set /a S+=1
  304. )
  305. if /i "!key!"=="y" (
  306. set /a Ms_2-=1000
  307. set /a S-=1
  308. )
  309. )
  310. if %S% Lss 0 (
  311. if %Min% Geq 0 if %H% Geq 0 (
  312. set /a Min-=1&set /a S+=60
  313. )
  314. if %Min% Leq 0 if %H% Leq 0 (
  315. echo.
  316. echo.    ^>^> 算数错误!
  317. call :Vbs_Sleep 100
  318. @goto :Restart
  319. )
  320. )
  321. if %Min% Lss 0 (
  322. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  323. if %H% Leq 0 (
  324. echo.
  325. echo.    ^>^> 算数错误!
  326. call :Vbs_Sleep 100
  327. @goto :Restart
  328. )
  329. )
  330. if %H% Lss 0 (
  331. echo.
  332. echo.    ^>^> 算数错误!
  333. call :Vbs_Sleep 100
  334. @goto :Restart
  335. )
  336. if %Ms_2% Gtr 200000000 (
  337. echo.
  338. echo.    ^>^> 算数错误!
  339. call :Vbs_Sleep 100
  340. @goto :Restart
  341. )
  342. if %S% Geq 60 set /a Min+=1&set S=0
  343. if %Min% Geq 60 set /a H+=1&set Min=0
复制代码

TOP

本帖最后由 HOPE2021 于 2021-8-13 10:51 编辑

有重大谬误,请停止使用!
版本1.0.0009
  1. @echo off
  2. mode con cols=68 lines=5
  3. color f9
  4. endlocal
  5. setlocal enabledelayedexpansion
  6. chcp 936 > nul
  7. Rem By Hope2021
  8. title Hope计时器
  9. cls
  10. echo.
  11. echo.
  12. echo.                                HOPE
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @goto :Restart
  16. :Restart
  17. color 0f
  18. cls
  19. set H=0
  20. set Min=0
  21. set S=0
  22. set H_2=0
  23. set Min_2=0
  24. set S_2=0
  25. set Ms=0
  26. set Ms_2=0
  27. @goto :Main
  28. :Main
  29. mode con cols=68 lines=7
  30. title Hope计时器
  31. set Error=0
  32. cls
  33. echo.
  34. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  35. echo.
  36. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  37. echo.
  38. echo.  P 打开计划程序
  39. call :get_key
  40. call :Settings_Time
  41. if /i "!key!"=="P" (
  42. set St_1=10001
  43. set En_1=10010
  44. mode con cols=68 lines=34
  45. @goto :Task
  46. )
  47. if /i "!key!"=="u" (
  48. mode con cols=68 lines=5
  49. @goto :Start
  50. )
  51. if /i "!key!"=="i" (
  52. exit
  53. )
  54. if /i "!valid_key!" equ "0" goto :Main
  55. :Task
  56. Md Tasks >nul 2>nul
  57. cls
  58. title Hope计时器[计划程序]
  59. set Error=0
  60. echo.
  61. echo.  Hope计时器[计划程序]
  62. set /p Str=--------------------------------------------------------------------<nul
  63. echo.
  64. echo.    ^>^> Q 新建计划   W 使用计划   D 删除计划   E 返回菜单   R 退出
  65. if not exist Tasks\*.Htd (
  66. echo.
  67. echo.    ^>^> 当前没有计划
  68. set /p Str=--------------------------------------------------------------------<nul
  69. echo.
  70. echo.
  71. )
  72. if not exist Tasks\Htd.Hdat echo.10000 > Tasks\Htd.Hdat
  73. if exist Tasks\*.Htd (
  74. cd Tasks
  75. echo.
  76. echo.    ^>^> 当前计划列表
  77. set /p Str=--------------------------------------------------------------------<nul
  78. echo.
  79. echo.
  80. for /f %%i in ('dir /b *.Htd') do (
  81. for /f "skip=4" %%j in (%%~ni.Htd) do echo.    ^>^> 编号:%%~ni  备注:%%j
  82. )
  83. echo.
  84. cd..
  85. )
  86. )
  87. call :get_key
  88. if /i "!key!"=="E" (
  89. @goto :Main
  90. )
  91. if /i "!key!"=="R" (
  92. exit
  93. )
  94. if /i "!key!"=="Q" (
  95. @goto :New
  96. )
  97. if /i "!key!"=="W" (
  98. @goto :Open
  99. )
  100. if /i "!valid_key!" equ "0" @goto :Task
  101. :Open
  102. if exist Tasks\*.Htd (
  103. set "Content= "
  104. set /p Content=    ^>^> 请输入计划编号:
  105. goto Open_2
  106. ) else cd..&@goto :Task
  107. :Del
  108. if exist Tasks\*.Htd (
  109. set "Content= "
  110. set /p Content=    ^>^> 请输入计划编号:
  111. goto Del_2
  112. ) else cd..&@goto :Task
  113. :Del_2
  114. cd Tasks
  115. if exist %Content%.Htd (
  116. del %Content%.Htd
  117. cd..
  118. goto Task
  119. ) else cd..&goto Task
  120. :Open_2
  121. cd Tasks
  122. if exist %Content%.Htd (
  123. call :Read %Content%
  124. cd..
  125. mode con cols=68 lines=5
  126. @goto :Start
  127. ) else cd..&goto Task
  128. :New
  129. cd Tasks
  130. < Htd.Hdat (
  131. set /p Num=
  132. )
  133. set /a Num+=1
  134. echo.%Num% > Htd.Hdat
  135. cd..
  136. echo.
  137. echo.    ^>^> 新建计划:%Num%
  138. echo.
  139. set "Content= "
  140. set /p Content=    ^>^> 备注:
  141. echo.
  142. set "Content=%Content:>=^>%"
  143. set "Content=%Content:<=^<%"
  144. set "Content=%Content:|=^|%"
  145. set H=0
  146. set Min=0
  147. set S=0
  148. set H_2=0
  149. set Min_2=0
  150. set S_2=0
  151. set Ms=0
  152. set Ms_2=0
  153. call :Vbs_Sleep 1000
  154. @goto :New_2
  155. :Read
  156. < %1.Htd (
  157. set /p H=
  158. set /p Min=
  159. set /p S=
  160. set /p Ms_2=
  161. set /p Content=
  162. )
  163. @goto :eof
  164. :New_2
  165. cls
  166. echo.
  167. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  168. echo.
  169. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U 完成计划
  170. echo.
  171. call :get_key
  172. call :Settings_Time
  173. if /i "!key!"=="U" (
  174. (
  175. echo.%H%
  176. echo.%Min%
  177. echo.%S%
  178. echo.%Ms_2%
  179. echo.%Content%
  180. ) > Tasks\%Num%.Htd
  181. @goto :Task
  182. )
  183. if /i "!valid_key!" equ "0" @goto :New_2
  184. :Error
  185. color 1f
  186. cls
  187. echo.
  188. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  189. echo.
  190. echo.    ^>^> 正在帮您恢复
  191. call :Sleep_Installs
  192. goto :Restart
  193. :Start
  194. set Error=0
  195. cls
  196. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  197. echo.
  198. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒%Ms%毫秒/%H%小时%Min%分钟%S%秒
  199. echo.
  200. echo.    ^>^> Ctrl+C暂停或退出...
  201. call :Sleep 100
  202. if %Error%==1 goto :Error
  203. set /a Ms+=100
  204. if %Ms%==1000 set /a S_2+=1&set Ms=0
  205. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  206. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  207. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  208. if /i "!valid_key!" equ "0" goto :Start
  209. :End
  210. cls
  211. color 4e
  212. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  213. Call :Msg "时间到" vbExclamation "Hope计时器"
  214. color 0f
  215. @goto :Restart
  216. :Vbs_Sleep
  217. echo.Wscript.Sleep %1 > Sleep.vbs
  218. call Sleep.vbs > nul
  219. if exist ReturnKey.vbs del ReturnKey.vbs
  220. @goto :eof
  221. :Sleep_Installs
  222. mode con cols=68 lines=5
  223. color 0f
  224. (
  225. echo.-----BEGIN CERTIFICATE-----
  226. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  227. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  228. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  229. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  230. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  231. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  232. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  233. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  234. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  235. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  236. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  237. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  238. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  239. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  240. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  241. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  242. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  243. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  244. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  245. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  246. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  247. echo.AAAAAAAAAAAAAAAAAAAAAA==
  248. echo.-----END CERTIFICATE-----
  249. ) > Sleep.com
  250. Certutil -Decode Sleep.com Sleep.exe > nul
  251. Certutil -Decode -f Sleep.com Sleep.com > nul
  252. goto :eof
  253. :Sleep
  254. set Error=0
  255. if exist Sleep.exe (
  256. Sleep.exe %1
  257. goto :eof
  258. )
  259. if not exist Sleep.exe if exist Sleep.com (
  260. Sleep.com %1
  261. goto :eof
  262. )
  263. if not exist Sleep.exe if not exist Sleep.com (
  264. set Error=1
  265. goto :eof
  266. )
  267. :get_key
  268. rem 用法:call :get_key
  269. set "key="
  270.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  271.   set "key=%key:~-1%"
  272.   set "valid_key=0"
  273. goto :eof
  274. :Msg
  275. Rem 用法: Call :Msg "Text" [buttons] "Title"
  276. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  277. Call ReturnKey.vbs > nul
  278. if exist ReturnKey.vbs del ReturnKey.vbs
  279. goto :eof
  280. :Settings_Time
  281. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  282. if /i "!key!"=="q" (
  283. set /a Ms_2+=3600000
  284. set /a H+=1
  285. )
  286. if /i "!key!"=="w" (
  287. set /a Ms_2-=3600000
  288. set /a H-=1
  289. )
  290. if /i "!key!"=="e" (
  291. set /a Ms_2+=60000
  292. set /a Min+=1
  293. )
  294. if /i "!key!"=="r" (
  295. set /a Ms_2-=60000
  296. set /a Min-=1
  297. )
  298. if /i "!key!"=="t" (
  299. set /a Ms_2+=1000
  300. set /a S+=1
  301. )
  302. if /i "!key!"=="y" (
  303. set /a Ms_2-=1000
  304. set /a S-=1
  305. )
  306. )
  307. if %S% Lss 0 (
  308. if %Min% Geq 0 if %H% Geq 0 (
  309. set /a Min-=1&set /a S+=60
  310. )
  311. if %Min% Leq 0 if %H% Leq 0 (
  312. echo.
  313. echo.    ^>^> 算数错误!
  314. call :Vbs_Sleep 100
  315. @goto :Restart
  316. )
  317. )
  318. if %Min% Lss 0 (
  319. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  320. if %H% Leq 0 (
  321. echo.
  322. echo.    ^>^> 算数错误!
  323. call :Vbs_Sleep 100
  324. @goto :Restart
  325. )
  326. )
  327. if %H% Lss 0 (
  328. echo.
  329. echo.    ^>^> 算数错误!
  330. call :Vbs_Sleep 100
  331. @goto :Restart
  332. )
  333. if %Ms_2% Gtr 200000000 (
  334. echo.
  335. echo.    ^>^> 算数错误!
  336. call :Vbs_Sleep 100
  337. @goto :Restart
  338. )
  339. if %S% Geq 60 set /a Min+=1&set S=0
  340. if %Min% Geq 60 set /a H+=1&set Min=0
复制代码

TOP

版本1.0.0008
  1. @echo off
  2. mode con cols=68 lines=5
  3. color f9
  4. endlocal
  5. setlocal enabledelayedexpansion
  6. chcp 936 > nul
  7. Rem By Hope2021
  8. title Hope计时器
  9. cls
  10. echo.
  11. echo.
  12. echo.                                HOPE
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @goto :Restart
  16. :Restart
  17. color 0f
  18. cls
  19. set H=0
  20. set Min=0
  21. set S=0
  22. set H_2=0
  23. set Min_2=0
  24. set S_2=0
  25. set Ms=0
  26. set Ms_2=0
  27. @goto :Main
  28. :Main
  29. mode con cols=68 lines=7
  30. title Hope计时器
  31. set Error=0
  32. cls
  33. echo.
  34. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  35. echo.
  36. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  37. echo.
  38. echo.  P 打开计划程序
  39. call :get_key
  40. call :Settings_Time
  41. if /i "!key!"=="P" (
  42. set St_1=10001
  43. set En_1=10010
  44. mode con cols=68 lines=34
  45. @goto :Task
  46. )
  47. if /i "!key!"=="u" (
  48. mode con cols=68 lines=5
  49. @goto :Start
  50. )
  51. if /i "!key!"=="i" (
  52. exit
  53. )
  54. if /i "!valid_key!" equ "0" goto :Main
  55. :Task
  56. Md Tasks >nul 2>nul
  57. cls
  58. title Hope计时器[计划程序]
  59. set Error=0
  60. echo.
  61. echo.  Hope计时器[计划程序]
  62. set /p Str=--------------------------------------------------------------------<nul
  63. echo.
  64. echo.    ^>^> Q 新建计划   W 使用计划   D 删除计划   E 返回菜单   R 退出
  65. if not exist Tasks\*.Htd (
  66. echo.
  67. echo.    ^>^> 当前没有计划
  68. set /p Str=--------------------------------------------------------------------<nul
  69. echo.
  70. echo.
  71. )
  72. if not exist Tasks\Htd.Hdat echo.10000 > Tasks\Htd.Hdat
  73. if exist Tasks\*.Htd (
  74. cd Tasks
  75. echo.
  76. echo.    ^>^> 当前计划列表
  77. set /p Str=--------------------------------------------------------------------<nul
  78. echo.
  79. echo.
  80. for /f %%i in ('dir /b *.Htd') do (
  81.     echo.    ^>^> 编号:%%~ni
  82. )
  83. echo.
  84. cd..
  85. )
  86. )
  87. call :get_key
  88. if /i "!key!"=="E" (
  89. @goto :Main
  90. )
  91. if /i "!key!"=="R" (
  92. exit
  93. )
  94. if /i "!key!"=="Q" (
  95. @goto :New
  96. )
  97. if /i "!key!"=="W" (
  98. @goto :Open
  99. )
  100. if /i "!valid_key!" equ "0" @goto :Task
  101. :Open
  102. if exist Tasks\*.Htd (
  103. set "Content= "
  104. set /p Content=    ^>^> 请输入计划编号:
  105. goto Open_2
  106. ) else cd..&@goto :Task
  107. :Del
  108. if exist Tasks\*.Htd (
  109. set "Content= "
  110. set /p Content=    ^>^> 请输入计划编号:
  111. goto Del_2
  112. ) else cd..&@goto :Task
  113. :Del_2
  114. cd Tasks
  115. if exist %Content%.Htd (
  116. del %Content%.Htd
  117. cd..
  118. goto Task
  119. ) else cd..&goto Task
  120. :Open_2
  121. cd Tasks
  122. if exist %Content%.Htd (
  123. call :Read %Content%
  124. cd..
  125. mode con cols=68 lines=5
  126. @goto :Start
  127. ) else cd..&goto Task
  128. :New
  129. cd Tasks
  130. < Htd.Hdat (
  131. set /p Num=
  132. )
  133. set /a Num+=1
  134. echo.%Num% > Htd.Hdat
  135. cd..
  136. echo.
  137. echo.    ^>^> 新建了计划:%Num%
  138. echo.
  139. set H=0
  140. set Min=0
  141. set S=0
  142. set H_2=0
  143. set Min_2=0
  144. set S_2=0
  145. set Ms=0
  146. set Ms_2=0
  147. call :Vbs_Sleep 1000
  148. @goto :New_2
  149. :Read
  150. < %1.Htd (
  151. set /p H=
  152. set /p Min=
  153. set /p S=
  154. set /p Ms_2=
  155. )
  156. @goto :eof
  157. :New_2
  158. cls
  159. echo.
  160. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  161. echo.
  162. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U 完成计划
  163. echo.
  164. call :get_key
  165. call :Settings_Time
  166. if /i "!key!"=="U" (
  167. (
  168. echo.%H%
  169. echo.%Min%
  170. echo.%S%
  171. echo.%Ms_2%
  172. ) > Tasks\%Num%.Htd
  173. @goto :Task
  174. )
  175. if /i "!valid_key!" equ "0" @goto :New_2
  176. :Error
  177. color 1f
  178. cls
  179. echo.
  180. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  181. echo.
  182. echo.    ^>^> 正在帮您恢复
  183. call :Sleep_Installs
  184. goto :Restart
  185. :Start
  186. set Error=0
  187. cls
  188. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  189. echo.
  190. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒%Ms%毫秒/%H%小时%Min%分钟%S%秒
  191. echo.
  192. echo.    ^>^> Ctrl+C暂停或退出...
  193. call :Sleep 100
  194. if %Error%==1 goto :Error
  195. set /a Ms+=100
  196. if %Ms%==1000 set /a S_2+=1&set Ms=0
  197. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  198. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  199. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  200. if /i "!valid_key!" equ "0" goto :Start
  201. :End
  202. cls
  203. color 4e
  204. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  205. Call :Msg "时间到" vbExclamation "Hope计时器"
  206. color 0f
  207. @goto :Restart
  208. :Vbs_Sleep
  209. echo.Wscript.Sleep %1 > Sleep.vbs
  210. call Sleep.vbs > nul
  211. if exist ReturnKey.vbs del ReturnKey.vbs
  212. @goto :eof
  213. :Sleep_Installs
  214. mode con cols=68 lines=5
  215. color 0f
  216. (
  217. echo.-----BEGIN CERTIFICATE-----
  218. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  219. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  220. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  221. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  222. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  223. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  224. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  225. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  226. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  227. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  228. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  229. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  230. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  231. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  232. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  233. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  234. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  235. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  236. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  237. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  238. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  239. echo.AAAAAAAAAAAAAAAAAAAAAA==
  240. echo.-----END CERTIFICATE-----
  241. ) > Sleep.com
  242. Certutil -Decode Sleep.com Sleep.exe > nul
  243. Certutil -Decode -f Sleep.com Sleep.com > nul
  244. goto :eof
  245. :Sleep
  246. set Error=0
  247. if exist Sleep.exe (
  248. Sleep.exe %1
  249. goto :eof
  250. )
  251. if not exist Sleep.exe if exist Sleep.com (
  252. Sleep.com %1
  253. goto :eof
  254. )
  255. if not exist Sleep.exe if not exist Sleep.com (
  256. set Error=1
  257. goto :eof
  258. )
  259. :get_key
  260. rem 用法:call :get_key
  261. set "key="
  262.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  263.   set "key=%key:~-1%"
  264.   set "valid_key=0"
  265. goto :eof
  266. :Msg
  267. Rem 用法: Call :Msg "Text" [buttons] "Title"
  268. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  269. Call ReturnKey.vbs > nul
  270. if exist ReturnKey.vbs del ReturnKey.vbs
  271. goto :eof
  272. :Settings_Time
  273. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  274. if /i "!key!"=="q" (
  275. set /a Ms_2+=3600000
  276. set /a H+=1
  277. )
  278. if /i "!key!"=="w" (
  279. set /a Ms_2-=3600000
  280. set /a H-=1
  281. )
  282. if /i "!key!"=="e" (
  283. set /a Ms_2+=60000
  284. set /a Min+=1
  285. )
  286. if /i "!key!"=="r" (
  287. set /a Ms_2-=60000
  288. set /a Min-=1
  289. )
  290. if /i "!key!"=="t" (
  291. set /a Ms_2+=1000
  292. set /a S+=1
  293. )
  294. if /i "!key!"=="y" (
  295. set /a Ms_2-=1000
  296. set /a S-=1
  297. )
  298. )
  299. if %S% Lss 0 (
  300. if %Min% Geq 0 if %H% Geq 0 (
  301. set /a Min-=1&set /a S+=60
  302. )
  303. if %Min% Leq 0 if %H% Leq 0 (
  304. echo.
  305. echo.    ^>^> 算数错误!
  306. call :Vbs_Sleep 100
  307. @goto :Restart
  308. )
  309. )
  310. if %Min% Lss 0 (
  311. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  312. if %H% Leq 0 (
  313. echo.
  314. echo.    ^>^> 算数错误!
  315. call :Vbs_Sleep 100
  316. @goto :Restart
  317. )
  318. )
  319. if %H% Lss 0 (
  320. echo.
  321. echo.    ^>^> 算数错误!
  322. call :Vbs_Sleep 100
  323. @goto :Restart
  324. )
  325. if %Ms_2% Gtr 200000000 (
  326. echo.
  327. echo.    ^>^> 算数错误!
  328. call :Vbs_Sleep 100
  329. @goto :Restart
  330. )
  331. if %S% Geq 60 set /a Min+=1&set S=0
  332. if %Min% Geq 60 set /a H+=1&set Min=0
复制代码

TOP

您的视频我看过了,在我的电脑上并不卡。
BATHOMEPNG\Hope计时器录像.rar

TOP

版本1.0.0007
  1. @echo off
  2. endlocal
  3. setlocal enabledelayedexpansion
  4. chcp 936 > nul
  5. Rem By Hope2021
  6. title Hope计时器
  7. mode con cols=68 lines=5
  8. color f9
  9. cls
  10. echo.
  11. echo.
  12. echo.                                HOPE
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @goto :Restart
  16. :Restart
  17. color 0f
  18. cls
  19. set H=0
  20. set Min=0
  21. set S=0
  22. set H_2=0
  23. set Min_2=0
  24. set S_2=0
  25. set Ms=0
  26. set Ms_2=0
  27. @goto :Main
  28. :Main
  29. title Hope计时器
  30. set Error=0
  31. cls
  32. echo.
  33. echo.    ^>^> 当前计时时间:%H%小时%Min%分钟%S%秒
  34. echo.
  35. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  36. call :get_key
  37. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  38. if /i "!key!"=="q" (
  39. set /a Ms_2+=3600000
  40. set /a H+=1
  41. )
  42. if /i "!key!"=="w" (
  43. set /a Ms_2-=3600000
  44. set /a H-=1
  45. )
  46. if /i "!key!"=="e" (
  47. set /a Ms_2+=60000
  48. set /a Min+=1
  49. )
  50. if /i "!key!"=="r" (
  51. set /a Ms_2-=60000
  52. set /a Min-=1
  53. )
  54. if /i "!key!"=="t" (
  55. set /a Ms_2+=1000
  56. set /a S+=1
  57. )
  58. if /i "!key!"=="y" (
  59. set /a Ms_2-=1000
  60. set /a S-=1
  61. )
  62. if /i "!key!"=="i" (
  63. exit
  64. )
  65. )
  66. if %S% Lss 0 (
  67. if %Min% Geq 0 if %H% Geq 0 (
  68. set /a Min-=1&set /a S+=60
  69. )
  70. if %Min% Leq 0 if %H% Leq 0 (
  71. echo.
  72. echo.    ^>^> 算数错误!
  73. call :Vbs_Sleep 100
  74. @goto :Restart
  75. )
  76. )
  77. if %Min% Lss 0 (
  78. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  79. if %H% Leq 0 (
  80. echo.
  81. echo.    ^>^> 算数错误!
  82. call :Vbs_Sleep 100
  83. @goto :Restart
  84. )
  85. )
  86. if %H% Lss 0 (
  87. echo.
  88. echo.    ^>^> 算数错误!
  89. call :Vbs_Sleep 100
  90. @goto :Restart
  91. )
  92. if %Ms_2% Gtr 200000000 (
  93. echo.
  94. echo.    ^>^> 算数错误!
  95. call :Vbs_Sleep 100
  96. @goto :Restart
  97. )
  98. if %S% Geq 60 set /a Min+=1&set S=0
  99. if %Min% Geq 60 set /a H+=1&set Min=0
  100. if /i "!key!"=="u" (
  101. @goto :Start
  102. )
  103. if /i "!valid_key!" equ "0" goto :Main
  104. :Error
  105. color 1f
  106. cls
  107. echo.
  108. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  109. echo.
  110. echo.    ^>^> 正在帮您恢复
  111. call :Sleep_Installs
  112. goto :Restart
  113. :Start
  114. set Error=0
  115. cls
  116. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  117. echo.
  118. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒%Ms%毫秒/%H%小时%Min%分钟%S%秒
  119. echo.
  120. echo.    ^>^> Ctrl+C暂停或退出...
  121. call :Sleep 100
  122. if %Error%==1 goto :Error
  123. set /a Ms+=100
  124. if %Ms%==1000 set /a S_2+=1&set Ms=0
  125. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  126. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  127. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  128. if /i "!valid_key!" equ "0" goto :Start
  129. :End
  130. cls
  131. color 4e
  132. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  133. Call :Msg "时间到" vbExclamation "Hope计时器"
  134. color 0f
  135. @goto :Restart
  136. :Vbs_Sleep
  137. echo.Wscript.Sleep %1 > Sleep.vbs
  138. call Sleep.vbs > nul
  139. if exist ReturnKey.vbs del ReturnKey.vbs
  140. @goto :eof
  141. :Sleep_Installs
  142. mode con cols=68 lines=5
  143. color 0f
  144. (
  145. echo.-----BEGIN CERTIFICATE-----
  146. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  147. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  148. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  149. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  150. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  151. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  152. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  153. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  154. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  155. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  156. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  157. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  158. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  159. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  160. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  161. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  162. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  163. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  164. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  165. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  166. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  167. echo.AAAAAAAAAAAAAAAAAAAAAA==
  168. echo.-----END CERTIFICATE-----
  169. ) > Sleep.com
  170. Certutil -Decode Sleep.com Sleep.exe > nul
  171. Certutil -Decode -f Sleep.com Sleep.com > nul
  172. goto :eof
  173. :Sleep
  174. set Error=0
  175. if exist Sleep.exe (
  176. Sleep.exe %1
  177. goto :eof
  178. )
  179. if not exist Sleep.exe if exist Sleep.com (
  180. Sleep.com %1
  181. goto :eof
  182. )
  183. if not exist Sleep.exe if not exist Sleep.com (
  184. set Error=1
  185. goto :eof
  186. )
  187. :get_key
  188. rem 用法:call :get_key
  189. set "key="
  190.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  191.   set "key=%key:~-1%"
  192.   set "valid_key=0"
  193. goto :eof
  194. :Msg
  195. Rem 用法: Call :Msg "Text" [buttons] "Title"
  196. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  197. Call ReturnKey.vbs > nul
  198. if exist ReturnKey.vbs del ReturnKey.vbs
  199. goto :eof
复制代码

TOP

版本1.0.0006
  1. @echo off
  2. endlocal
  3. setlocal enabledelayedexpansion
  4. chcp 936 > nul
  5. Rem By Hope2021
  6. title Hope计时器
  7. mode con cols=68 lines=5
  8. cls
  9. echo.
  10. echo.
  11. echo.                                HOPE
  12. color 0f
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @goto :Restart
  16. :Restart
  17. title Hope计时器
  18. cls
  19. set H=0
  20. set Min=0
  21. set S=0
  22. set H_2=0
  23. set Min_2=0
  24. set S_2=0
  25. set Ms=0
  26. set Ms_2=0
  27. @goto :Main
  28. :Main
  29. title Hope计时器
  30. set Error=0
  31. cls
  32. echo.
  33. echo.    ^>^>当前计时时间:%H%小时%Min%分钟%S%秒
  34. echo.
  35. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  36. call :get_key
  37. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  38. if /i "!key!"=="q" (
  39. set /a Ms_2+=3600000
  40. set /a H+=1
  41. )
  42. if /i "!key!"=="w" (
  43. set /a Ms_2-=3600000
  44. set /a H-=1
  45. )
  46. if /i "!key!"=="e" (
  47. set /a Ms_2+=60000
  48. set /a Min+=1
  49. )
  50. if /i "!key!"=="r" (
  51. set /a Ms_2-=60000
  52. set /a Min-=1
  53. )
  54. if /i "!key!"=="t" (
  55. set /a Ms_2+=1000
  56. set /a S+=1
  57. )
  58. if /i "!key!"=="y" (
  59. set /a Ms_2-=1000
  60. set /a S-=1
  61. )
  62. if /i "!key!"=="i" (
  63. exit
  64. )
  65. )
  66. if %S% Lss 0 (
  67. if %Min% Geq 0 if %H% Geq 0 (
  68. set /a Min-=1&set /a S+=60
  69. )
  70. if %Min% Leq 0 if %H% Leq 0 (
  71. echo.
  72. echo.    ^>^> 算数错误!
  73. call :Vbs_Sleep 100
  74. @goto :Restart
  75. )
  76. )
  77. if %Min% Lss 0 (
  78. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  79. if %H% Leq 0 (
  80. echo.
  81. echo.    ^>^> 算数错误!
  82. call :Vbs_Sleep 100
  83. @goto :Restart
  84. )
  85. )
  86. if %H% Lss 0 (
  87. echo.
  88. echo.    ^>^> 算数错误!
  89. call :Vbs_Sleep 100
  90. @goto :Restart
  91. )
  92. if %Ms_2% Gtr 200000000 (
  93. echo.
  94. echo.    ^>^> 算数错误!
  95. call :Vbs_Sleep 100
  96. @goto :Restart
  97. )
  98. if %S% Geq 60 set /a Min+=1&set S=0
  99. if %Min% Geq 60 set /a H+=1&set Min=0
  100. if /i "!key!"=="u" (
  101. @goto :Start
  102. )
  103. if /i "!valid_key!" equ "0" goto :Main
  104. :Error
  105. color 1f
  106. cls
  107. echo.
  108. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  109. echo.
  110. echo.    ^>^> 正在帮您恢复
  111. call :Sleep_Installs
  112. goto :Restart
  113. :Start
  114. set Error=0
  115. cls
  116. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  117. echo.
  118. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒%Ms%毫秒/%H%小时%Min%分钟%S%秒
  119. echo.
  120. echo.    ^>^> Ctrl+C暂停或退出...
  121. call :Sleep 100
  122. if %Error%==1 goto :Error
  123. set /a Ms+=100
  124. if %Ms%==1000 set /a S_2+=1&set Ms=0
  125. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  126. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  127. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  128. if /i "!valid_key!" equ "0" goto :Start
  129. :End
  130. cls
  131. color 4e
  132. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  133. Call :Msg "时间到" vbExclamation "Hope计时器"
  134. color 0f
  135. @goto :Restart
  136. :Vbs_Sleep
  137. echo.Wscript.Sleep %1 > Sleep.vbs
  138. call Sleep.vbs > nul
  139. if exist ReturnKey.vbs del ReturnKey.vbs
  140. @goto :eof
  141. :Sleep_Installs
  142. mode con cols=68 lines=5
  143. color 0f
  144. (
  145. echo.-----BEGIN CERTIFICATE-----
  146. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  147. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  148. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  149. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  150. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  151. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  152. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  153. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  154. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  155. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  156. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  157. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  158. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  159. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  160. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  161. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  162. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  163. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  164. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  165. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  166. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  167. echo.AAAAAAAAAAAAAAAAAAAAAA==
  168. echo.-----END CERTIFICATE-----
  169. ) > Sleep.com
  170. Certutil -Decode Sleep.com Sleep.exe > nul
  171. Certutil -Decode -f Sleep.com Sleep.com > nul
  172. goto :eof
  173. :Sleep
  174. set Error=0
  175. if exist Sleep.exe (
  176. Sleep.exe %1
  177. goto :eof
  178. )
  179. if not exist Sleep.exe if exist Sleep.com (
  180. Sleep.com %1
  181. goto :eof
  182. )
  183. if not exist Sleep.exe if not exist Sleep.com (
  184. set Error=1
  185. goto :eof
  186. )
  187. :get_key
  188. rem 用法:call :get_key
  189. set "key="
  190.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  191.   set "key=%key:~-1%"
  192.   set "valid_key=0"
  193. goto :eof
  194. :Msg
  195. Rem 用法: Call :Msg "Text" [buttons] "Title"
  196. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  197. Call ReturnKey.vbs > nul
  198. if exist ReturnKey.vbs del ReturnKey.vbs
  199. goto :eof
复制代码

TOP

回复 9# cmd1152
看上去是特别卡,实际上每秒运行十次,下一个版本加上毫秒

TOP

回复 8# HOPE2021


    特别卡
    点我查看视频
梦依旧在,只是,心有余而力渐有不足
年年岁岁花相似,岁岁年年人不同

TOP

版本1.0.0005
  1. @echo off
  2. endlocal
  3. setlocal enabledelayedexpansion
  4. chcp 936 > nul
  5. Rem By Hope2021
  6. title Hope计时器
  7. mode con cols=68 lines=5
  8. cls
  9. echo.
  10. echo.
  11. echo.                                HOPE
  12. color 0f
  13. call :Vbs_Sleep 1000
  14. call :Sleep_Installs
  15. @goto :Restart
  16. :Restart
  17. title Hope计时器
  18. cls
  19. set H=0
  20. set Min=0
  21. set S=0
  22. set H_2=0
  23. set Min_2=0
  24. set S_2=0
  25. set Ms=0
  26. set Ms_2=0
  27. @goto :Main
  28. :Main
  29. title Hope计时器
  30. set Error=0
  31. cls
  32. echo.
  33. echo.    ^>^>当前计时时间:%H%小时%Min%分钟%S%秒
  34. echo.
  35. echo.  Q/W 小时加/减   E/R 分钟加/减   T/Y 秒加/减   U/I 开始计时//退出
  36. call :get_key
  37. if %Ms_2% Leq 200000000 if %H% geq 0 if %Min% Geq 0 if %S% Geq 0 (
  38. if /i "!key!"=="q" (
  39. set /a Ms_2+=3600000
  40. set /a H+=1
  41. )
  42. if /i "!key!"=="w" (
  43. set /a Ms_2-=3600000
  44. set /a H-=1
  45. )
  46. if /i "!key!"=="e" (
  47. set /a Ms_2+=60000
  48. set /a Min+=1
  49. )
  50. if /i "!key!"=="r" (
  51. set /a Ms_2-=60000
  52. set /a Min-=1
  53. )
  54. if /i "!key!"=="t" (
  55. set /a Ms_2+=1000
  56. set /a S+=1
  57. )
  58. if /i "!key!"=="y" (
  59. set /a Ms_2-=1000
  60. set /a S-=1
  61. )
  62. if /i "!key!"=="i" (
  63. exit
  64. )
  65. )
  66. if %S% Lss 0 (
  67. if %Min% Geq 0 if %H% Geq 0 (
  68. set /a Min-=1&set /a S+=60
  69. )
  70. if %Min% Leq 0 if %H% Leq 0 (
  71. echo.
  72. echo.    ^>^> 算数错误!
  73. call :Vbs_Sleep 100
  74. @goto :Restart
  75. )
  76. )
  77. if %Min% Lss 0 (
  78. if %H% Gtr 0 set /a H-=1&set /a Min+=60
  79. if %H% Leq 0 (
  80. echo.
  81. echo.    ^>^> 算数错误!
  82. call :Vbs_Sleep 100
  83. @goto :Restart
  84. )
  85. )
  86. if %H% Lss 0 (
  87. echo.
  88. echo.    ^>^> 算数错误!
  89. call :Vbs_Sleep 100
  90. @goto :Restart
  91. )
  92. if %Ms_2% Gtr 200000000 (
  93. echo.
  94. echo.    ^>^> 算数错误!
  95. call :Vbs_Sleep 100
  96. @goto :Restart
  97. )
  98. if %S% Geq 60 set /a Min+=1&set S=0
  99. if %Min% Geq 60 set /a H+=1&set Min=0
  100. if /i "!key!"=="u" (
  101. @goto :Start
  102. )
  103. if /i "!valid_key!" equ "0" goto :Main
  104. :Error
  105. color 1f
  106. cls
  107. echo.
  108. echo.    ^>^> Sleep.exe 和 Sleep.com 不知到何处去了...
  109. echo.
  110. echo.    ^>^> 正在帮您恢复
  111. call :Sleep_Installs
  112. goto :Restart
  113. :Start
  114. set Error=0
  115. cls
  116. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  117. echo.
  118. echo.    ^>^> %H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒
  119. echo.
  120. echo.    ^>^> Ctrl+C暂停或退出...
  121. call :Sleep 100
  122. if %Error%==1 goto :Error
  123. set /a Ms+=100
  124. if %Ms%==1000 set /a S_2+=1&set Ms=0
  125. if %S_2% Geq 60 set /a Min_2+=1&set S_2=0
  126. if %Min_2% Geq 60 set /a H_2+=1&set Min_2=0
  127. if %H_2% Geq %H% if %Min_2% Geq %Min% if %S_2% Geq %S% goto :End
  128. if /i "!valid_key!" equ "0" goto :Start
  129. :End
  130. cls
  131. color 4e
  132. title 计时器[%H_2%小时%Min_2%分钟%S_2%秒/%H%小时%Min%分钟%S%秒]
  133. Call :Msg "时间到" vbExclamation "Hope计时器"
  134. color 0f
  135. @goto :Restart
  136. :Vbs_Sleep
  137. echo.Wscript.Sleep %1 > Sleep.vbs
  138. call Sleep.vbs > nul
  139. if exist ReturnKey.vbs del ReturnKey.vbs
  140. @goto :eof
  141. :Sleep_Installs
  142. mode con cols=68 lines=5
  143. color 0f
  144. (
  145. echo.-----BEGIN CERTIFICATE-----
  146. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  147. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  148. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  149. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  150. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  151. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  152. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  153. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  154. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  155. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  156. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  157. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  158. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  159. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  160. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  161. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  162. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  163. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  164. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  165. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  166. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  167. echo.AAAAAAAAAAAAAAAAAAAAAA==
  168. echo.-----END CERTIFICATE-----
  169. ) > Sleep.com
  170. Certutil -Decode Sleep.com Sleep.exe > nul
  171. Certutil -Decode -f Sleep.com Sleep.com > nul
  172. goto :eof
  173. :Sleep
  174. set Error=0
  175. if exist Sleep.exe (
  176. Sleep.exe %1
  177. goto :eof
  178. )
  179. if not exist Sleep.exe if exist Sleep.com (
  180. Sleep.com %1
  181. goto :eof
  182. )
  183. if not exist Sleep.exe if not exist Sleep.com (
  184. set Error=1
  185. goto :eof
  186. )
  187. :get_key
  188. rem 用法:call :get_key
  189. set "key="
  190.   for /f "delims=" %%a in ('xcopy /w "%~f0" "%~f0" 2^>nul') do if not defined key set "key=%%a"
  191.   set "key=%key:~-1%"
  192.   set "valid_key=0"
  193. goto :eof
  194. :Msg
  195. Rem 用法: Call :Msg "Text" [buttons] "Title"
  196. echo.Msg=msgbox("%~1",%2,"%~3") > ReturnKey.vbs
  197. Call ReturnKey.vbs > nul
  198. if exist ReturnKey.vbs del ReturnKey.vbs
  199. goto :eof
复制代码

TOP

曾经写的一个动画
  1. @echo off
  2. call :Sleep_Installs
  3. set N1=     ■■■    ■■■       ■■■       ■■■■■■■    ■■■■■■■
  4. set N2=       ■        ■       ■      ■       ■         ■     ■          ■
  5. set N3=       ■        ■     ■          ■     ■          ■    ■
  6. set N4=       ■        ■    ■            ■    ■         ■     ■     ■
  7. set N5=       ■■■■■■    ■            ■    ■■■■■■      ■■■■
  8. set N6=       ■        ■    ■            ■    ■                ■     ■
  9. set N7=       ■        ■     ■          ■     ■                ■
  10. set N8=       ■        ■       ■      ■       ■                ■          ■
  11. set N9=     ■■■    ■■■       ■■■       ■■■            ■■■■■■■
  12. Mode Con: Cols=80 Lines=30
  13. Rem Hope Text Art 片头
  14. call :Echo
  15. call :Sleep 20
  16. set "N1=%N1:■=回%"
  17. call :Echo
  18. call :Sleep 20
  19. set "N2=%N2:■=回%"
  20. call :Echo
  21. call :Sleep 20
  22. set "N3=%N3:■=回%"
  23. call :Echo
  24. call :Sleep 20
  25. set "N4=%N4:■=回%"
  26. call :Echo
  27. call :Sleep 20
  28. set "N5=%N5:■=回%"
  29. call :Echo
  30. call :Sleep 20
  31. set "N6=%N6:■=回%"
  32. call :Echo
  33. call :Sleep 20
  34. set "N7=%N7:■=回%"
  35. call :Echo
  36. call :Sleep 20
  37. set "N8=%N8:■=回%"
  38. call :Echo
  39. call :Sleep 20
  40. set "N9=%N9:■=回%"
  41. call :Echo
  42. call :Sleep 20
  43. set "N1=%N1:回=@%"
  44. call :Echo
  45. call :Sleep 20
  46. set "N2=%N2:回=@%"
  47. call :Echo
  48. call :Sleep 20
  49. set "N3=%N3:回=@%"
  50. call :Echo
  51. call :Sleep 20
  52. set "N4=%N4:回=@%"
  53. call :Echo
  54. call :Sleep 20
  55. set "N5=%N5:回=@%"
  56. call :Echo
  57. call :Sleep 20
  58. set "N6=%N6:回=@%"
  59. call :Echo
  60. call :Sleep 20
  61. set "N7=%N7:回=@%"
  62. call :Echo
  63. call :Sleep 20
  64. set "N8=%N8:回=@%"
  65. call :Echo
  66. call :Sleep 20
  67. set "N9=%N9:回=@%"
  68. call :Echo
  69. call :Sleep 20
  70. set "N1=%N1:@=∷%"
  71. call :Echo
  72. call :Sleep 20
  73. set "N2=%N2:@=∷%"
  74. call :Echo
  75. call :Sleep 20
  76. set "N3=%N3:@=∷%"
  77. call :Echo
  78. call :Sleep 20
  79. set "N4=%N4:@=∷%"
  80. call :Echo
  81. call :Sleep 20
  82. set "N5=%N5:@=∷%"
  83. call :Echo
  84. call :Sleep 20
  85. set "N6=%N6:@=∷%"
  86. call :Echo
  87. call :Sleep 20
  88. set "N7=%N7:@=∷%"
  89. call :Echo
  90. call :Sleep 20
  91. set "N8=%N8:@=∷%"
  92. call :Echo
  93. call :Sleep 20
  94. set "N9=%N9:@=∷%"
  95. call :Echo
  96. call :Sleep 20
  97. set "N1=%N1:∷=□%"
  98. call :Echo
  99. call :Sleep 20
  100. set "N2=%N2:∷=□%"
  101. call :Echo
  102. call :Sleep 20
  103. set "N3=%N3:∷=□%"
  104. call :Echo
  105. call :Sleep 20
  106. set "N4=%N4:∷=□%"
  107. call :Echo
  108. call :Sleep 20
  109. set "N5=%N5:∷=□%"
  110. call :Echo
  111. call :Sleep 20
  112. set "N6=%N6:∷=□%"
  113. call :Echo
  114. call :Sleep 20
  115. set "N7=%N7:∷=□%"
  116. call :Echo
  117. call :Sleep 20
  118. set "N8=%N8:∷=□%"
  119. call :Echo
  120. call :Sleep 20
  121. set "N9=%N9:∷=□%"
  122. call :Echo
  123. call :Sleep 20
  124. set "N1=%N1:□=_/%"
  125. call :Echo
  126. call :Sleep 20
  127. set "N2=%N2:□=_/%"
  128. call :Echo
  129. call :Sleep 20
  130. set "N3=%N3:□=_/%"
  131. call :Echo
  132. call :Sleep 20
  133. set "N4=%N4:□=_/%"
  134. call :Echo
  135. call :Sleep 20
  136. set "N5=%N5:□=_/%"
  137. call :Echo
  138. call :Sleep 20
  139. set "N6=%N6:□=_/%"
  140. call :Echo
  141. call :Sleep 20
  142. set "N7=%N7:□=_/%"
  143. call :Echo
  144. call :Sleep 20
  145. set "N8=%N8:□=_/%"
  146. call :Echo
  147. call :Sleep 20
  148. set "N9=%N9:□=_/%"
  149. call :Echo
  150. call :Sleep 20
  151. set "N1=%N1:_/=  %"
  152. call :Echo
  153. call :Sleep 20
  154. set "N2=%N2:_/=  %"
  155. call :Echo
  156. call :Sleep 20
  157. set "N3=%N3:_/=  %"
  158. call :Echo
  159. call :Sleep 20
  160. set "N4=%N4:_/=  %"
  161. call :Echo
  162. call :Sleep 20
  163. set "N5=%N5:_/=  %"
  164. call :Echo
  165. call :Sleep 20
  166. set "N6=%N6:_/=  %"
  167. call :Echo
  168. call :Sleep 20
  169. set "N7=%N7:_/=  %"
  170. call :Echo
  171. call :Sleep 20
  172. set "N8=%N8:_/=  %"
  173. call :Echo
  174. call :Sleep 20
  175. set "N9=%N9:_/=  %"
  176. call :Echo_2
  177. call :Sleep 20
  178. pause>nul
  179. :Echo
  180. color 1f
  181. Mode Con: Cols=80 Lines=30
  182. cls
  183. for /l %%i in (1,1,8) do echo.
  184. echo.%N1%
  185. echo.%N2%
  186. echo.%N3%
  187. echo.%N4%
  188. echo.%N5%
  189. echo.%N6%
  190. echo.%N7%
  191. echo.%N8%
  192. echo.%N9%
  193. for /l %%i in (1,1,5) do echo.
  194. echo.                                      HOPE
  195. goto :eof
  196. :Echo_2
  197. color 1f
  198. Mode Con: Cols=80 Lines=30
  199. cls
  200. for /l %%i in (1,1,8) do echo.
  201. echo.%N1%
  202. echo.%N2%
  203. echo.%N3%
  204. echo.%N4%
  205. echo.%N5%
  206. echo.%N6%
  207. echo.%N7%
  208. echo.%N8%
  209. echo.%N9%
  210. goto :eof
  211. :Sleep_Installs
  212. (
  213. echo.-----BEGIN CERTIFICATE-----
  214. echo.TVpQAQEAAAAEAAAA//8AAFABAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  215. echo.AAAAAAAAAAAAAAAAkAAAAPy+gQAPtkz/ZjHSZjHASXggrCwwchQ8CXcQZmvSCmYB
  216. echo.wi7HBi8AMQDr5C7/Ji8ADgBmadLoAwAAZonRZsHpELSGzRW4AEzNIQAAAAAAAAAA
  217. echo.UEUAAEwBAQBQeaU2AAAAAAAAAADgAA8BCwEFDAACAAAAAAAAAAAAAH4QAAAAEAAA
  218. echo.ACAAAAAAQAAAEAAAAAIAAAQAAAAAAAAABAAAAAAAAAAAIAAAAAIAAAAAAAADAAAA
  219. echo.AAAQAAAQAAAAABAAABAAAAAAAAAQAAAAAAAAAAAAAAAQEAAAKAAAAAAAAAAAAAAA
  220. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  221. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAABAAAAAAAAAAAAAAAAAAAAAAAAAA
  222. echo.AAAAAAAAAAAudGV4dAAAANwAAAAAEAAAAAIAAAACAAAAAAAAAAAAAAAAAAAgAADg
  223. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  224. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABWEAAAZBAAAHYQAAAAAAAA
  225. echo.RhAAAAAAAAAAAAAAOBAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEtFUk5FTDMy
  226. echo.LmRsbAAAVhAAAGQQAAB2EAAAAAAAAAAARXhpdFByb2Nlc3MAAABHZXRDb21tYW5k
  227. echo.TGluZUEAAABTbGVlcAD/FQQQQAAx0khAgDgAdBGAOCJ1AvfSCdJ174A4IHXqQPyJ
  228. echo.xjHSMcCsCMB0IywwchU8CXcRa9IKAcLHBckQQADNEEAA6+L/JckQQAClEEAAUv8V
  229. echo.CBBAAGoA/xUAEEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  230. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  231. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  232. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  233. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  234. echo.AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
  235. echo.AAAAAAAAAAAAAAAAAAAAAA==
  236. echo.-----END CERTIFICATE-----
  237. ) > Sleep.com
  238. Certutil -Decode Sleep.com Sleep.exe > nul
  239. Certutil -Decode -f Sleep.com Sleep.com > nul
  240. goto :eof
  241. :Sleep
  242. if exist Sleep.exe (
  243. Sleep.exe %1
  244. goto :eof
  245. )
  246. if not exist Sleep.exe if exist Sleep.com (
  247. Sleep.com %1
  248. goto :eof
  249. )
  250. if not exist Sleep.exe if not exist Sleep.com (
  251. echo.Wscript.Sleep %1 > Sleep.vbs
  252. cscript //nologo Sleep.vbs
  253. goto :eof
  254. )
复制代码

TOP

这里使用的Sleep最低延时20Ms

TOP

此Sleep非彼Sleep

TOP

返回列表