ovelayer commented on a Page, Tinyurl link shortening alias  -  Mar 09, 2013

thank you for answering my email ford..
when i try to use this with the news tracker script
i get this error
-NT Unknown command
thanks for your time!

FordLawnmower  -  Mar 09, 2013

pastebin the code for me, as it is now and I will look at it.

ovelayer  -  Mar 09, 2013
FordLawnmower  -  Mar 09, 2013

Sorry , I wanted the script with the tinyurl script added so I can see where the error is coming from.

ovelayer  -  Mar 09, 2013

ah well i found out i was getting the nt error because i did not add your alias to the actual script was trying to add it under the alias tab..
but i added to the script and placed the shrinklinks infront of the msg parts but i still cant seem to get it working
here is what i have done
http://pastebin.com/1sHMhpKe

FordLawnmower  -  Mar 09, 2013

It looks fine. I just updated the code to what I'm using. Please try that and let me know : http://www.hawkee.com/snippet/7005/

fungi  -  Jun 14, 2013

I'm new to mIRC scripts. I added this script to Aliases and Remote. However, repeating the /shrinklinks command with the parameters you specified gave me nothing (Shrinklinks unknown command). I tried many other scripts and failed every time. What am I missing?

FordLawnmower  -  Jun 14, 2013

@fungi This alias is designed to be placed in the script you want to use it in, so it's a local alias.
If you want to call the alias from outside the snippet, just change line 2 from :

alias -l shrinklinks {

To:

alias shrinklinks {
fungi  -  Jun 15, 2013

FordLawnMower,
I tried almost a dozen variations, loading it in remote, aliases, restarting mIRC and trying the code suggestions. Maybe I'm not using it right: I copied the code above, removed " -l" on line 2 and typed "/shrinklinks http://www.google.com" in the channel I was in. It still didn't return a tinyurl. Is this script indeed supposed to shorten urls while in chat, or was it maybe designed for other purposes and I'm just understanding/using it wrong?

FordLawnmower  -  Jun 16, 2013

@fungi You're not following the instructions.

Lets say the message line is this.
msg #channelname Here is your crazy link - %crazylink
You would just change this to
ShrinkLinks msg #channelname Here is your crazy link - %crazylink

You have to send the ShrinkLinks alias output information in the first two tokens.
This is made to use inside a script , but it is possible to use this in normal chat.
Example:

//shrinklinks msg # Check out this link http://www.google.com

Both slashes are needed for this to work //shrinklinks , not /shrinklinks.

You could also add a alias to the end of the script.
Just hit ctrl+end to get to the bottom of the script.
Press [enter] to add a new line.
And paste in this alias.

alias tinysend { shrinklinks msg # $$1- }

Then just save the script.

You will now be able to type /tinysend message containing links here.

If you still need help , come to irc.geekshed.net #Script-Help

FordLawnmower  -  Jun 17, 2013

@fungi This snippet was actually broken. It's updated and working again.

Sign in to comment

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.