Sign in to follow this  
Followers 0
ahbeng

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

5 posts in this topic

Hi all,

I'm new to autoit3 and i would like to know how to perform the

above subject with the current autoit3 given functions.

Thanks in advance.

regards,

ahbeng

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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")
Edited by Edgar

Share this post


Link to post
Share on other sites

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")

Share this post


Link to post
Share on other sites

Why are you saying scrape? You can get data from any type of control. You just may not be able to do anything with it if it is not a standard Windows control.

ControlGetText is what you want.

Share this post


Link to post
Share on other sites

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

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