Jump to content

Opening URL in new Browserwindow?


Marc
 Share

Recommended Posts

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

Any of my own codes posted on the forum are free for use by others without any restriction of any kind. (WTFPL)

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...