Main Menu
Date / Time
 
Welcome
Username:

Password:


Remember me

[ ]
Last seen
  • Snakes
    [ 2 years, 3 months, 3 weeks, 4 days, 21 hours, 5 mins, 49 secs ago ]
  • zhenpeing
    [ 4 years, 11 months, 5 days, 19 hours, 35 mins, 36 secs ago ]
  • haizihz745
    [ 4 years, 11 months, 1 week, 2 days, 2 hours, 37 mins, 18 secs ago ]
  • dfd2sgd045
    [ 4 years, 11 months, 1 week, 3 days, 9 hours, 17 mins, 3 secs ago ]
  • Tina5v1166
    [ 4 years, 11 months, 1 week, 3 days, 22 hours, 25 mins, 31 secs ago ]
  • Minem8x5
    [ 4 years, 11 months, 1 week, 3 days, 23 hours, 59 mins, 8 secs ago ]
  • cbfsbcb925
    [ 4 years, 11 months, 1 week, 4 days, 23 hours, 46 mins, 45 secs ago ]
  • twgogf93
    [ 4 years, 11 months, 1 week, 6 days, 2 hours, 38 mins, 31 secs ago ]
  • 1xiankeniyp
    [ 4 years, 11 months, 1 week, 6 days, 7 hours, 7 mins, 54 secs ago ]
  • yuzongsd
    [ 4 years, 11 months, 2 weeks, 2 days, 2 hours, 2 mins, 38 secs ago ]
Online
Guests: 1, Members: 0 ...

most ever online: 180
(Members: 0, Guests: 180) on 19 Jan : 17:02

Members: 13
Newest member: huewooey
Chatbox

Snakes
17 Mar : 04:29
Hello SkuZ you ok?


SkuZ
17 Mar : 03:54
Hi Snakessss


Snakes
05 Mar : 05:50
Hi sivad!


sivad
03 Mar : 18:58
hello ppl


Snakes
02 Mar : 11:41
Hello Immortal_Soul!


Immortal_soul
02 Mar : 11:40
woop woop im here :D

Popups Scripting Tutorial
Snakes, Friday 12 March 2010 - 13:11:12

How to edit and make your own popups script


mIRC popups scripts are the popup menus that appear on your screen when you right click in certain areas or go to "commands" in the menu bar. They are able to prompt a variety of commands, and are useful for things such as nick commands or channel commands. Popups can be used in the status window, menu bar, query, channel and nick list. To add or code scripts for these places please follow these instructions:

Tools > Script Editor > Popups > View > Click whichever one you need.

After reaching the script editor screen (following the process above), you are now ready to code a popup. So first you will need the syntax for popups scripting which I will give with an example and break down into individual steps making it easier for you to understand:

A popup script requires a position, word(s) to appear in the menu, a colon (to seperate the word(s) in the menu with the command(s), and the command(s) triggered when the popup is selected/clicked.

.Freenode:/run www.freenode.net

Position (dot) - dots are used to place a command somewhere within a popup, e.g. no dot will mean the code will appear in the first/main popup column, one dot means the code will appear in the second column (first sub-menu) of a popup menu, two dots means it will appear in the third column (second sub-menu) and so forth. So basically the dots indicate the position of the popup in the script in regards to the previous popup.

Words In The Menu (Freenode) - Words in the menu are the words that appear when you right click or click "commands" in the menu bar, this is so you know where to click to activate each command. It is helpful to put useful words in the menu.

Colon(:) - colons are needed to seperate the words in the menu from the actual command(s). They tell the compiler when the command starts and thus a slash is not always needed after it.

Command(s) (/run www.freenode.net) - Command or commands performed when the "Freenode" pop up is selected. In this case the command is /run www.freenode.net which will run the freenode website.

Still don't understand the dots 100%? I'll write a little script using them which will hopefully help you to understand them more. Also bare in mind menu titles only require words for in the menu and a position (if applicable).

Slaps
.Nice Slaps
..Cuddle:/me cuddles $$1
..Kisses:/me kisses $$1
.Mean Slaps
..Punch:/me punches $$1
..Kick:/me kicks $$1

* $$1 is used to represent different nicknames instead of writing the same command out with each users nickname in it. It will automatically pick up the first name highlighted. If you want the script to pick up multiple nicks then you can use $$* instead.

The script above will work in the following way:

1) In the main menu will appear an option called "Slaps".

2) When you put you cursor over "Slaps", two more options will appear "Nice Slaps" and "Mean Slaps".

3) When you put your cursor over "Nice Slaps", "Cuddle" and "kisses" appear and when you click one of them it will perform an action message saying you have either kissed or cuddled the recipient ($$1).

4) When you put your cursor over "Mean Slaps", "Punch" and "Kick" will appear, and when you click one of them it will perform an action message saying you have either punched or kicked the recipient ($$1).