Jump to content

Getting the value of textbox without knowing the ID


Go to solution Solved by Shane0000,

Recommended Posts

Posted

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?

  • Solution
Posted

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

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...