Make your own free website on Tripod.com

The MIRC Workshop
Tutorials, Scripts and Help Files for mIRC

MIRC Workshop mIRC Help Files Scripts & Scripting mIRC Downloads mirc script writer
Back / Index / Next

Return To Main MIRC Menu

  MIRC Variables  

The subject of mIRC Variables is another of those things that sound technical but are in fact just a term for something straight-forward. MIRC Variables are just identifiers that you yourself get to define. In other words, if you can't find an existing mIRC identifier that fits your need, you can define your own.

For example: mIRC uses the $me identifier to refer to your nick at any given time. The $me only refers to your current nick, what if you wanted to refer to your main, favourite nick even if not using it at the time?

MIRC Variables are for that kind of need. The command:
/set %favenick $?="Enter your chosen nickname" creates a variable (called %favenick) and gives it the value you enter in the prompt. You can then refer to that nick as %favenick in your scripts.

You can set, change and delete mIRC variables. MIRC Variables are often used as a memory function of sorts. MIRC Variables are stored until unset (deleted). Variables are an excellent way of saving simple bits of data for later use.

Variables are often used in mIRC scripts to make counters. Whenever the event you want to count occurs you add one to the number in a variable set to count those events. To show the count you can refer to the variable in a message or using the /echo command.

Variables always begin with a % sign just as most identifiers begin with a $ sign. As soon as you begin to create functions in mIRC scripts you will start to use variables but as I hope you see, mIRC variables are much simpler than they sound.

NOTE: One essential thing to remember about variables is that they almost always will only work if there is at least one space on either side. If an variable or identifier is not seperated by spaces from other characters in scripts then mIRC will usually fail to 'see' it. ALWAYS space identifiers from anything else in your scripts or commands.

  MIRC Workshop Exclusive  

MIRC Workshop proudly presents Black Knight's mIRC script writing Java Applet. This applet lets you quickly and easily generate lines of code for mIRC scripts. The Script Writer applet is especially suited to writing Remote Scripts including aliases, popups and events.

Simply use the menu driven generator to create multiple lines of code including colours, bold and underline codes, a wide range of preset identifiers, commands, events and anything else at all with 'own input' and edit capabilities.

A few simple clicks and any additional custom input you like and your code is ready to cut and paste into your mIRC scripts. Best of all, using this applet is totally FREE!

The mIRC Script Writing applet is a MIRC Workshop exclusive. No other site offers you such a great and easy way to generate your scripts and popups.


Back to Top of Page

Return To Main MIRC Menu

Back / Index / Next




©1999 The Black Knight
MIRC Workshop
What's New
Site Map
MIRC Links
Link to Us
The Author
IRC chat basics
IRC Chat Use
IRC Warfare
No-Tech Attacks
Floods / Flooding
Nukes / Nuking
Trojans / Trojan
Hacks / Hacking
What's mIRC?
mIRC Set-up
Connect Options
IRC Options
DCC Options
Display Options
General Options
mIRC Basics
Beginner Guide
MIRC Colours
MIRC Commands
MIRC Identifiers
MIRC Variables
MIRC If-Then-Else
Alias Scripts
Popups Scripts
- Text Popups
- Popup Controls
- Files Popups
- Info Popups
Events Scripts
Remotes Scripts
Scripting Applet
Downloads Area

Rate This Site.
 

Copyright ©2001 MIRC Workshop
All rights reserved

Search engine optimisation positioning tutorials| Internet Marketing Consultant

Back To Top