I have been trying to make script, and i think it works, just i dont know to stop it

Code: Select all
Let>k=0
Repeat>k
SetFocus>http://*something* - IE
MouseMove>242,302
LClick
wait>1
WaitPixelColor>10394018,75,97,0 /*s*/
PlayWav>C:\WINDOWS\Media\ding.wav
WaitPixelColor>16053492,387,559,0 /*load*/
PlayWav>C:\WINDOWS\Media\ding.wav
GetPixelColor>339,519,build6
If>build6=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\6.scp
else
endif
GetPixelColor>339,494,build5
if>build5=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\5.scp
else
endif
GetPixelColor>339,471,build4
if>build4=4400389
Macro>C:*something* \My Documents\Macro Scheduler\4.scp
else
endif
GetPixelColor>339,448,build3
if>build3=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\3.scp
else
endif
GetPixelColor>339,425,build2
if>build2=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\2.scp
else
endif
GetPixelColor>339,401,build1
if>build1=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\1.scp
else
MouseMove>270,430
Wait>1
LClick /*co*/
Press up
press enter
wait>4
Let>k=k+1
Until>k=5
endif
Also when pixel is found, it runs new macro, but then comes back to main one and continue, which should not be like that!
I also tried like this
Code: Select all
SetFocus>http://*something* - IE
label>start
MouseMove>242,302
LClick
wait>1
WaitPixelColor>10394018,75,97,0 /*s*/
PlayWav>C:\WINDOWS\Media\ding.wav
WaitPixelColor>16053492,387,559,0 /*load*/
PlayWav>C:\WINDOWS\Media\ding.wav
GetPixelColor>339,519,build6
If>build6=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\6.scp
else
endif
GetPixelColor>339,494,build5
if>build5=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\5.scp
else
endif
GetPixelColor>339,471,build4
if>build4=4400389
Macro>C:*something* \My Documents\Macro Scheduler\4.scp
else
endif
GetPixelColor>339,448,build3
if>build3=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\3.scp
else
endif
GetPixelColor>339,425,build2
if>build2=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\2.scp
else
endif
GetPixelColor>339,401,build1
if>build1=4400389
Macro>C:\*something* \My Documents\Macro Scheduler\1.scp
else
MouseMove>270,430
Wait>1
LClick /*co*/
Press up
press enter
wait>4
Goto>start
endif
any help please?
if i didnt explained good what i need please say, as i am not very good with english!
Thanks!