par exemple
Code : Tout sélectionner
while 1
$coord = PixelSearch ( $x , $y , $x2 , $y2 , 0x272746)
if not @error then
if Hex(pixelgetcolor($coord[0]+1, $coord[1] )) = "00555577" then
if Hex(pixelgetcolor($coord[0], $coord[1] +1)) = "0065658F" then
ExitLoop
endif
endif
endif
WEndCode : Tout sélectionner
$x = ""
$y = ""
$x2 = ""
$y2 = ""
while 1
$coord = PixelSearch ( $x , $y , $x2 , $y2 , 0x272746)
if not @error then
if Hex(pixelgetcolor($coord[0]+1, $coord[1] )) = "00555577" then
if Hex(pixelgetcolor($coord[0], $coord[1] +1)) = "0065658F" then
ExitLoop
endif
endif
endif
WEndquand je run le script il n'a plus d'erreur, donc je me dit même si c'est pas correct deja sa plante pas...
je voudrais que ma souris se place sur le pixel qui est rechercher juste plus haut donc je voudrais intégrer une fonction "MouseClick" mes voila... :
Code : Tout sélectionner
$x = ""
$y = ""
$x2 = ""
$y2 = ""
while 1
$coord = PixelSearch ( $x , $y , $x2 , $y2 , 0x272746)
if not @error then
if Hex(pixelgetcolor($coord[0]+1, $coord[1] )) = "00555577" then
if Hex(pixelgetcolor($coord[0], $coord[1] +1)) = "0065658F" then
souris()
ExitLoop
endif
endif
endif
WEnd
func souris()
MouseClick ( "left" , [color=#FF0000]x[/color] ,[color=#FF0000]x [/color] )
EndFunc
comment j'ais pas tres bien compris le script je ne c'est pas quoi metre a la place de mes x, x
need help, aidez moi à comprendre le script et à intégrer la fonction MouseClick
merci


