Je débute avec AutoIt et j'essaies de comprendre la fonction ControlClick. Le problème est que quand je lance la fonction, il y a un click là où est ma souris et seulement quand je suis par-dessus la fenêtre voulue.
$result = _ImageSearch_Area(@ScriptDir & "\imgs\capture.bmp", $xTL, $yTL, $xBR, $yBR)
If $result[0] Then
ControlClick($hwnd, "", $hwnd, $button, 1, $result[1], $result[2])
EndIf
If $result[0] Then
ControlClick($hwnd, "", $hwnd, $button, 1, $result[1], $result[2])
EndIf
Le ImageSearch fonctionne correctement.
Les ConstrolSend marchent très bien aussi, si cela peut aider.
Quelqu'un aurait une idée du pourquoi du comment ?