Code: Select all
^1::
$stop := 0
Loop,
{
waitpixelcolor(0xEF00FF, 318, 240,500)
{
Send, {e down}{e up}
Sleep, 500
click, 267, 122
Sleep, 1000
send, /joinworld -272716
send, {enter down}{enter up}
sleep, 3000
}
waitpixelcolor1(0xEF00FF, 318, 240,500)
{
click, down
sleep, 24000
click, up
sleep, 1000
send, /joinworld ramses castle
send, {enter down}{enter up}
sleep, 3000
}
waitpixelcolor2(0xEF00FF, 318, 240,500)
{
Send, {e down}{e up}
Sleep, 500
click, 255, 135
Sleep, 1000
send, /joinworld -272716
send, {enter down}{enter up}
}
waitpixelcolor3(0xEF00FF, 318, 240,500)
{
click, down
sleep, 24000
click, up
sleep, 1000
send, /joinworld ramses castle
send, {enter down}{enter up}
sleep, 3000
}
if ($stop)
{
return
}
}
^2:: $stop := 1
Return
and i had to make more than 1 instance of it switching back and forth because the yes/no window that pops up for grabbing a quest has to have the mouse "moved" over it for the cursor to correctly click yes to accept the quest. hopefully this all makes sense and can be understood. can anyone please help me with how to correctly get waitpixelcolor or whichever function works best with waiting until pink is found at x,y before continuing the code? tyvm in advance! or if there's an even better way of making the script wait until the "loading screens" are done and ready to continue the script. i'm open to all ideas. tyvm!