Jump to content
Sign in to follow this  
Michael222

Retrieving text from textarea

Recommended Posts

Michael222

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

Share this post


Link to post
Share on other sites
computergroove

I wouldnt right click. I would left click the area and hit ctrl + a to do a select all. Then do a Ctrl + C for Copy and if you need a Ctrl + v to paste. Try that.


Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Share this post


Link to post
Share on other sites
Michael222

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 :-).

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  

×