Jump to content

How to use Autoit to retrieve data (scrape) from a windows application


ahbeng
 Share

Recommended Posts

Hi Edgar,

Thanks.

I wanted to scrape the stock's price in numbers (one of the read-only field)

from a windows applications & perform some calculation of the price.

Is there a way that I can do it using autoit3 beside your given solution?

regards,

ahbeng

------------------------------------------------------------------------------------------------------------------------------

If the data is text data and the control is an Edit control then

you can try ControlGetText function like this :

$var = ControlGetText("Untitled - Notepad", "", "Edit1")
Link to comment
Share on other sites

  • 4 weeks later...

The way I've managed to "scrape" stuff if the ControlGetText isn't working:

1. Mouse click on the control

2. WinGetText()

Using the window info tool and clicking different controls I've been able to test what kind of info is available for WinGetText() .

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