myxomatosii Posted March 1, 2009 Posted March 1, 2009 $ci0=GUICtrlCreateInput($a,20,30,100,20) $hmster0=GuiCtrlRead($ci0) doesn't work.. is there a way I can do this?
notta Posted March 2, 2009 Posted March 2, 2009 Need more detail, why the guictrlread? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) Example1() ; example 1 Func Example1() Local $msg, $ci0 Local $a = 10;<-- Some value GUICreate("My GUI",300,300) ; will create a dialog box that when displayed is centered $ci0=GUICtrlCreateInput($a,20,30,100,20) GUISetState(@SW_SHOW) ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc ;==>Example1
myxomatosii Posted March 2, 2009 Author Posted March 2, 2009 Need more detail, why the guictrlread? #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Opt('MustDeclareVars', 1) Example1() ; example 1 Func Example1() Local $msg, $ci0 Local $a = 10;<-- Some value GUICreate("My GUI",300,300); will create a dialog box that when displayed is centered $ci0=GUICtrlCreateInput($a,20,30,100,20) GUISetState(@SW_SHOW) ; will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop WEnd GUIDelete() EndFunc ;==>Example1 I'm writing a script that will use ShellExecute to send URL's in order to automate commands in a browser-game, the only variable in those URL's is the CityID which I will ask for from the user and combine that input with the rest of the URL.
KaFu Posted March 2, 2009 Posted March 2, 2009 #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> Global $msg, $ci0 Global $a = 10;<-- Some value GUICreate("My GUI", 300, 300); will create a dialog box that when displayed is centered $ci0 = GUICtrlCreateInput($a, 20, 30, 100, 20) $button = GUICtrlCreateButton("Start",20,60,100,20) GUISetState(@SW_SHOW); will display an empty dialog box ; Run the GUI until the dialog is closed While 1 $msg = GUIGetMsg() If $msg = $GUI_EVENT_CLOSE Then ExitLoop If $msg = $button Then MsgBox(0,"",GUICtrlRead($ci0)) EndIf WEnd GUIDelete() works fine, or didn'nt I understand the real problem? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2024-Oct-13) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Oct-13) HMW - Hide my Windows (2024-Oct-19) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2025-May-18) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16)
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