Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

writing a Webpage to a Txt file

$
0
0

Hi,

i am trying to read a body of an internal webpage and write its body to a txt file after performaing a search. so far i have been able to figure out how to do that but the probleum is when ever the body is written in the txt file it is from the page prrior to the search. this is the code. 

 

#include <IE.au3>
 
Local $oIE = _IECreate("internal address")
_IELoadWait ($oIE)
Send("{T}{E}{S}{T}{SPACE}{A}{S}{S}{I}{G}{H}{N}{ENTER}")
_IELoadWait ($oIE)
$sText = _IEBodyReadText($oIE)
$file = FileOpen("test.txt", 1)
FileWrite($file, $sText)
 
one more detail when the search is performed the URL doesnot change. 

Viewing all articles
Browse latest Browse all 12506

Trending Articles