Code : Tout sélectionner
#Include <Misc.au3>
$fenetre1x = InputBox("","1 ere mouse postion (x)")
$fenetre1y = InputBox("","1 ere mouse postion (y)")
$fenetre2x = InputBox("","2 eme mouse postion (x)")
$fenetre2y = InputBox("","2 eme mouse postion (y)")
While 1
If _IsPressed(01) then savepos()
WEnd
Func savepos()
$clic = MouseGetPos()
Sleep(150)
MouseClick("left",$fenetre2x[0],$fenetre2y[1],1,1)
MouseClick("left",$clic[0],$clic[1],1,1)
MouseClick("left",$fenetre1x[0],$fenetre1y[1],1,1)
EndFunc
Que faire?
Merci d'avance
Autoporte