Maurizio Posted October 15, 2020 Share Posted October 15, 2020 Hello, I state that I am not a programmer, but a simple geek, and I can create small programs with the help of the guides and thinking about them. My problem is that using Koda, I can create the working GUI, but as soon as I try to do this step, I get stuck because I have not found anything about it. The problem is this: I create an input box where the user will type a number. The program will have to write this number in a given box. I put the cursor in that box, but I don't know what the command is to make the number typed in the input box write. Thanks in advance. Link to comment Share on other sites More sharing options...
Zedna Posted October 15, 2020 Share Posted October 15, 2020 Post your GUI code ... Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Maurizio Posted October 15, 2020 Author Share Posted October 15, 2020 HotKeySet ("{ESC}", "Terminate") #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3> #Region ### START Koda GUI section ### Form=c:\users\maurizio\desktop\autoit programmi\form1.kxf $Form1_1 = GUICreate("Controllo Player", 615, 438, 192, 124) $Galassia = GUICtrlCreateLabel("Galassia", 80, 32, 44, 17) $Sistema = GUICtrlCreateLabel("Sistema", 240, 32, 41, 17) $Input1 = GUICtrlCreateInput("Input1", 80, 80, 41, 21) $Input10 = GUICtrlCreateInput("Input10", 232, 80, 49, 21) $Orbita = GUICtrlCreateLabel("Orbita", 408, 32, 32, 17) $Input2 = GUICtrlCreateInput("Input2", 392, 80, 49, 21) $Avvia = GUICtrlCreateButton("Avvia", 248, 192, 75, 25) GUISetState(@SW_SHOW) #EndRegion ### END Koda GUI section ### While 1 $nMsg = GUIGetMsg() Switch $nMsg Case $GUI_EVENT_CLOSE Exit Case $Avvia sleep(2000) MouseClick("left",559,502,1) Sleep(2000) MouseClick("left",717,262,1) Sleep(2000) sleep(2000) MouseClick("left",881,269,1) Sleep(2000) EndSwitch WEnd Func Terminate() Exit EndFunc where there are the two spaces, I would like to write what is written in the input box Link to comment Share on other sites More sharing options...
Zedna Posted October 15, 2020 Share Posted October 15, 2020 (edited) $value = GUICtrlRead($Input1) MsgBox(0,'Value', $value) EDIT: If you need to set this value to other input box then use GUICtrlSetData($input2, $value) Edited October 15, 2020 by Zedna Resources UDF ResourcesEx UDF AutoIt Forum Search Link to comment Share on other sites More sharing options...
Maurizio Posted October 15, 2020 Author Share Posted October 15, 2020 Now I try and let you know Thank you. Link to comment Share on other sites More sharing options...
Maurizio Posted October 15, 2020 Author Share Posted October 15, 2020 $value = GUICtrlRead($Input1) MsgBox(0,'Value', $value) in this way he writes it in the message box while I would like him to write it where I click Link to comment Share on other sites More sharing options...
Maurizio Posted October 15, 2020 Author Share Posted October 15, 2020 i modified it so and it works, is that correct? however it works Thanks again. $value = GUICtrlRead($Input1) Send ($value,"") 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