goldenix Posted October 15, 2008 Share Posted October 15, 2008 (edited) Run this , type something into the inputbox & then Exit the GUI ( it should write into the console whatever you typed into the inputbox, but the result is always nr 3 How comes? ) ;~ ================================================================== ;~ Add New Group GUI ;~ ================================================================== #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) ; Change to OnEvent mode Global $New_Group_input $New_group_gui = GUICreate("Create New Group", 320, 120) ;Main Gui $New_Group_input = GUICtrlCreateInput("", 10, 35, 300, 20) ;Input GUISetState() ; Events GUISetOnEvent($GUI_EVENT_CLOSE, "_CLOSEClicked") ;Exit Func _CLOSEClicked() ConsoleWrite($New_Group_input & @CRLF) Exit EndFunc While 1 Sleep(100) ; Idle around WEnd Edited October 15, 2008 by goldenix My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] Link to comment Share on other sites More sharing options...
Paulie Posted October 15, 2008 Share Posted October 15, 2008 Try this: ;~ ================================================================== ;~ Add New Group GUI ;~ ================================================================== #include <GuiConstantsEx.au3> #include <WindowsConstants.au3> Opt("GUIOnEventMode", 1) ; Change to OnEvent mode Global $New_Group_input $New_group_gui = GUICreate("Create New Group", 320, 120) ;Main Gui $New_Group_input = GUICtrlCreateInput("", 10, 35, 300, 20) ;Input GUISetState() ; Events GUISetOnEvent($GUI_EVENT_CLOSE, "_CLOSEClicked") ;Exit Func _CLOSEClicked() ConsoleWrite(GUICtrlRead($New_Group_input) & @CRLF) Exit EndFunc While 1 Sleep(100) ; Idle around WEnd Link to comment Share on other sites More sharing options...
goldenix Posted October 15, 2008 Author Share Posted October 15, 2008 Try this:....GUICtrlRead, Of course, totally forgot. Ty. My Projects:[list][*]Guide - ytube step by step tut for reading memory with autoitscript + samples[*]WinHide - tool to show hide windows, Skinned With GDI+[*]Virtualdub batch job list maker - Batch Process all files with same settings[*]Exp calc - Exp calculator for online games[*]Automated Microsoft SQL Server 2000 installer[*]Image sorter helper for IrfanView - 1 click opens img & move ur mouse to close opened img[/list] 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