HaithamSakr Posted July 20, 2014 Posted July 20, 2014 Hello, I am using send("{TAB}"); for navigating the controls and I want to get the text from the current textbox and store it in a variable without knowing textbox ID. Is there is anyway for doing that?
junkew Posted July 20, 2014 Posted July 20, 2014 You can use index logic as shown in examples of iuiautomation or instance:n syntax of special windows descriptions FAQ 31 How to click some elements, FAQ 40 Test automation with AutoIt, Multithreading CLR .NET Powershell CMDLets
Solution Shane0000 Posted July 20, 2014 Solution Posted July 20, 2014 Send('{^A}{^C}') $sValue = ClipGet() If I understand you correctly. you want to select the text in the box and get its value. Try the above. Once you tab into the textbox select all (Ctrl-A) and then copy it to the clip board (Ctrl-C) Then set your variable to what is in the clipboard
HaithamSakr Posted July 22, 2014 Author Posted July 22, 2014 Thank you Universalist Thank you Wayfarer, this exactly what I need.
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