Voici un bout du code que j'utilise
Code : Tout sélectionner
$pat1 = _ImageSearchArea('patrouille1.bmp', 1, 760, 430, 910, 460, $x, $y, 50)
$pat2 = _ImageSearchArea('patrouille2.bmp', 1, 760, 430, 910, 460, $x, $y, 50)
$car1 = _ImageSearchArea('juliette.bmp', 1, 95, 433, 255, 460, $x1, $y1, 50)
$car2 = _ImageSearchArea('bravo.bmp', 1, 95, 433, 255, 460, $x1, $y1, 50)
$redeasy = PixelSearch(893, 793,913, 818,0x570D08,1) ; vérification qu'une notification patrouille arrive
$finishA= isarray($redeasy)
if $finishA = 1 then
;MsgBox (0, "ok", "nouvelle Notif")
Local $search = $pat1 or $pat2
If $search = 1 Then
;action 1
$t = $t + 1
Sleep (2500)
Else
Else
;MsgBox (0, "Fail", "pas de news")
Endif
$redcar = PixelSearch(558, 793,578, 818,0x570D08,1) ; verification retour vehicule
$finishb= isarray($redcar)
if $finishb = 1 then
;MsgBox (0, "ok", "retour vehicule")
local $searchm = $car1 or $car2
If $searchm = 1 Then
;Action 2
Sleep (2500)
EndIf
Else
;MsgBox (0, "Fail", "pas de retour vehicule")
Endif
sleep (200)
est ce que j'ai oublié quelque choses?
Cordialement


