this is myy 2 script that i want to make running separately.
Code: Select all
CoordMode Pixel
; Script 1
pRun := !pRun
If (!pRun)
Return
while (pRun)
{ PixelGetColor := false
while(PixelGetColor = false)
{
PixelSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, 0x15E005, 0, fast
if(x <> "")
{
Send, {Space}
PixelGetColor := true
}
}
}
; Script 2
pRun := !pRun
If (!pRun)
Return
while (pRun)
{ PixelGetColor := false
while(PixelGetColor = false)
{
PixelSearch, x, y, 0, 0, A_ScreenWidth, A_ScreenHeight, 0x3A9D5D, 0, fast
if(x <> "")
{
Send, {Space}
PixelGetColor := true
Sleep, 4000
MouseClick, Left, 542, 467
Sleep, 1500
MouseClick, Left, 500, 400, 3
}
}
}