Jump to content

New Browser Window


Recommended Posts

Hi

When I use the following function to navigate to a page, it will use an already opened browser to navigate if one is actually open. How can I make it so that the following code opens a new, seperate browser if there is a browser already open?

Func _BrowseURL($sURL)
    RunWait(@Comspec & ' /c START "" "' & $sURL & '"', "", @SW_HIDE)
EndFunc
Link to comment
Share on other sites

I use Firefox and I set it in the browser to open a new tab, maybe IE has the same option, oh wait no tabs, maybe it will let you open a new window.

*EDIT

Looking at IE options:

Under Advanced I see an option 'Reuse Windows for launching shortcuts'

Maybe thats it.

Edited by Ejoc
Start -> Programs -> AutoIt v3 -> AutoIt Help File -> Index -> (The Function you are asking about)----- Links -----DllStruct UDFsRSA Crypto UDFs
Link to comment
Share on other sites

Ah yes. THere is an option in the Advanced tab of IE called "Reuse windows for launching shortcuts." I removed the check and all it good now.

Does anyone know the registry key to read this option? I'd like to be able to adjust this through the registry if ever needed.

NEVERMIND, I FOUND ANSWER IN MSDN... :)

Edited by Radsam
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...