macOS Python Pixelbot Dofus Retro

Inscrit
18 Decembre 2020
Messages
5
Reactions
0
#1
Salut les gars,

Je suis en train de réaliser un bot pixel sous Mac OS pour Dofus Retro en Python. Je cherchais à savoir si il était possible que je fasse tourner mon bot en tâche de fond pour ainsi vaquer à d’autres occupations sur un autre bureau?

D’avance merci pour vos réponses

Bav

Vitiligo
 
Inscrit
31 Octobre 2020
Messages
24
Reactions
52
#2
I think you want to have a bot that plays Dofus while the Dofus client is hidden/minimized (?)
As far as I know, yes, it is possible. I don't create bots using python but I think I can give you some questions/ideas so you can do some research.

1- I googled something like "pixel color search on hidden window with python" and I found some posts on stackoverflow, maybe you can read about it. https://stackoverflow.com/questions/60377832/get-pixel-color-from-window-in-background

2- Well we know it's possible to search colors on hidden windows, but can you interact with them? can you click on them? I googled it and yes, I found solutions on stack. The thing is, you can't use your primary mouse, but a secondary virtual mouse (so you can use the primary one for other tasks). Maybe this can help: https://stackoverflow.com/questions/56923061/creating-a-ghost-mouse-to-simulate-mouse-clicks

3- I dont know what happens when you simulate clicks on a hidden window. Will it become active? We dont want that. In case it happens, you should research how to keep a minimized windows always minimized.

Those previous 3 steps I think are key to solve your project. Investigate and if you are succesful do some tutorials on the forum! I think its an interesting project!
 
Inscrit
18 Decembre 2020
Messages
5
Reactions
0
#4
Merci pour vos réponses,

Je viens de regarder à vos liens, je remarque que cela ne fonctionne qu'avec Windows et non macOS. Je voulais savoir si il existait des alternatives pour macOS?

bav
 
Inscrit
21 Février 2012
Messages
81
Reactions
5
#6
Il me semble que ce n'est pas possible de get un pixel sur une fenêtre minimized.
J'ai été confronté à ce souci et ce n'est pas possible puisque les pixels ne sont pas dessinés lorsque la fenetre est minimisée.
 
Haut Bas