lucas9 Posted October 21, 2016 Share Posted October 21, 2016 i am using IE.au3 in order to get the source code of a website. this is my code: local $html = _IEDocReadHTML($oIE) FileWrite("C:\\test.txt",$html & @CRLF) if i open internet explorer and i click right mouse button -> "view source code of the page" the code shown is different than the code shown by autoit script. ¿anyone knows any solution? ¿am i using the right function? Regards and thanks Link to comment Share on other sites More sharing options...
lucas9 Posted October 21, 2016 Author Share Posted October 21, 2016 PD: i need the code that shows internet explorer. Link to comment Share on other sites More sharing options...
l3ill Posted October 21, 2016 Share Posted October 21, 2016 2 minutes ago, lucas9 said: PD: i need the code that shows internet explorer. Too bad.. InetGet works better IMO... My Contributions... SnippetBrowser NewSciTE PathFinder Text File Manipulation FTP Connection Tester / INI File - Read, Write, Save & Load Example Link to comment Share on other sites More sharing options...
MattHiggs Posted October 21, 2016 Share Posted October 21, 2016 Are you sure that the URL that you are viewing matches what is in the autoit script exactly? If not, I would update the autoit script with the URL you copy and paste from the page whose source files you are viewing and try again. What parts are different? To troubleshoot the issue, I would copy the source code that you are seeing when you select "view source code of the page" and paste that into a seperate txt file and save it, then use a file comparison application to compare the two files to see exactly what content is not being read by autoit. Link to comment Share on other sites More sharing options...
Gianni Posted October 21, 2016 Share Posted October 21, 2016 16 minutes ago, lucas9 said: ..... the code shown is different than the code shown by autoit script ..... .... as indeed stated in the 'Remarks' of the _IEDocReadHTML() help file Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
lucas9 Posted October 21, 2016 Author Share Posted October 21, 2016 16 minutes ago, l3ill said: Too bad.. InetGet works better IMO... Thanks. this function returns the code that i need. 1 minute ago, Chimp said: .... as indeed stated in the 'Remarks' of the _IEDocReadHTML() help file right. i haven't read it. Solved! thanks to everyone Link to comment Share on other sites More sharing options...
Gianni Posted October 21, 2016 Share Posted October 21, 2016 InetGet() saves the returned data in a disk file; You can also use InetRead() if you want returned data stored in a variable instead... Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... Link to comment Share on other sites More sharing options...
lucas9 Posted October 21, 2016 Author Share Posted October 21, 2016 1 minute ago, Chimp said: InetGet() saves the returned data in a disk file; You can also use InetRead() if you want returned data stored in a variable instead... hehe. just now i was writing code in order to put the code given by InetGet() in a variable. THX Link to comment Share on other sites More sharing options...
Gianni Posted October 21, 2016 Share Posted October 21, 2016 Chimp small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt.... 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