Jump to content
Sign in to follow this  
nbourg8

Odd window closures

Recommended Posts

nbourg8

I love brick walls don't you? If you run the code below, hit Settings > Color Setup and click the color finder button, then check the box "Start Detection", then click the X to close the GUI, it closes all the parent GUI's as well. Yet when you leave the checkbox unchecked, it won't close the parent GUI's. I located the problem in the code segment:

[autoit] If WinActive("Color Setup") and GUICtrlRead($instartbox) = $GUI_CHECKED Then

$inmouse = GUIGetCursorInfo()

If GUICtrlRead($incolorbox) <> GUICtrlRead($inmouse[4]) Then

GUICtrlSetBkColor($Graphic1, GUICtrlRead($inmouse[4]))

GUICtrlSetData(GUICtrlRead($incolor[1]), GUICtrlRead($inmouse[4]))

MsgBox(0,"asdf",GUICtrlRead($inmouse[4]))

EndIf

EndIf

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  

×