Тема: Не работает loop
Вот код, не понимаю, почему не работает(
Нужно чтобы весь скрипт, повторялся бесконечно..
!1::
SoundPlay, %A_ScriptDir%\123.mp3
Loop
{
Click 172,233
Sleep 30
Click -700,200
Sleep 500
Click 467,308
Sleep 300
Click 460,180
Sleep 300
Click 335,206
Sleep 300
Click 270,304
Sleep 300
Click 341,302
Sleep 300
Click 172,233
Sleep 300
Click 1000,200
Sleep 500
Click 467,308
Sleep 500
Click 461,182
Sleep 500
Click 333,205
Sleep 500
Click 198,256
Sleep 500
Send {ctrl down}{ctrl down}
Send {v down}{v up}
Send {ctrl up}{ctrl up}
Sleep 60
Send {Up up}
Click 260,258
Sleep 500
Click 142,276
Sleep 500
Click 353,276
Sleep 500
Click 347,228
Sleep 500
Click 340,321
Sleep 300
Click 172,233
Sleep 3000
Click -700,200
Sleep 500
Click 442,362
Sleep 500
Click 363,193
Sleep 500
Click 363,193
Sleep 100
Click 930,600
Sleep 500
Click 172,233
Sleep 300
Click -800,300
Sleep 500
Click 467,308
Sleep 300
Click 460,180
Sleep 300
Click 335,206
Sleep 300
Click 270,304
Sleep 300
Click 341,302
Sleep 300
Click 172,233
Sleep 300
Click 1000,200
Sleep 500
Click 467,308
Sleep 500
Click 461,182
Sleep 500
Click 333,205
Sleep 500
Click 198,256
Sleep 500
Send {ctrl down}{ctrl down}
Send {v down}{v up}
Send {ctrl up}{ctrl up}
Sleep 60
Send {Up up}
Click 260,258
Sleep 500
Click 142,276
Sleep 500
Click 353,276
Sleep 500
Click 347,228
Sleep 500
Click 340,321
Sleep 300
Click 172,233
Sleep 300
Click 1000,300
Sleep 3000
Click 50,600 ;50,600 -800,200
Sleep 500
Click 445,317
Sleep 500
Click 365,194
Sleep 500
Click 300,-200
Sleep 700
Click 25,91
Sleep 700
Click 50, 600
Sleep 700
Click 25,91
Sleep 700
Click 930,330
Sleep 700
Click 70,-100
Sleep 700
Click 25,91
Sleep 500
Click 1000,100
Sleep 5000
Click 25,90
Sleep 600
Click 140,115
Sleep 600
Click 300,650
Sleep 600
Click 25,90
Sleep 600
Click 140,115
Sleep 600
Click 336,484
Sleep 600
Click 300,-220
Sleep 600
Click 333,484
Sleep 600
Click 60,600
SoundPlay, %A_ScriptDir%\3.wav
Click 59,337
Sleep 100
loop
{
PixelGetColor, Color, 59, 337 BRG
if Color = 0x050505
{
Click 282,302
if Sleep 5000
{
Click 60,-50
}
Sleep 100
Click 282,302
if Sleep 5000
{
Click -820,200
}
Sleep 100
Click 282,302
if Sleep 5000
{
Click 60,600
}
Sleep 100
Click 282,302
Sleep 100
Click 940, 100
if Sleep 5000
{
Sleep 120000
Send {XButton2}
Sleep 500
Click -800, 50
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click 950, 340
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click -800, 50
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click 950, 340
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click -800, 50
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click 950, 340
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click -800, 50
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click 950, 340
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click -800, 50
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click 950, 340
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click -800, 50
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click 950, 340
Sleep 500
Click 293,51
Sleep 35000
Send {vkC0}
Click -800, 600
Sleep 500
Send {XButton2}
Sleep 500
Click 950, 340
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click -800, 300
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click 950, 340
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click -800, 300
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click 950, 340
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click -800, 300
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click 950, 340
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click -800, 300
Sleep 500
Click 293,51
Sleep 30000
Send {XButton2}
Sleep 500
Click 950, 340
Sleep 500
Send {XButton2}
Sleep 500
Click 293,51
Sleep 500
Click -800, 300
Sleep 500
Click 293,51
Sleep 25000
Send {vkC0}
Sleep 500
Click 243,266 ;Ласт раунд
Sleep, 600
Click 243,-50
Sleep 600
Send, {vk42 Down}
Sleep, 50
Send, {vk42 Up}
Sleep, 600
Send, {vk36 Down}
Sleep, 50
Send, {vk36 Up}
Sleep, 600
Send, {vk31 Down}
Sleep, 50
Send, {vk31 Up}
Sleep, 600
Send, {vk42 Down}
Sleep, 50
Send, {vk42 Up}
Sleep, 600
Send, {vk42 Down}
Sleep, 50
Send, {vk42 Up}
Sleep, 600
Send, {vk34 Down}
Sleep, 50
Send, {vk34 Up}
Sleep, 300
Send, {vk34 Down}
Sleep, 50
Send, {vk34 Up}
Sleep, 300
Sleep 9000
Send, {vk57 Down}
Sleep, 3000
Send, {vk57 Up}
Sleep 600
Click 241,491
Sleep, 600
Click right
Sleep 50
Send {vkC0}
Sleep 600
Click 243,266
Sleep, 600
Click 1000,100
Sleep 200
Send {vkC0}
Sleep 100
Send, {vk42 Down}
Sleep, 50
Send, {vk42 Up}
Sleep, 300
Send, {vk36 Down}
Sleep, 50
Send, {vk36 Up}
Sleep, 300
Send, {vk31 Down}
Sleep, 50
Send, {vk31 Up}
Sleep, 300
Send, {vk42 Down}
Sleep, 50
Send, {vk42 Up}
Sleep, 300
Send, {vk42 Down}
Sleep, 50
Send, {vk42 Up}
Sleep, 300
Send, {vk34 Down}
Sleep, 50
Send, {vk34 Up}
Sleep, 300
Send, {vk34 Down}
Sleep, 50
Send, {vk34 Up}
Sleep, 300
Click 241,491
Sleep, 600
Sleep 10000
Click right
Sleep 50
Sleep 50000
Click 243,266
Sleep 600
Click -800,100
Send, {vkC0 Down}
Sleep, 600
Send, {vkC0 Up}
Sleep, 600
Click 80,100
Sleep 600
Click 80,600
Send, {vkC0 Down}
Sleep, 50
Send, {vkC0 Up}
Sleep, 600
Click 80,342
Sleep 600
Click 1000,-80
Sleep 100
SoundPlay, %A_ScriptDir%\745.wav
Sleep 60000
}
}
else
{
sleep, 50
}
Sleep 100
}
}
return
f12::
Reload