1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168
| 18190@DESKTOP-SH3MQPI MINGW64 /d/Desktop/test/CMD/phone (master) $ git --no-pager diff 刷视频_honor.bat diff --git a/刷视频_honor.bat b/刷视频_honor.bat index 4d6603d..e6d677c 100644 --- a/刷视频_honor.bat +++ b/刷视频_honor.bat @@ -2,44 +2,118 @@ @REM ʹ▒õ▒ǰ▒ļ▒▒▒▒ļ▒▒▒▒▒Ϊcmd▒▒▒ڵı▒▒▒ title %~nx0
-@REM chcp 65001 -@REM ▒▒ͷ @REM ▒л▒▒▒GBK chcp 936
-@REM ▒鿴▒▒▒ӵ▒▒▒▒Ե▒▒ֻ▒ -adb devices -l -set /p phone_id=▒▒▒▒▒ֻ▒▒豸ID: +echo -------------------▒▒ȡID ▒▒ʼ---------------------- +echo A:U8ENW18117021408 +echo B:192.168.10.4:5555 +echo C:▒▒▒▒ID +echo ----------- + +choice /c:abc /t 8 /d a /M "▒▒▒▒ѡ▒▒:" + if %errorlevel% == 3 goto choose_c + if %errorlevel% == 2 goto choose_b + if %errorlevel% == 1 goto choose_a + +:choose_a + echo ѡ▒▒A + set phone_id=U8ENW18117021408 + goto get_id_end +:choose_b + echo ѡ▒▒B + set phone_id=192.168.10.4:5555 + goto get_id_end +:choose_c + echo ѡ▒▒C + @REM ▒鿴▒▒ǰ▒▒▒ӵ▒▒▒▒▒▒ϵ▒▒ֻ▒▒▒ID + adb devices -l + set /p phone_id=▒▒▒▒▒▒▒ֻ▒ID: + goto get_id_end + +:get_id_end + +echo ▒ֻ▒ID=%phone_id% + +echo -------------------▒▒ȡID ▒▒▒▒---------------------- + +echo -------------------▒▒ȡʱ▒▒ ▒▒ʼ---------------------- +echo A:12 ▒▒▒▒ ▒▒▒ؿ▒▒▒Ǯ +echo B:20 ▒▒▒▒ ▒▒▒▒▒▒▒▒▒ҳ +echo C:60 ▒▒▒▒(1Сʱ) +echo D:180 ▒▒▒▒(3Сʱ) ˢ▒▒Ƶ▒▒▒ټ▒▒ٰ▒ +echo E:360 ▒▒▒▒(6Сʱ) +echo ----------- + +choice /c:abcde /t 8 /d d /M "▒▒▒▒ѡ▒▒:" + + if %errorlevel% == 5 goto choose_e + if %errorlevel% == 4 goto choose_d + if %errorlevel% == 3 goto choose_c + if %errorlevel% == 2 goto choose_b + if %errorlevel% == 1 goto choose_a + +:choose_e + echo ѡ▒▒E 360▒▒▒▒(6Сʱ) + set /a minute=360 + goto get_minute_end +:choose_d + echo ѡ▒▒D 180▒▒▒▒(3Сʱ) + set /a minute=180 + goto get_minute_end +:choose_c + echo ѡ▒▒C 60▒▒▒▒(1) + set /a minute=60 + goto get_minute_end +:choose_b + echo ѡ▒▒B 20▒▒▒▒ + set /a minute=20 + goto get_minute_end +:choose_a + echo ѡ▒▒A 12▒▒▒▒ + set /a minute=12 + goto get_minute_end + +:get_minute_end +echo ʱ▒▒=%minute%▒▒▒▒ +echo -------------------▒▒ȡʱ▒▒ ▒▒ʼ---------------------- + + +echo -------------------▒▒▒▒▒ֻ▒ ▒▒ʼ---------------------- +set /a time_required=%minute%*60 +
@REM ▒▒С▒▒▒▒ set min=8 @REM ▒▒▒▒▒▒ -set max=14 +set max=16 @REM ▒▒▒▒▒▒Ҳ▒▒▒▒▒ set /a mod=%max% - %min% + 1
-echo Сʱ=▒▒▒ӣ▒[1=60,2=120,3=180,4=240,5=300,6=360,7=420,8=480,9=540,10=600,11=660,12=720] -set /p time=▒▒▒▒▒ʱ▒▒(▒▒▒▒): -set /a time_required=%time% *60
@REM ▒▒ʱ▒▒ -set /a time_counter=0 +set /a second_counter=0
:head @REM ▒ȴ▒▒ﵽҪ▒▒▒ʱ▒▒ - If %time_counter% GTR %time_required% goto tail + If %second_counter% GTR %time_required% goto tail
@REM ▒▒▒▒▒▒▒▒▒▒▒ set /a seconds=%RANDOM% %% %mod% + %min%
@REM ▒ϻ▒▒▒Ļ▒▒▒ adb -s %phone_id% shell input swipe 8 1650 8 700 300 - + @REM echo errorlevel=%errorlevel% + @REM ▒▒▒adb▒▒▒▒ֵ▒▒▒▒0▒▒▒▒˵▒▒adbִ▒▒ʧ▒ܣ▒▒Ͳ▒▒▒ִ▒▒▒▒ + if %errorlevel% GTR 0 goto adb_error + @REM ͳ▒▒▒Ѿ▒▒ۿ▒▒ķ▒▒▒▒▒ + set /a minute_counter=%second_counter%/60 @REM choice /c:yn /t 4 /d n /M ". ▒▒ͣ▒▒▒▒▒▒y,Ĭ▒▒n,▒▒▒▒▒▒ͣ" - echo ....▒ȴ▒:%seconds%▒▒,▒ѵȴ▒:%time_counter%▒▒,Ҫ▒ȴ▒:%time_required%▒▒(%time%▒▒▒▒) - choice /c:yn /t %seconds% /d n /M "......▒▒▒▒y▒▒ͣ▒▒▒▒,Ĭ▒▒n,▒▒▒▒▒▒ͣ" + echo ....▒ȴ▒:%seconds%▒▒,▒ѵȴ▒:%second_counter%s=%minute_counter%m,Ҫ▒ȴ▒:%time_required%s=%minute%m + choice /c:yn /t %seconds% /d n /M "▒Ƿ▒▒▒ͣ?" @REM ͳ▒▒▒Ѿ▒▒ȴ▒▒▒ʱ▒▒ - set /a time_counter+=%seconds% + set /a second_counter+=%seconds% +
@REM ▒ж▒choice▒▒▒▒ķ▒▒▒ֵ▒▒▒▒ȷ▒▒▒û▒▒▒▒▒▒▒▒Ǹ▒ѡ▒▒ @REM Ӧ▒▒▒ж▒▒▒ֵ▒▒ߵĴ▒▒▒▒▒ @@ -48,17 +122,20 @@ set /a time_counter=0
@REM Ĭ▒▒ѡ▒▒N▒▒▒▒▒ :choose_n - echo ........ֱ▒▒▒▒▒▒▒▒ͷ + echo ֱ▒▒▒▒▒▒▒▒ͷ echo. goto head
@REM ѡ▒▒Y▒▒▒▒▒ :choose_y - echo ........▒▒֮ͣ▒▒▒▒▒▒▒▒▒▒ͷ + echo ▒▒֮ͣ▒▒▒▒▒▒▒▒▒▒ͷ pause echo. goto head
+@REM ִ▒▒adb▒▒▒▒▒▒▒▒▒▒▒ +:adb_error + echo adb▒▒▒▒ִ▒д▒▒▒ :tail - echo ______▒▒▒▒▒▒▒_______ - mshta vbscript:msgbox("'%~nx0'_▒▒▒н▒▒▒",4096)(window.close) + @REM mshta vbscript:msgbox("'%~nx0'_▒▒▒н▒▒▒",4096)(window.close) + echo -------------------▒▒▒▒▒ֻ▒ ▒▒▒▒---------------------- \ No newline at end of file
18190@DESKTOP-SH3MQPI MINGW64 /d/Desktop/test/CMD/phone (master)
|