Hi,
I have this this (hopefully easy to answer) question.
I want to use WaitPixelColor, but when I point at the target area (a button) it changes color (becomes highlighted)!
Anyone any idea how to get around this?
Waitpixelcolor: how to handle mouse over highlights
Moderators: Dorian (MJT support), JRL
-
- Junior Coder
- Posts: 24
- Joined: Mon Nov 01, 2004 1:30 pm
Another thing you could do is take a screen shot in a bitmap image, then set it as your desktop image. Then right click on your desktop ( on an empty area ) Then click properties.......select the desktop tab, then make sure the " position " is set to " center ". Then you can use this script below to get your color and position.
Dialog>Dialog1
Caption=Get Color
Top=610
Width=193
Left=0
Height=128
Label=Real Time Color,59,8
Edit=msEdit1,36,32,121,
Button=Stop,59,64,75,25,2
EndDialog>Dialog1
show>Dialog1
label>colorloop
Wait>0.05
gda>Dialog1,r
if>r=2,end
Gcp>x,y
gpc>x,y,PC
let>Dialog1.msEdit1=%x%,%y%,%PC%
rda>Dialog1
goto>colorloop
label>end
Hope this helps.
Dialog>Dialog1
Caption=Get Color
Top=610
Width=193
Left=0
Height=128
Label=Real Time Color,59,8
Edit=msEdit1,36,32,121,
Button=Stop,59,64,75,25,2
EndDialog>Dialog1
show>Dialog1
label>colorloop
Wait>0.05
gda>Dialog1,r
if>r=2,end
Gcp>x,y
gpc>x,y,PC
let>Dialog1.msEdit1=%x%,%y%,%PC%
rda>Dialog1
goto>colorloop
label>end
Hope this helps.