Jump to content

Retrieving text from textarea


Recommended Posts

Hi,

I'm attempting to retrieve text from a textarea within a third-party application (Marval).

However I can't seem to find any reference/value for the textarea's text. I've tried ControlGetText as follows:

$strHistory = ControlGetText ("Marval Incident Control Screen","","[CLASS:xPursuit5500child0; INSTANCE:2]")

But this returns $strHistory as blank. Is there a trick to retrieving text from text boxes, e.g. referencing a multi-line value?

Failing that, I thought I could try a manual workaround, ie:

1. Right-click on text area

2. Choose 'Select All' from the context menu

3. Copy the selected text

4. Retrieve text from clipboard

I can do the right-click ok using ControlClick, but I'm stumped as to how to actually then tell AutoIT to select 'Select All' from the right-click context menu?

Any suggestions for either getting the text from the textarea or selecting from the right-click context menu greatly appreciated!

Michael

Link to comment
Share on other sites

I wouldn't either if I could help it! Unfortunately ctrl-a doesn't work in this text box, so I'm stuck with using the right-click or other method. So if you know how to do a right-click then select from menu, please share :-).

Link to comment
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
 Share

  • Recently Browsing   0 members

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