bdenn Posted April 4, 2017 Posted April 4, 2017 Hello, I have searched and searched the web for an answer on how to get data from a webpage and paste it into a notepad document. The problem is I need to access a website that is not on the internet but yet only on our local network so the IP will be "192.168.125.xxx" This site only displays a few things but what I need to do is pull two parts of information that are located in a table. looking at this as an excel point of view this would be cells B2 and C2. These cells hold two numbers that say 850 Watts and 3 Watts, but they change all the time. If I do a page "inspect element" I can see these exact numbers in the source code but very deep. Currently I have the following code: run ("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe") sleep(500) Send("192.168.125.xxx") Send("{Enter}") sleep(100) Send("password") Send("{Enter}") How do I get AutoIT to see these two data points and copy and paste them into a notepad. I do not really need the webpage to open, but will deal with it if I need to. ** I have attached an image of the data I need. Thanks, Bdenn
Gianni Posted April 5, 2017 Posted April 5, 2017 (edited) seems you need functions from the ie.au3 library. to extract a table from a web page opened within internet explorer, have a look to the _IETableWriteToArray() function examples and related examples on the forum.. Edited April 5, 2017 by Chimp Xandy 1 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....
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