Search the Community
Showing results for tags 'color pixelgetcolor'.
-
I plan to write an Au3 script to automatically install a PPT plug-in. Because the button on the installation wizard of the PPT plug-in is not a standard control, I consider writing a while loop to constantly judge the color of a specific location on the installation wizard. When the plug-in is successfully installed, a blue "Start Software" button will appear at this location, so that I can let the script close the installation wizard window. But when I used the PixelGetColor function, the script did not get the color of the button on the installation wizard. On the contrary, it went
- 10 replies
-
I have been busy elsewhere and today I dusted off AutoIt and decided to try something. This script will identify a color under the mouse and reply in human terms. I set the values to return on a scale of 0 to 10 and then using my best judgement I named the color. It could use some tweaks but it works. While 1 $pos = MouseGetPos() $ax = $pos[0] $ay = $pos[1] $var = PixelGetColor( $ax , $ay ) $color = Hex($var,6) $Redcv = Int(Dec(StringLeft ($color,2))/25.5) $Blucv = Int(Dec(StringRight ($color,2))/25.5) $Grncv = Int(Dec(StringMid ($color,3,2))/25.5) $cvalue = Get_Color ($Redc