Sign in to follow this  
Followers 0
HaithamSakr

Getting the value of textbox without knowing the ID

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

Thank you Universalist

Thank you Wayfarer, this exactly what I need.

Share this post


Link to post
Share on other sites

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

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0