Sign in to follow this  
Followers 0
city

Child GUI and Pixel .

4 posts in this topic

; example 2

#include <GUIConstants.au3>

$gui=GUICreate("Background", 800, 300)

; background picture

$background = GUICtrlCreatePic ("demo-bg.jpg", 0, 0, 800, 300)

GUISetState(@SW_SHOW)

; transparent child window

$pic=GUICreate("", 14, 80, 0, 0,$WS_POPUP,$WS_EX_LAYERED+$WS_EX_MDICHILD,$gui)

; transparent pic

$basti_stay = GUICtrlCreatePic ("l_st.gif", 0, 0, 14, 80)

GUISetState(@SW_SHOW)

do

$msg = GUIGetMsg()

until $msg = $GUI_EVENT_CLOSE

Question1 : According to example in autoit3 Help above, i cant found the child GUI since I open the script. How to I find the child GUI?

$var = PixelGetColor( 10 , 100 )

MsgBox(0,"The decmial color is", $var)

Question2 : How do the PixelGetColor function search and get the color? For example my window screen is 800 x 600. Can you tell me what is its searching-flow?

Share this post


Link to post
Share on other sites



$var = PixelGetColor( 10 , 100 )

MsgBox(0,"The decmial color is", $var)

Question2 : How do the PixelGetColor function search and get the color? For example my window screen is 800 x 600. Can you tell me what is its searching-flow?

PixelGetColor does not search. It just returns the pixel color at the X/Y coordinates specified. Did you mean PixelSearch instead?

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

PixelGetColor does not search. It just returns the pixel color at the X/Y coordinates specified. Did you mean PixelSearch instead?

Yes! xD

Share this post


Link to post
Share on other sites

Yes! xD

The only thing I have to look at is the source that is outdated. I know Valik rewrote PixelSearch recently, so he is the one to answer this question.

Auto3Lib: A library of over 1200 functions for AutoIt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0