Kyme Posted June 30, 2008 Share Posted June 30, 2008 what it's wrong whit my script???sry but i am n00b...i never use GUICtrlCreateCheckbox before... if i make it if PixelGetColor(510,424)=0xFEFBD8 then MsgBox(0,"Disconnect","Disconect detected") EndIf it's work awesome...but if i but the GUICtrlGetState($Checkbox1)=$GUI_CHECKED script stay like dumb... i think the $GUI_CHECKED it's wrong...how to make it???... #include <GUIConstants.au3> $Menu1 = GUICreate("Disconnect Detector", 355, 204, 193, 115) GUISetState(@SW_SHOW) $Checkbox1 = GUICtrlCreateCheckbox("Disconnect", 56, 136, 75, 25) While 1 if GUICtrlGetState($Checkbox1)=$GUI_CHECKED and PixelGetColor(510,424)=0xFEFBD8 then MsgBox(0,"Disconnect","Disconect detected") EndIf $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd tnx Link to comment Share on other sites More sharing options...
AlmarM Posted June 30, 2008 Share Posted June 30, 2008 $Read = GUICtrlRead($Checkbox1) If $Read = 1 and PixelGetColor(510, 424) == 0xFEFBD8 Then MsgBox(0, "Disconnect", "Disconnect Detected") EndIf Mayby this is what your looking for? -AlmarM- Minesweeper A minesweeper game created in autoit, source available. _Mouse_UDF An UDF for registering functions to mouse events, made in pure autoit. 2D Hitbox Editor A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes. Link to comment Share on other sites More sharing options...
Kyme Posted June 30, 2008 Author Share Posted June 30, 2008 $Read = GUICtrlRead($Checkbox1) If $Read = 1 and PixelGetColor(510, 424) == 0xFEFBD8 Then MsgBox(0, "Disconnect", "Disconnect Detected") EndIf Mayby this is what your looking for? -AlmarM- yup...it's work^^ tnx Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now