#include <MouseOnEvent.au3>
HotKeySet("!^+{у}","escape") ;завершить процесс
$s = 0
$g = 0
_MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, 'AGOS') ; lm dwn
_MouseSetOnEvent($MOUSE_PRIMARYUP_EVENT, 'ATOS') ; lm up
While $s = 0
if $g = 1 Then
$g = $g + 1
$pos1 = MouseGetPos()
endif
if $g = 3 Then
$g = $g + 1
$pos2 = MouseGetPos()
endif
if $g = 5 Then
$pos3 = MouseGetPos()
$g = $g + 1
endif
if $g = 7 Then
mousemove($pos1[0],$pos1[1],0)
mousedown("left")
mousemove($pos2[0],$pos2[1],0)
mouseup("left")
mousemove($pos3[0],$pos3[1],0)
endif
if $g = 11 Then $g = 0
Sleep(1)
WEnd
Func AGOS()
$g = $g + 1
EndFunc
Func ATOS()
$g = $g + 1
EndFunc
func escape() ;завершить процесс
ToolTip("")
ToolTip('завершение скрипта')
sleep(500)
ToolTip("")
Exit
endfunc