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
➜ ideas
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Simon
Sweden (39 posts) Bio
|
| Date
| Wed 22 Jan 2003 11:46 AM (UTC) |
| Message
| Ok here's some more stuff I'd like to see:
Trigger/alias output not echoed in world but "what is typed" to be echoed.
A scripting function that can call an .exe file with arguments etc, this would really make this client more powerful and I don't think it really would affect the speed of it :) |
- "Where do you live, Simon?"
- "I live in the sick and wounded, doc."
Session 9 | | Top |
|
| Posted by
| Shadowfyr
USA (1,792 posts) Bio
|
| Date
| Reply #1 on Wed 22 Jan 2003 10:08 PM (UTC) |
| Message
| You can do this indirectly if the program in question has an ActiveX interface, but in general the scripts are designed to be 'secure' from the system and not run programs that could damage things. The windows scripting host however provides for:
Dim oShell
Set oShell = WScript.CreateObject ("WSCript.shell")
oShell.run "cmd /K CD C:\ & Dir"
Set oShell = Nothing
However, I am not sure WSCript is available to mushclient (it may be a seperate component). In general allowing mushclient to have a 'run' command interface is considered a very bad idea and no direct support for it was every provided to any of the scripting languages (unless you where running a server and used WSCript).
Two solutions>
1. If the program is an ActiveX enabled one, you may be able to create an instance of it from in the script and it will close when mushclient does or the variable pointing to it is set to something other than its current contents, like in the example above. Programs like IE, Word, Excel, Paintshop Pro, etc. all support such a method.
2. Write your own ActiveX dll that executes the needed system calls to start up the 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.
11,182 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top