Python Forum
Python bot for ADB Android SCRCPY - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Python bot for ADB Android SCRCPY (/thread-33509.html)



Python bot for ADB Android SCRCPY - Bizzy_ - May-01-2021

Hello everyone,

Ive been working on a script to automate certain tasks on various social media/games and retail sites.

Currently I have been working with pyautogui and it works fine but still has issues with finetuning the click mechanics (image recognition/screenshot tool) Even when I add [confidence=0,8/0,9] And proceed to call the locateCenterOnScreen(), the printed results show coordinates way out of my screen proportions.

My question is if this is the right GUI to work with on a script like this?
At the moment I am running my script on scrcpy connected to ADB with my android phone. Which works okay. I’m fairly new to the subject so sometimes I don’t know where to begin searching which is why I’m asking it here.


Could anyone help me out sharing some knowledge? What should I use to create bots to automate certain/complicated tasks on a phone. If its convenient I could post parts of my code on here.

Thanks for taking the time to read!


RE: Python bot for ADB Android SCRCPY - Larz60+ - May-01-2021

Favourite GUI is like favourite restaurant, some like greasy meat, some like steamed veterinarian, I like filet mignon with steamed vegies on the side.

My GUI of choice is wxpython phoenix with a side of Qt5, and maybe a dash of Kivy


RE: Python bot for ADB Android SCRCPY - Bizzy_ - May-01-2021

(May-01-2021, 01:58 AM)Larz60+ Wrote: Favourite GUI is like favourite restaurant, some like greasy meat, some like steamed veterinarian, I like filet mignon with steamed vegies on the side.

My GUI of choice is wxpython phoenix with a side of Qt5, and maybe a dash of Kivy
Thank you sir! These are the answers I am looking for. So far I had never heard of these before but I am still new to this. Everything I know of Python I have researched myself, its just so much information so its nice to have a bit guidance sometimes which is why I decided to join the forum. Im looking into the recommendations you gave and so far its looking good for what I want to do :)


RE: Python bot for ADB Android SCRCPY - Larz60+ - May-01-2021

I should also mention that I use tkinter (built in on most python distributions) is good good for many applications.

Tkinter is a wrapper around the old TCL/Tk C package.

It in my opinion is not a good choice as a beginner as the geometry is difficult to get right when you have more than one of two windows to manage.

Should you like to use it, I have some info on sizing here: https://python-forum.io/Thread-Tkinter-Getting-Tkinter-Grid-Sizing-Right-the-first-time

It's old (2016), but still valid, and not the best write up either. There are better ones.