Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to start my App when IE starts

Status
Not open for further replies.

Unscruffed

Programmer
Apr 2, 2002
102
AU
I made an app that maximizes IE windows when the open. (something that should happen anyway if the opening window is maximized)

At the moment, my app runs in the background when Windows starts. I'd like to know how I can make my app automatically run when IE is started then close again when the last IE window is closed, so that it is not running permanently in the background. (similar in operation to some popup killers etc)

Thanks in advance for any help.

Be good. If you can't, don't get caught!
 
Hi all.

Still looking for a solution to this one.
I've read some articles about Browser Helper Objects, but all the examples seem to be written in C++.

Is it possible to make BHO's in VB at all?

Be good. If you can't, don't get caught!
 
There's a lot of examples on about this, but they require a hell of a lot of code. There's a few ways you could go about doing it. The easiest (and quickest) way would be to use JavaScript. You'd set a script as your homepage URL from the Tools > Internet Options... menu (in Internet Explorer). Here's a quick example:
Code:
javascript:window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);window.location='[URL unfurl="true"]http://www.google.com';[/URL]
I'ts pretty self-explanatory ;) Should you need a VB example let me know.
 
Thanks all for the replies.

Big thanks to PS42 for the above info and link.

I've now got the maximizer working ok as a BHO.
After looking at the sample code from the above link, I added popup killer code to the BHO as well. So now I have a new problem.

The popup killer code all types of new windows opened from the current document. This includes popups, and links opened in a new window using shift-click, target=, or "open in new window" in context menu.

So far, I haven't found a way to distinguish between which method was used to open the new window.

Any ideas?



Be good. If you can't, don't get caught!
 
Typo in above post. It should read:

The popup killer code closes all types of new windows opened from the current document. This includes popups, and links opened in a new window using shift-click, target=, or "open in new window" in context menu.

Sorry about that.

Be good. If you can't, don't get caught!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top