Jump to content
Sign in to follow this  
Marc

Opening URL in new Browserwindow?

Recommended Posts

Marc

Hi,

made a small script to get the "external" IP, because my computer is behind a router, so the @ipaddress-macros won't help here.

; run ("start http://whatismyip.com")
; advantage: works always, independant of browser type.
; disadvantage: starts URL in the current window if one exists

run ("c:\programme\internet explorer\iexplore.exe" & " http://whatismyip.com")
WinWait ("Your ip is")
$titelzeile = WinGetTitle ("Your ip is")
WinClose ("Your ip is")
$ergebnis = StringSplit ($titelzeile, " ")
ClipPut($ergebnis[4])

Actually, it works quite fine in this version.

But: IE has to be installed, and it has to be a german windows system due to the path.

There has to be a solution to start an URL independant of IE, Netscape, Opera or whatever - but without opening the URL into an existing browser window. I just hate it if some application just overwrites the first found browser window with its own adress...

Maybe after improving the script, it could even be added into the upcomming \include directory, since this problem is not so uncommon at all :whistle:

Best regards,

Marc


It's my job to comfort the disturbed and to disturb the comfortable.
My Projects: Profiler, MakeSFX, UserInfo

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.