Post by k3yzor » 12 Jul 2021, 07:29
bonjour-bonsoir
voilà le projet crée un bot pour un (petit jeux hors ligne free) consiste à se baladé en cercle une fois rencontrer la créature la capturer et la relâcher et refaire des cercle ext ext .....
voila les fonctions désiré
SpoilerCode: Select all
1):condition de fenêtre: Si-oui continue
Si-non attendre
2):début de la procédure recherche---
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Send {z down}
Send {z up}
Sleep 100
Send {q down}
Send {q up}
Sleep 100
Send {s down}
Send {s up}
Sleep 100
Send {d down}
Send {d up}
si pixel trouver stop aller ver attaque
si non trouver recommencer
3:) procédure attaque
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
si pixel ou image trouver aller à capture
si non relancer procédure attaque
4:) procédure capture
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Sleep 100
Send, {Numpad3 Down}
send, {Numpad3 Up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
si pixel ou image trouver aller a relâche
si non trouver recommencer capture
5:) procédure relâche
Sleep 100
Send {F down}
Send {F up}
Sleep 150
Send {d down}
Send {d up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
retour procédure capture capture
je ne sais pas crée de boucle
je ne sais pas appeler une procédure
les tutoriel sont en anglais snif
évolutions#1 non fonctionnelle
SpoilerCode: Select all
*::*
$Recherche := 0
$Attaque := Attaque
$Capture := Capture
$Relache := Relache
CoordMode, pixel,screen
CoordMode, mouse,screen
Loop
{
loop
{
PixelSearch, Px, Py, 640, 0, 480, 80, 0x3ce8ea, 0, Fast RGB
if ErrorLevel = 0
{
Send {z down}
Sleep 100
Send {z up}
Send {q down}
Sleep 100
Send {q up}
Send {s down}
Sleep 100
Send {s up}
Send {d down}
Sleep 100
Send {d up}
break
}
if (Recherche)
{ return
}
else
if ErrorLevel = 1
///Attaque\\\
Loop
{
if Attaque
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
break
}
if (Attaque)
{ return
}
else
if ErrorLevel = 1
///capture\\\
Loop
{
ifCapture
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Sleep 100
Send, {Numpad3 Down}
send, {Numpad3 Up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
break
}
if ErrorLevel = 1
goto =if Relache
///recherche-1\\\
if Relache
Sleep 100
Send {F down}
Send {F up}
Sleep 150
Send {d down}
Send {d up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
break
}
}
ù:: $stop := 1
bonjour-bonsoir
voilà le projet crée un bot pour un (petit jeux hors ligne free) consiste à se baladé en cercle une fois rencontrer la créature la capturer et la relâcher et refaire des cercle ext ext .....
voila les fonctions désiré
[spoiler][code]
1):condition de fenêtre: Si-oui continue
Si-non attendre
2):début de la procédure recherche---
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Send {z down}
Send {z up}
Sleep 100
Send {q down}
Send {q up}
Sleep 100
Send {s down}
Send {s up}
Sleep 100
Send {d down}
Send {d up}
si pixel trouver stop aller ver attaque
si non trouver recommencer
3:) procédure attaque
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
si pixel ou image trouver aller à capture
si non relancer procédure attaque
4:) procédure capture
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Sleep 100
Send, {Numpad3 Down}
send, {Numpad3 Up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
si pixel ou image trouver aller a relâche
si non trouver recommencer capture
5:) procédure relâche
Sleep 100
Send {F down}
Send {F up}
Sleep 150
Send {d down}
Send {d up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
retour procédure capture capture
je ne sais pas crée de boucle
je ne sais pas appeler une procédure
les tutoriel sont en anglais snif[/code][/spoiler] :headwall:
évolutions#1 non fonctionnelle :headwall:
[spoiler][code]*::*
$Recherche := 0
$Attaque := Attaque
$Capture := Capture
$Relache := Relache
CoordMode, pixel,screen
CoordMode, mouse,screen
Loop
{
loop
{
PixelSearch, Px, Py, 640, 0, 480, 80, 0x3ce8ea, 0, Fast RGB
if ErrorLevel = 0
{
Send {z down}
Sleep 100
Send {z up}
Send {q down}
Sleep 100
Send {q up}
Send {s down}
Sleep 100
Send {s up}
Send {d down}
Sleep 100
Send {d up}
break
}
if (Recherche)
{ return
}
else
if ErrorLevel = 1
///Attaque\\\
Loop
{
if Attaque
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
break
}
if (Attaque)
{ return
}
else
if ErrorLevel = 1
///capture\\\
Loop
{
ifCapture
PixelSearch, Px, Py, 1700, 0, 1920, 80, 0x3ce8ea, 0, Fast RGBF
if Errorlevel = 0
Sleep 100
Send, {Numpad3 Down}
send, {Numpad3 Up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
break
}
if ErrorLevel = 1
goto =if Relache
///recherche-1\\\
if Relache
Sleep 100
Send {F down}
Send {F up}
Sleep 150
Send {d down}
Send {d up}
Sleep 100
Send {F down}
Send {F up}
Sleep 100
Send {F down}
Send {F up}
break
}
}
ù:: $stop := 1[/code] [/spoiler]