Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ Suggestions
➜ Open Default Internet Browser?
|
Open Default Internet Browser?
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| MattMc
USA (54 posts) Bio
|
| Date
| Thu 04 Sep 2003 12:39 AM (UTC) |
| Message
| Is there anyway to open an internet browser using scripts? I don't do the uber-code, only the basic stuff... so I was wondering if a syntax like "openurl http://server.com/mush.php?remoteadmin&user=%1&command=%2 target=_mushadmin"
or something cool like that... this would be used for us people who can code in php but not in any other language ;P if this were developable in a plugin that would be cool too... just how to do it?
Matt, the Perl confused. | | Top |
|
| Posted by
| Shadowfyr
USA (1,791 posts) Bio
|
| Date
| Reply #1 on Thu 04 Sep 2003 03:19 AM (UTC) |
| Message
| Here is a workable solution:
dim url
dim WshShell
url = "www.yahoo.com"
set WshShell = CreateObject("WScript.Shell")
WshShell.Run "rundll32 url.dll,FileProtocolHandler " + url
WshShell = ""
There may be a more direct means of gaining a handle to the rul.dll function of rundll32, but I haven't been able to find one. This is also limited, in theat it will open the window in the default browser, but unlike doing something like using createobject("IE.application"), you have no actual control over any of the browsers functions. You can't even have mushclient close it for you at some later point.
This I believe does mean that all file types will be directed through the file associations. This means you can probably use it to auto-open 'any' file type in the appropriate program. | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
12,383 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top