Register forum user name Search FAQ

Gammon Forum

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 ➜ General ➜ Scripting alias in another application?

Scripting alias in another application?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Kahenraz   (75 posts)  Bio
Date Sun 24 Jan 2016 01:38 AM (UTC)
Message
I'm learning scripting in Mush and I would like to keep an active window open to be modifying my alias script but I have to open/close it for each edit.

It's tedious to open, edit, close, test, open, edit, close test..

Is there a way around this?
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 24 Jan 2016 05:30 AM (UTC)
Message
You can make the alias "send to script" which lets you put the script inside the alias "send" box. Then you don't have to do anything other than edit the alias.

Alternatively, you should be able to set the client up to detect script file changes (see the scripting configuration) and then just edit the script file in another application (eg. Crimson Editor, Geany). Make a change, hit Save, and MUSHclient should reload the script for you.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Sun 24 Jan 2016 05:47 AM (UTC)
Message
Another approach if you just want to test scripting in general is to open an Immediate window (Ctrl+I) and try out your stuff there. You still have access to world global variables.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


10,474 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.