Marc Posted January 19, 2004 Share Posted January 19, 2004 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 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 More sharing options...
Administrators Jon Posted January 19, 2004 Administrators Share Posted January 19, 2004 Try just using explorer:explorer.exe http://my.web.address Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Marc Posted January 19, 2004 Author Share Posted January 19, 2004 amazing many thanks! 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now