[QUOTE=Evan Lim;2145809]Darkyy@
like this?
thanks
like this?
Code:
x1=106
y1=143
x2=882
y2=609
loop
{
IfWinActive, [Conquer2.0]
{
PixelSearch, Px, Py, x1, y1, x2, y2, 0x0303B8, 10, Fast
if ErrorLevel = 0
{
firstclickx := Px - 5
firstclicky := Py + 20
send {ctrl down}
sleep 100
click %firstclickx%,%firstclicky%
sleep 50
send {ctrl up}
secondclickx := Px + 10
secondclicky := Py - 20
click %secondclickx%,%secondclicky%
sleep 400
}
if errorlevel = 1
{
send {ctrl down}
Click 251,158
sleep 1000
click 251,158
sleep 1000
}
}
}