Re: How to launch MSIE from VC++ in a window without menus or tool

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks William.

I'll check out the scripting group. I'm sure I can probably write some
empty page that runs some JS on the body load() event that will minimize or
hide the main page, while displaying a popup window. Then kill the main page
when the popup is discarded.

Thanks for your assistance again.
--
John


"William DePalo [MVP VC++]" wrote:

"John Klein" <john.klein@xxxxxxxxxxxxxxxx> wrote in message
news:D3BBD3E6-57FC-4EAA-BE17-67B5B576679D@xxxxxxxxxxxxxxxx
That's pretty cool. Ultimately, I would like to make this code as
portable
as possible so I can run it on PocketPC, WinCE.NET, as well as other
browsers
such as Firefox, Mozilla, and Safari.

The issue is that you want to do at least two things. One, you want to start
a process. Two, you want to automate the target process - in the case you
mentioned you wanted to hide tolbars and menubars etc.

It's easy to generalize the first step. You simply call CreateProcess() and
specify the name of the process that you want as well as its command line.
To command IE to open a new window you could use the command

-new http://www.foo.com

But I doubt that the various browsers agree on a set of command line
arguments or an automation interface.

If there's a more portable way, even if I have to launch, and hide the
main
Browser window and launch a window from Javascript, that would be
acceptable
if the user didn't notice it.

You might want to check one of the scripting groups for advice.

Just by the way, over a decade ago, SpyGlass published an interface for
automating browsers. I just did a quick google for it and came up empty but
I did find this KB article which describes IE's support of it:

http://support.microsoft.com/kb/q160957/

There was no FireFox way back then, but at least one Mac browser (I forget)
supported it. Maybe it will help you, maybe not. Good luck.

Thanks for the code though.

You are welcome.

Regards,
Will



.



Relevant Pages

  • Re: IE Command Line Arguments
    ... > interface in the currently active IE window? ... > other browsers can do this. ... Run the page with this command ... go to Tools | Internet Options | Advanced and under Browsing turn ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Use VBA editor on my custom OL form
    ... OL2007 doesn't automatically create a Sub Send_Click? ... window is empty, so I'm guessing not?) ... Use the View Code command in the form designer to display the code ...
    (microsoft.public.outlook.program_forms)
  • Re: How to launch MSIE from VC++ in a window without menus or tool
    ... specify the name of the process that you want as well as its command line. ... But I doubt that the various browsers agree on a set of command line ... Browser window and launch a window from Javascript, ... There was no FireFox way back then, but at least one Mac browser ...
    (microsoft.public.win32.programmer.ui)
  • Re: _SELECTED
    ... If no text has been highlighted, SELECTED returns an empty ... It is set and used in Take Command ...
    (comp.os.msdos.4dos)
  • Re: Accessing the global object
    ... never execute it (and a fair few that know they have it will never execute ... In the context of generalisations about web browsers the single example of a ... falsify the generalisation. ... document.defaultView == window. ...
    (comp.lang.javascript)