Copy Code code as follows:
:: This tool in Win7 and Vista please use Administrator identity to run!
@echo off
Cd.>%windir%\time.log
Set n=
: Start
Mode con cols=45 lines=14
Title Reaction Speed Test tool
Color 8a
Set a=
Set b=
Set s=
set/a n+=1
Set t=%time:~9,1%
Cls&echo.&echo.&echo.
Echo.
Echo.
Echo Reaction Speed Test tool
Echo.
echo when the window turns red, press ENTER quickly and the program
Echo.
Echo tests your reaction speed and displays it with an accuracy of 0.01 seconds.
Echo.
Echo JOHNNY.R's reaction rate is 0.11 seconds to see if you can overtake him.
Echo.
Echo, look at the average reaction rate, press Q.
Echo.
Echo Press ENTER to start the test
Echo.
set/p s=
If "%s%" = = "Q" goto Pingjun
If "%s%" = = "Q" goto Pingjun
Cls
Mode con cols=23 lines=6
Title Start test ...
Echo.&echo.
Color 0a
Ping-n%t% 127.1 >nul
Color 4a
Set a=%time:~3,2%%time:~6,2%%time:~9,2%
Pause >nul
Set b=%time:~3,2%%time:~6,2%%time:~9,2%
set/a B-=a
:: Minus the 0.01-second operation speed of the program
set/a b-=1
Echo.&echo.
If "%b:~0,1%" = = "%b:~0,2%" goto End3
If "%b:~0,2%" = = "%b:~0,3%" goto END1
If not "%b:~0,2%" = = "%b:~0,3%" goto End2
:: Results
: End1
Title Test results
Cls&echo.&echo.
echo, your reaction rate is 0.%b% seconds.
Echo.
If "%b:~0,1%" = "2" echo may also be faster ...
If "%b:~0,1%" = "1" Echo I adore you!
Echo%b%>>%windir%\time.log
Echo Press any key to start again ...
Pause >nul
Goto Start
: End2
Title Test results
Cls&echo.&echo.
echo, your reaction rate is%b:~0,1%.%b:~1,2% seconds.
Echo.
Echo%b%>>%windir%\time.log
echo I finally see the legendary "snail"!
Echo Press any key to start again ...
Pause >nul
Goto Start
: End3
Title Test results
Cls&echo.
echo, your reaction rate is 0.0%b% seconds.
Echo.
Echo, you're a god!!!.
Echo.
Echo%b%>>%windir%\time.log
Echo Press any key to start again ...
Pause >nul
Goto Start
: End4
Cls&echo.
echo, your average reaction rate is 0.0%p% seconds.
Echo.
Echo, you are my idol!!
Echo.
Echo Press any key to start again ...
Pause >nul
Goto Start
: End5
Cls&echo.
echo, your average reaction rate is 0.%p% seconds.
Echo.
If "%p:~0,1%" = "2" echo good, come on ~
If "%p:~0,1%" = = "1" Echo wow. A new generation of Sniper God ~
Echo.
Echo Press any key to start again ...
Pause >nul
Goto Start
: End6
Cls&echo.
echo, your average reaction rate is%p:~0,1%.%p:~1,2% seconds.
Echo.
echo I advise you to give up CS bar ....
Echo.
Echo Press any key to start again ...
Pause >nul
Goto Start
:p Ingjun
Cls
set/a n-=1
Set k=
for/f%%i in (%windir%\time.log) do (
set/a k+=%%i
)
set/a p=k/n
Average speed of title
Mode con cols=25 lines=8
Color 0a
If "%p:~0,1%" = = "%p:~0,2%" goto End4
If "%p:~0,2%" = = "%p:~0,3%" goto End5
If not "%p:~0,2%" = = "%p:~0,3%" goto End6
echo Unknown error ...
Ping-n 2 127.1>nul
Goto Start
:: My level is limited, please point out the shortage, thank you!