BlueScreen Posted June 24, 2004 Share Posted June 24, 2004 GuiCreate ("Inputs",450,230) GuiSetControl ("label", "Combo:", 20,30) $CommunityName=GuiSetControl ("combo", "", 100,25,150,20) GUISetControlData($CommunityName,"1|2|3") $LoginAs=GuiSetControl ("label", "Username:", 20,80,150) $IM=GuiSetControl ("input", "", 100,75,150,20) $SendMessagesReq=GuiSetControl ("checkbox", "blablablab?", 275,75) GuiSetControl ("label", "Lable:", 20,130,150) $Recipient=GuiSetControl ("input", "", 100,125,150,20) GuiSetControl ("label", "Quantity:", 20,160) $Iterations=GuiSetControl ("input", "", 100,155,50,20) $x=GUISetControl ("button", "Run!", 340,170) GUISetControlNotify($x) $y=GUISetControl ("button", "another button", 320,130,100) GuiShow () Sleep (5000) Msgbox (0,"",GuiRead($x)) I cannot understand why when I do (and don't) press on the RUN! button, I get the same result in MsgBox... 10x Link to comment Share on other sites More sharing options...
pekster Posted June 24, 2004 Share Posted June 24, 2004 GUIRead ( [controlref] ) ... Return Value Success: Returns depending the control (see below). ... Button the display textPerhaps that makes it eaisier to understand? You really should be testing GuiMsg() or GuiMsg(0) or even using GuiWaitClose() and not the GuiRead for what you are trying to do. [font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes. 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