Sign in to follow this  
Followers 0
Radsam

New Browser Window

3 posts in this topic

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

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0