- @echo off
- title spring-clover
- color 0a
- mode con: cols=80 lines=22
- setlocal enabledelayedexpansion
- set "theme=have a relax"
- for /l %%a in (1 1 6) do echo.
- set /p= <nul
- call :string "!theme!"
- pause
- exit
- :string
- set string=%~1
- echo !string!
- :str
- set word=!string:~0,1!
- set string=!string:~1!
- set /p=!word!<nul&call :sleep 100
- if defined string goto str
- goto :eof
-
- :sleep
- set Time1=%time%
- set/a minute1=1%Time1:~3,2%-100
- set/a second1=1%Time1:~6,2%%Time1:~-2%0-100000
- :Loop
- set Time2=%time%
- set/a minute2=1%Time2:~3,2%-100
- set/a second2=1%Time2:~6,2%%Time2:~-2%0-100000
- set/a difMs=((%minute2%-%minute1%+60)%%60)*60000+%second2%-%second1%
- if %difMs% lss %1 goto Loop
- goto :eof
复制代码 管理员呢 |