Jump to content

Child GUI and Pixel .


city
 Share

Recommended Posts

; 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?

Link to comment
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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...