Last active
March 25, 2016 17:30
-
-
Save alpsayin/6ace9bbf711d1c9ec321 to your computer and use it in GitHub Desktop.
A small windows batch script to autoaim Facebook Messenger's hidden basketball game. Requires adb bridge. Open Messenger, start a game and run this script.Touch the ball and it will automatically make the perfect swipe to shoot the ball into the hoop. Tested on Oneplus One, Cyanogenmod 13.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set index=1 | |
:While | |
if %index% gtr 10000 goto EndWHile | |
echo Iteration number %index% | |
set /A index+=1 | |
Rem set /p xIndex=Enter X Index: | |
adb shell "getevent -lc 16 /dev/input/event0 | grep ABS_MT_POSITION_X | awk '{print $3}' | (read string; echo $((16#$string)))" > touch_location.txt | |
set /p xIndex=<touch_location.txt | |
echo %xIndex% | |
adb shell "input swipe %xIndex% 1706 540 720 50" | |
goto While | |
:EndWhile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment