-
Notifications
You must be signed in to change notification settings - Fork 0
/
MC7EmulatorConnection.bat
69 lines (59 loc) · 1.61 KB
/
MC7EmulatorConnection.bat
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
echo off
title MC7EmulatorConnection , M-CAP7AIN
cls
if exist "platform-tools" ( cd platform-tools ) else (goto :NotFound)
:main
cls
echo +++++++++++++++++++++++++++++++++++++++++++
echo + MC7EmulatorConnection , M-CAP7AIN +
echo + http://ictcaptain.blog.ir +
echo + Copy Script To Android SDK Folder +
echo +++++++++++++++++++++++++++++++++++++++++++
echo.
echo List Emulators :
echo.
echo 0. Kill Server
echo 1. Connect To AVD
echo 2. Connect To Nox
echo 3. Connect To Nox2
echo 4. Connect To Genymotion
echo 5. Connect To Droid4X
echo 6. Connect To BlueStacks
echo 7. Connect To Youwave
echo 8. Connect To Memu
echo.
echo.
SET /P UserInput= Select Emulator or Enter Port Number:
cls
echo ++++++++++++++++++++++++++++
echo + Logs +
echo ++++++++++++++++++++++++++++
echo.
if %UserInput% GTR 9 ( goto :custom )
if %UserInput%==0 (adb kill-server)
if %UserInput%==1 (adb connect 127.0.0.1:5554)
if %UserInput%==2 (adb connect 127.0.0.1:57001)
if %UserInput%==3 (adb connect 127.0.0.1:62025)
if %UserInput%==4 (adb connect 127.0.0.1:5037)
if %UserInput%==5 (adb connect 127.0.0.1:5565)
if %UserInput%==6 (adb connect 127.0.0.1:5555)
if %UserInput%==7 (adb connect 127.0.0.1:5558)
if %UserInput%==8 (adb connect 127.0.0.1:21503)
echo.
echo.
pause
goto :main
exit
:NotFound
color C
echo ++++++++++++++++++++++++++++++++++
echo + platform-tools Not Found. +
echo ++++++++++++++++++++++++++++++++++
echo.
pause
exit
:custom
(adb connect 127.0.0.1:%UserInput%)
pause
goto :main
exit