atomman Posted October 16, 2007 Share Posted October 16, 2007 (edited) I'm very new to AutoIt and coding in general, so i didn't want to dump this in the bug box without confirming. See sig for versions. Run it, then do one of the following: - click down on the "drag" area, release, and the MsgBox appears - click the button and you may get multiple instances of the MsgBox - comment out GUICtrlSetBkColor and it works as it should - change GUICtrlCreateButton to GUICtrlCreateLabel and it works fine #include <GUIConstants.au3> $Form1 = GUICreate("Form1", 120, 25, -1, -1) $Button1 = GUICtrlCreateButton("Button1", 0, 0, 75, 25, 0) ; if comment out below, problem disappears GUICtrlSetBkColor(-1, 0x20A107) $Label1 = GUICtrlCreateLabel("drag", 88, 0, 25, 25, -1, $GUI_WS_EX_PARENTDRAG) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 MsgBox(0, "", "did i open without clicking button? or multiple times?") EndSwitch WEnd Edited October 16, 2007 by atomman Link to comment Share on other sites More sharing options...
Valuater Posted October 16, 2007 Share Posted October 16, 2007 Very good and "clear" questionThis has been fixed with the latest beta3.2.9.3, get it herehttp://www.autoitscript.com/forum/index.php?showtopic=197178) Link to comment Share on other sites More sharing options...
GaryFrost Posted October 16, 2007 Share Posted October 16, 2007 I'm very new to AutoIt and coding in general, so i didn't want to dump this in the bug box without confirming. See sig for versions. Run it, then do one of the following: - click down on the "drag" area, release, and the MsgBox appears - click the button and you may get multiple instances of the MsgBox - comment out GUICtrlSetBkColor and it works as it should - change GUICtrlCreateButton to GUICtrlCreateLabel and it works fine #include <GUIConstants.au3> $Form1 = GUICreate("Form1", 120, 25, -1, -1) $Button1 = GUICtrlCreateButton("Button1", 0, 0, 75, 25, 0) ; if comment out below, problem disappears GUICtrlSetBkColor(-1, 0x20A107) $Label1 = GUICtrlCreateLabel("drag", 88, 0, 25, 25, -1, $GUI_WS_EX_PARENTDRAG) GUISetState(@SW_SHOW) While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Button1 MsgBox(0, "", "did i open without clicking button? or multiple times?") EndSwitch WEnd Beta works fine, release is where I was able to duplicate the problem. SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
grham Posted October 16, 2007 Share Posted October 16, 2007 No problem: 3.2.4.9 Link to comment Share on other sites More sharing options...
atomman Posted October 16, 2007 Author Share Posted October 16, 2007 Ah jeez! I am using 3.2.9.3. What i'm NOT using is my HEAD! I keep smacking F5 to run and wasn't using the beta compiler! excuse me while i find a dark corner to hide in... Link to comment Share on other sites More sharing options...
atomman Posted October 16, 2007 Author Share Posted October 16, 2007 (edited) Ah, wait a minute... don't have problem with the example posted anymore, but still problematic with my script in its entirety. Will try to isolate and get back. Edited October 16, 2007 by atomman Link to comment Share on other sites More sharing options...
Valuater Posted October 16, 2007 Share Posted October 16, 2007 excuse me while i find a dark corner to hide in...Been there, done that...lolActually, I think most of us have!at least you know how to ask a question!!8) Link to comment Share on other sites More sharing options...
atomman Posted October 16, 2007 Author Share Posted October 16, 2007 With the whole script, it seems to be working fine now. Not sure what's going on, but i will be paying close attention to what version of AutoIt i'm using to run/compile from now on. Case closed... i think 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