제가 오토핫키를 이용하여 간단하게 매크로를 만들어 쓰는데요 오토핫키는 화면을 내리면 이미지를 못찾아서 불편한 점이 좀 있어서 지니모션을 이용해서 ADB 로 간단하게 하는? 방법이 있더라고요 참고하세요^
@echo off
cls
adb devices -l> "%temp%\dlist.txt"
for /f "tokens=1 usebackq delims= " %%f in ("%temp%\dlist.txt") do (
set device_name=%%f
echo "Device Name=[%device_name%]..."
)
del %temp%\dlist.txt" /q
rem set device_name=127.0.0.1:5555
:_start
echo "모험시작"
adb -s %device_name% shell input tap 835 663
echo "5 Second Wait..."
timeout /t 5
echo "사냥시작"
adb -s %device_name% shell input tap 930 533
echo "160 Second Wait..."
timeout /t 160
echo "다시하기"
adb -s %device_name% shell input tap 1209 202
echo "5 Second Wait..."
timeout /t 5
echo "업적확인1"
adb -s %device_name% shell input tap 1069 655
echo "5 Second Wait..."
timeout /t 5
echo "업적확인2"
adb -s %device_name% shell input tap 1069 655
echo "5 Second Wait..."
timeout /t 5
goto _start
이런식을 만들어서 가볍게 사용합니다.
이미지 서치가 아니고 좌표를 찾아 찍는 방식입니다. 백그라운드 실행이라 일하는데 방해가 되지 않아서 가끔 사용합니다.