CWorks Posted August 8, 2006 Posted August 8, 2006 (edited) for example instead of having a button i'd like to just hit enter after typing in input box help file is no help for this Edited August 8, 2006 by CWorks
ChrisL Posted August 8, 2006 Posted August 8, 2006 for example instead of having a button i'd like to just hit enter after typing in input box help file is no help for this #include <GuiConstants.au3> GuiCreate("MyGUI", 327, 159,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS)) $Input_1 = GuiCtrlCreateInput("", 60, 40, 220, 40) GuiSetState() While 1 $msg = GuiGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $Input_1 MsgBox (0,"",GuiCtrlRead ($input_1)) Case Else ;;; EndSelect WEnd Exit [u]Scripts[/u]Minimize gui to systray _ Fail safe source recoveryMsgbox UDF _ _procwatch() Stop your app from being closedLicensed/Trial software system _ Buffering Hotkeys_SQL.au3 ADODB.Connection _ Search 2d Arrays_SplashTextWithGraphicOn() _ Adjust Screen GammaTransparent Controls _ Eventlogs without the crap_GuiCtrlCreateFlash() _ Simple Interscript communication[u]Websites[/u]Curious Campers VW Hightops Lambert Plant Hire
CWorks Posted August 8, 2006 Author Posted August 8, 2006 thanks for the help it works just as expected well i was close to solving it myself but you beat me to it this is what i was trying #include <GUIConstants.au3> GUICreate(" testing", 320,120, @DesktopWidth/2-160, @DesktopHeight/2-45, -1) GUISetState(@SW_SHOW) $btn = GUICtrlCreateInput ("", 10, 35, 300, 20) GuiSetState() $msg = 0 While $msg <> $GUI_EVENT_CLOSE $msg = GUIGetMsg() Select Case $msg = $btn exitloop EndSelect Wend MsgBox (0, "Test", $btn)
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