Rauto Posted March 27, 2006 Share Posted March 27, 2006 hey y'all is it possible to open an html page from my hard drive in a GUI window ??? thanks for AutoIt - it is the greatest Link to comment Share on other sites More sharing options...
Moderators big_daddy Posted March 27, 2006 Moderators Share Posted March 27, 2006 hey y'allis it possible to open an html page from my hard drive in a GUI window ???thanks for AutoIt - it is the greatestAre you wanting it to open like it would on the web, or as source? Link to comment Share on other sites More sharing options...
AMiSM Posted March 27, 2006 Share Posted March 27, 2006 I've been able to strip out the code and view the text:Func StripCode ( $sText )local $sOutput = ""$sText = StringReplace ( $sText, "<", chr(230) & chr(231) )$sText = StringReplace ( $sText, ">", chr(230) )local $sLines = StringSplit ( $sText, chr(230) )For $sz = 1 to $sLines[0]If NOT StringInStr ( $sLines[$sz], chr(231) ) then If $sOutput <> "" then $sOutput = $sOutput & chr(13) $sOutput = $sOutput & $sLines[$sz]EndIfNext ;$szreturn $sOutputEndFunc Link to comment Share on other sites More sharing options...
AMiSM Posted March 27, 2006 Share Posted March 27, 2006 Anybody know how to download an HTML directly off the web? Link to comment Share on other sites More sharing options...
Rauto Posted March 27, 2006 Author Share Posted March 27, 2006 re the html page - to open as source - many thanks - robhey y'allis it possible to open an html page from my hard drive in a GUI window ???thanks for AutoIt - it is the greatest Link to comment Share on other sites More sharing options...
greenmachine Posted March 27, 2006 Share Posted March 27, 2006 If the webpage is on your computer, simply do Run ('notepad.exe file.html') to view the source. If the webpage is on the internet, you can use IE.au3 to work with it: $IEobj = _IECreate(1) _IENavigate ($IEobj, "url", 1) $Html = _IEBodyReadHtml ($IEobj) MsgBox (0, "page source", $Html) ... or you can use _INetGetSource ("url") (must include <inet.au3>) To download a webpage from the internet, use InetGet(). 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