For support, development, shenanigans: check out the Discord.
This script does auto-trading between two simultaneous applications running on the same device (using Island, MIUI's Dual Apps, and so on).
Should work with other Dual App solutions as well, as long as the switch_app()
co-routine is able to switch between both instances.
This script essentially blindly sends touch events to your phone. If a popup appears over where the script thinks a button is, or if your phone lags, it can do unintended things. Please keep an eye on your phone while it is running. If it trades your shiny 100% Dragonite, it's because you weren't watching it.
You only need to perform these steps once
-
Download all the files from this repository. Unzip everything into a directory.
-
Install
adb
, and make sure it's on your system's PATH.• Windows users can install the SDK Platform Tools via this link.
-
Install clipper in your device and run the app/service.
-
Install Python >=3.7 (older versions will not work).
• Windows users can go here and select Download Windows x86-64 executable installer under Stable Releases.
-
Now, open a terminal in the repository directory you unzipped in step 1. • Windows users can open a command prompt inside the folder (hover the link for TL;DR).
-
Check if you have installed Python 3.7
python -v
returns Python 3.7.x -
Run
pip install -r requirements.txt
to install the required libraries for the script to work.
You only need to perform these steps once
- Copy or rename
config.example.yaml
toconfig.yaml
. - Enable USB Debugging in Settings > Developer options in your device, and connect it to the computer.
- In the command prompt, type
adb devices -l
and see if it properly detects the device. - Edit
config.yaml
locations for your phone:- The defaults are for a Oneplus 3T and should work with any 1080p phone that does not have soft buttons.
- Each setting is an X,Y location. You can turn on Settings > Developer options > Pointer location .
- You're done! Move on to the next section Basic Usage whenever you want to use the renamer.
- Open both apps
- Go to Friends, and open the friend screen (in both apps).
- Run
python trade.py
That's it! :D
-
It taps in the wrong locations / doesn't work / automatically called my mother:
You probably need to edit the
locations:
in config.yaml, the defaults are for a 1080p phone without soft keys. To find out the coordinates, enable Pointer Location in your phone's Developer Settings. If you're lazy like me, just type the code below with your phone connected:-
To enable:
adb shell content insert --uri content://settings/system --bind name:s:pointer_location --bind value:i:1 # If that doesn't work, use this: adb shell settings put system pointer_location 1
-
To disable
adb shell content insert --uri content://settings/system --bind name:s:pointer_location --bind value:i:0 # If that doesn't work, use this: adb shell settings put system pointer_location 0
-
-
Can i run a diffrent config.yaml file?
Yes you can, make sure the .yaml file is in the same directory as the config.yaml
Run the command
python trade.py --config YOUROWNCONFIG.yaml
-
Can i define how many trades will be done?
sure by adding --stop-after [amount of runs]
python trade.py --stop-after 5
this results in 5 pokemons will be traded