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 ➜ Maximum Alias Size? Say it aint so!

Maximum Alias Size? Say it aint so!

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


Posted by Katie Love   (19 posts)  Bio
Date Thu 19 Feb 2009 03:56 AM (UTC)
Message
I have a rather large alias that performs a loop....

I can't type any more in the alias window! I'm assuming it's because there is a maximum size on that textbox and i've reached it! I can delete characters to create room for more, but I can't add past a certain point.

Am I on the right track? (i'm assuming I am)
Top

Posted by Nick Gammon   Australia  (23,140 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 19 Feb 2009 04:58 AM (UTC)

Amended on Thu 19 Feb 2009 04:59 AM (UTC) by Nick Gammon

Message
This is a limitation of the edit control on the configuration window. Have you tried hitting the "..." button? That opens a larger window. However if you have already done that, all you need to do is move the alias processing into the script file.

Make a script file in the scripting configuration tab (if you haven't got one already), and select that as the script file. Then make an alias:


function my_great_alias (name, line, wildcards)

--- paste the alias stuff here

end -- function


So basically cut the alias from your alias window and paste into the script file above. Script files have no size limitation, assuming you use a reasonable editor (I use Crimson Editor, which is free and easy to use).

Then put the name (my_great_alias or whatever) in the Script box in your alias, so this function will be called when the alias matches.

There are some slight differences in behaviour from the inlined alias to the one in the script file. Principally wildcards change from %1 etc. to wildcards [1] and so on.

ie. Instead of:

 
mob_name = "%1"


Make it:

 
mob_name = wildcards [1]


I assume your big alias is a script. If not, and you are just sending a huge amount of text, you can make a multi-line Send command, eg.


function my_great_alias (name, line, wildcards)

Send [[

....  your 50 K of text here ....

]]

end -- function



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


9,114 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.