Ksaan
Знающий
- Сообщения
- 207
- Репутация
- 15
Помогите бедолаге а то сам не понимаю :stars:
Было два разных скрипта попытался соеденить все в месте и вот что вышло
НО
Так почему при использований функций
он не ставит/переводит скрипт на паузу для повторного выбора Tiple1, Tiple2 ????
Было два разных скрипта попытался соеденить все в месте и вот что вышло
НО
Код:
#include <MouseOnEvent.au3>
Global $Paused = True
Global $Tiple1 = False
Global $Tiple2 = False
_MouseSetOnEvent($MOUSE_PRIMARYDOWN_EVENT, "Down")
_MouseSetOnEvent($MOUSE_PRIMARYUP_EVENT, "Up")
HotKeySet('{NUMPAD1}', 'AK')
HotKeySet('{NUMPAD2}', 'SV')
HotKeySet('{DELETE}', '_Exit')
HotKeySet('{NUMPADADD}', '_return')
While 1
Sleep(1)
If $Tiple1 Then
While 1
If Not $Paused Then
Send('{з down}')
$pos = MouseGetPos()
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos1 = MouseGetPos()
MouseMove($pos1[0] - 4 , $pos1[1] + 5, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos2 = MouseGetPos()
MouseMove($pos2[0] - 4 , $pos2[1] + 10, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos3 = MouseGetPos()
MouseMove($pos3[0] - 3 , $pos3[1] + 10, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos4 = MouseGetPos()
MouseMove($pos4[0] - 5 , $pos4[1] + 9, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos5 = MouseGetPos()
MouseMove($pos5[0] + 10 , $pos5[1] + 5, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos6 = MouseGetPos()
MouseMove($pos6[0] - 5 , $pos6[1] + 5, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos7 = MouseGetPos()
MouseMove($pos7[0] + 11 , $pos7[1] + 4, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos8 = MouseGetPos()
MouseMove($pos8[0] - 10 , $pos8[1] + 2, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos9 = MouseGetPos()
MouseMove($pos9[0] + 9 , $pos9[1] - 3, 0)
Sleep(98)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos10 = MouseGetPos()
MouseMove($pos10[0] + 6 , $pos10[1] , 0)
Sleep(98)
If $Paused Then
Send('{з up}')
Sleep(98)
ContinueLoop
EndIf
Else
Sleep(1)
EndIf
WEnd
EndIf
If $Tiple2 Then
While 1
If Not $Paused Then
Send('{з down}')
$pos = MouseGetPos()
Sleep(70)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos1 = MouseGetPos()
MouseMove($pos1[0] + 2 , $pos1[1] + 2, 0)
Sleep(70)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos2 = MouseGetPos()
MouseMove($pos2[0] + 2 , $pos2[1] + 2, 0)
Sleep(70)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos3 = MouseGetPos()
MouseMove($pos3[0] + 2 , $pos3[1] + 2, 0)
Sleep(75)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos4 = MouseGetPos()
MouseMove($pos4[0] + 2 , $pos4[1] + 2, 0)
Sleep(90)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos5 = MouseGetPos()
MouseMove($pos5[0] + 2 , $pos5[1] + 2, 0)
Sleep(75)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos6 = MouseGetPos()
MouseMove($pos6[0] - 2 , $pos6[1] + 2, 0)
Sleep(75)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos7 = MouseGetPos()
MouseMove($pos7[0] + 2 , $pos7[1] - 2, 0)
Sleep(75)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos8 = MouseGetPos()
MouseMove($pos8[0] - 3 , $pos8[1] - 4, 0)
Sleep(75)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos9 = MouseGetPos()
MouseMove($pos9[0] - 3 , $pos9[1] + 1, 0)
Sleep(75)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
$pos10 = MouseGetPos()
MouseMove($pos10[0] , $pos10[1] - 1, 0)
Sleep(75)
If $Paused Then
Send('{з up}')
Sleep(250)
ContinueLoop
EndIf
$pos11 = MouseGetPos()
MouseMove($pos11[0] - 1 , $pos11[1] + 1, 0)
Sleep(75)
If $Paused Then
Send('{з up}')
ContinueLoop
EndIf
Else
Sleep(1)
EndIf
WEnd
EndIf
Sleep(100)
WEnd
Func AK()
$Tiple1 = True
EndFunc
Func SV()
$Tiple2 = True
EndFunc
Func _return()
$Tiple1 = False
$Tiple2 = False
EndFunc
Func Down()
$Paused = False
EndFunc
Func Up()
$Paused = True
EndFunc
Func _Exit()
Exit
EndFunc ;==>_Exit
Так почему при использований функций
Код:
Func _return()
$Tiple1 = False
$Tiple2 = False
EndFunc
он не ставит/переводит скрипт на паузу для повторного выбора Tiple1, Tiple2 ????