Introduction Updates Course Notes Course Test Examples |
Getting Started |
Aliases |
/msg and /echo |
Identifiers So far all of our scripting has
been in the aliases section, but if you've done any exploring, you'll know
that there are five, yes five sections of scripting. Aliases,
Pop-ups, Remotes, Users, and Variables. We've already touched on
variables, so that leaves 3 untouched sections. Pop-ups are what
we'll look at right now. Pop-ups are basically what happens when you
right click on something (it executes a script), and we'll be able to
cover them pretty quickly. Info:/uwho $1 Now if you right click on the Nick List, the first three clickable options are Info, Whois, and Query, followed by a horizontal bar. The text before the : (colon) is displayed, and the text after the colon is what is executed when it is clicked. The $1 as you know refers to whatever is typed directly after the trigger, in this case, it is whatever nick you right clicked on. So let's try one of our own, put this line after the Query:/query $$1: Test:/testpopups $1 Now you have to make an alias for when the Test is used: /testpopups /msg $chan You're a guinea pig $1 Now go to the channel, right click on a name, and click Test. You'll say <nick> You're a guinea pig nick. (The first nick is you, the second is the one you clicked on) Pretty simple stuff. You can do similar for the other 4 windows with pop-ups (status, channel, chat, menu bar). Let's take a quick look at submenu's organizational features: The . (period) is a submenu.
If you put lines with a . in front after a menu item, this menu item will
have a > arrow that leads to these submenu's. (You can also make
submenu's within submenu's using a .. and submenu's within submenu's
within submenu' using ... and etcetera). Take a look in the Nick
List pop-up menu at the Control, CTCP, and DCC lines. Each is
followed by a slew of submenus starting with a . Now go and right
click on a nick, when you hold your mouse over Control, CTCP, or DCC,
you'll be presented with the submenu items. |