Jump to content

Navigating to Local HTML Files Within EXE compilations


Recommended Posts

I would like to compile some HTML files (into an EXE file), so that my HTML files are displayed using a GUI browser.

I've tried to read the instructions for Dave's IE.au3 script and now know how to create the GUI brower, and 'navigate' to webpages online and even to local HTML pages (by providing a path to the file), however, I can't figure out how to 'navigate' to a file within the same directory (and not have to provide an absolute file path). For security reasons, I don't want to EXTRACT my HTML files outside the EXE compilation.

That is, I want to create a stand alone HTML browser so that it 'navigates' to the HTML files within a sub-folder inside my EXE compilation file.

Can this be done or do I have to EXTRACT the HTML files to the users computer?

Any help and examples would be greatly appreciated.

Link to comment
Share on other sites

  • Moderators

I think it would be far less work if you just used FileInstall(). You could even encrypt it if you wanted and give it a different extension but still be able to read it.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

A couple of ideas come to mind... 1) you can encode the files in strings in your script and then use _IEDocWriteHTML to create them on the fly (if you have images and other content this is not going to work) 2) if you are really motivated you can investigate using a RAM drive and write them there so that they never exist in the normal file system.

Dale

Edit: see the source for _IE_Example() for an example of the first option

Edited by DaleHohm

Free Internet Tools: DebugBar, AutoIt IE Builder, HTTP UDF, MODIV2, IE Developer Toolbar, IEDocMon, Fiddler, HTML Validator, WGet, curl

MSDN docs: InternetExplorer Object, Document Object, Overviews and Tutorials, DHTML Objects, DHTML Events, WinHttpRequest, XmlHttpRequest, Cross-Frame Scripting, Office object model

Automate input type=file (Related)

Alternative to _IECreateEmbedded? better: _IECreatePseudoEmbedded  Better Better?

IE.au3 issues with Vista - Workarounds

SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y

Doesn't work needs to be ripped out of the troubleshooting lexicon. It means that what you tried did not produce the results you expected. It begs the questions 1) what did you try?, 2) what did you expect? and 3) what happened instead?

Reproducer: a small (the smallest?) piece of stand-alone code that demonstrates your trouble

Link to comment
Share on other sites

I was hoping there would be an easy answer and I might have just missed some simple function. I was hoping my issue would have been easily solved by a more experienced scripter.

Thank you for all your replies. If nothing comes about, I think I might just have to consider the RAM drive option, or reconsider my method for HTML compilation all together.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...