TienIT 0 Posted June 28, 2019 Hi all, I have 2 application windows, (app1 , aap2) so I want to get data from textbox app1 to textbox app2 and come back app 1 get again I send data by hotkey "Enter". Can anyone help me? But,first time, i got data --> send --> ok second times, i can not get data --> send value "" ..... this code: step1: get pos $pos = ControlGetPos ($title,"","[CLASSNN:WindowsForms10.EDIT.app.0.1e6fa8e1; INSTANCE:1]"); get pos step 2: check pos and get data of texbox app1 if ($pos[1]=97) then $temp=ControlGetText($title, "", "[CLASSNN:WindowsForms10.EDIT.app.0.1e6fa8e1; INSTANCE:1]"); if($temp <>"") then $scqmvalue =$temp ;ConsoleWrite($scqmvalue & @CRLF); endif endif Share this post Link to post Share on other sites
rudi 32 Posted June 28, 2019 (edited) Hello, welcome to the Forum! When posting your autoit code, use this control to do so: Try ControlGetText() to get the text without knowing it's exact Position. What program is that? CU, Rudi. Edited June 28, 2019 by rudi 1 TienIT reacted to this Earth is flat, pigs can fly, and Nuclear Power is SAFE! Share this post Link to post Share on other sites
TienIT 0 Posted June 29, 2019 thank for reply, so what is ControlGetText() use to get data? exp: ID or somthings ...... Share this post Link to post Share on other sites
rudi 32 Posted July 8, 2019 $ControlText=ControlGetText("Window Title","Window Text","Edit1") will give you the text in the Edit "Edit1" in a Window with Title "Window Title" and some text inside the program window telling "Window Text". Pls. lookup the help file. Earth is flat, pigs can fly, and Nuclear Power is SAFE! Share this post Link to post Share on other sites