Jump to content

Custom Inet Browser


4gotn1
 Share

Recommended Posts

well, as you can read from the title, im building a custom internet explorer browser basically ( my first try at using COM objects, with or without autoit ^^ ) and i've got a pretty good start. But i have run into a problem that i can not seem to shake out and fix with $var.GoForward and $var.GoBack =( if the 'user' hasnt made a history (? array ?) then when they click the "back / forward" button i get this:

C:Documents and SettingsHP_Owner.MAINDesktopBrowseIt.au3 (74) : ==> The requested action with this object has failed.: 
$InetExplorer.GoBack 
$InetExplorer.GoBack^ ERROR

$InetExplorer obviously being the InetExplorer OBJ i created, and GoBack being the COM event initiated by the user pushing the "Back" button...

so i guess my question is this, can anyone point me in the right direction of solving the fatal error(s), i've searched the forums but i don't really know what "keywords" to use =P and with this specific COM the help file is of no help =(

anyways if ya can or can't thanx for atleast reading =)

-edit- Typos / added .au3 file

BrowseIt.au3

Edited by 4gotn1
Link to comment
Share on other sites

Take a look at the example for _IECreateEmbedded which adds a COM error handler to handle exactly this issue.

Dale

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

wow nice thanx daleholm :whistle:

looks like im trying to 're-invent' the wheel so to speak on alot of this ( it could be done with those _IE*Function calls in ie.au3 but im doing this more for the COM experience than the browser stuff xD

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...