Introduction
Updates
Course Notes
Course Test
Examples
 

Getting Started | Aliases | /msg and /echo | Identifiers
If-Then-Else | Variables | Pop-Ups |
Remotes

     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.
     When you open up the Pop-up menu ( or alt-p) you'll see a bunch of text in there already.  Go to the top bar, and press view, you'll see five categories: 1 Status, 2 Channel, 3 Chat, 4 Nick List, 5 Menu Bar.  These are pop-ups for when you right click in different windows.  For example, the stuff in 1 Status applies to when you right click in the status window.
      Let's take a look at the Nick List pop-ups, they're all similar in how they work, but you'll be most familiar with the scripting in the Nick List.  First off, you'll see some parts in the window that are just hyphens on their own line -.  Now go and right click on the Nick List of a channel you're in, you'll see that these - are where horizontal bars are put.  These hyphens are good for separating different categories.
     Now look at the first four lines of scripting in the Pop-up.

Info:/uwho $1
Whois:/whois $$1
Query:/query $$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.
     That's really all for pop-ups, they can be useful in some situations, now let's take a look at remote scripts.

Remotes