ahbeng Posted January 24, 2007 Share Posted January 24, 2007 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 Link to comment Share on other sites More sharing options...
Edgar Posted January 24, 2007 Share Posted January 24, 2007 (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 January 24, 2007 by Edgar Link to comment Share on other sites More sharing options...
ahbeng Posted January 24, 2007 Author Share Posted January 24, 2007 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 thenyou can try ControlGetText function like this :$var = ControlGetText("Untitled - Notepad", "", "Edit1") Link to comment Share on other sites More sharing options...
Richard Robertson Posted January 24, 2007 Share Posted January 24, 2007 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. Link to comment Share on other sites More sharing options...
amokoura Posted February 21, 2007 Share Posted February 21, 2007 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now