Flopz wrote:Didn't change anything I'm afraid, but thanks.
Really?
This works
Code: Select all
#SingleInstance, Force
CoordMode,Pixel,Screen
CoordMode,Mouse,Screen
Gui,1:+AlwaysOnTop -DPIScale -Caption
Gui,1:Add,Progress,x0 y0 w100 h100 Background02ffff
Random,wx,20,800
Random,wy,20,500
Gui,1:Show,x%wx% y%wy% w100 h100
SetTimer,move_it,3000
return
move_it(){
Random,wx,20,800
Random,wy,20,500
Gui,1:Show,x%wx% y%wy% w100 h100
}
numpad1::
PixelSearch, Px, Py, 0, 0, A_ScreenWidth, A_ScreenHeight,0xffff02,0, Fast
if(!ErrorLevel){
MouseMove, Px+50, Py+50
}
else
TrayTip,,Not Found
return
*^ESC::ExitApp
press numpad1 to find pixel