Razi Posted January 29 Share Posted January 29 I have 3 questions. 1) How to create 100 Input boxes with code? #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form= $Form1 = GUICreate("Form1", 624, 443, 192, 124) For $y = 0 To 4 For $a = 0 To 9 GUICtrlCreateInput('Input' & $a+1 + $y*10, 12+$y*80, 32+$a*32 , 55, 21) Next Next ;GUICtrlSetData($Input2,"Input222") - can't set other text in the $Input2 GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit EndSwitch WEnd But, I can't change text in the $Input2 or other Input boxes 2) How to change text in the 1 or 10 Input boxes with "For"? The following code doesn't work: GUICtrlSetData($Input2,"Input222") 3) When above code is pasted in Koda (Form Designer via File->Import->Import Autoit GUI) it doesn't work. How can I make the code above work in the Form designer in order to save, Form with Controls, in Form designer? Autoit v220.127.116.11; SciTE v.4.4.6. First time using Autoit. Link to comment Share on other sites More sharing options...
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 account
Already have an account? Sign in here.Sign In Now