Science Fair Projects Ideas - MIRC script

All Science Fair Projects

      

Science Fair Project Encyclopedia for Schools!

  Search    Browse    Forum  Coach    Links    Editor    Help    Tell-a-Friend    Encyclopedia    Dictionary     

Science Fair Project Encyclopedia

For information on any area of science that interests you,
enter a keyword (eg. scientific method, molecule, cloud, carbohydrate etc.).
Or else, you can start by choosing any of the categories below.

MIRC script


mIRC script is the scripting language included with mIRC, an IRC client.

Contents

Primary uses

  • Bots that provide automated IRC channel management, trivia or other games, and other desired functions for chatters
  • Commands that save typing or otherwise simplify life on IRC (such as automatically identifying as the owner of a nickname)

Other uses

Script storage

Scripts are stored in files, usually with a .mrc or .ini file extension. Multiple script files can be loaded at one time.

Items that are scriptable

  • Aliases are subprograms. Aliases that return a value are known as custom identifiers. Aliases are called from the command line or other parts of a script.
  • Popups are scripted context menu items. Popups are called when they are selected by the user.
  • Remotes are event-handling scripts. Remotes are called when the event they handle occurs.

Data storage

Files

  • Scripts can read from and write to files

Binary variables

  • Contain unlimited (8192 bytes prior to mIRC 6.1) raw data
  • Globally accessible via commands and identifiers
  • Automatically disappear when script returns control to mIRC (and not to another part of a script)
  • Prefixed with & (&VariableName)

Hash tables

  • Contain keys (which are identical to binary variables except with no prefix)
  • Globally accessible via commands and identifiers
  • Automatically disappear when exiting mIRC
  • Not prefixed

Global variables

  • Contain 945 bytes of space-delimited data (variable names use up that space: %a can store up to 944 bytes of data and %ace can store up to 942 bytes of data)
  • Cannot store NUL (ASCII 0) or consecutive spaces
  • Globally accessible
  • Do not automatically disappear (stored automatically in a mIRC initialization file)
  • Prefixed with % (%VariableName)

Local variables

  • Contain 945 bytes of space-delimited data (variable names use up that space: %a can store up to 944 bytes of data and %ace can store up to 942 bytes of data)
  • Cannot store NUL (ASCII 0) or consecutive spaces
  • Accessible only by the alias that created them
  • Only existing in the context of the alias that created them
  • Prefixed with % (%VariableName)

Code Example

Theser codes are in the aliases script format. On the remote script, the commands should be preceeded by the word "alias".

Here is the Hello World code example:


hello {
  echo -a Hello
}

Here is an example to count to ten:


ten {
  var %x = 1
  while (%x <= 10) {
    echo -a %x
    inc %x
  }
}

External links

03-10-2013 05:06:04
The contents of this article is licensed from www.wikipedia.org under the GNU Free Documentation License. Click here to see the transparent copy and copyright details
Science kits, science lessons, science toys, maths toys, hobby kits, science games and books - these are some of many products that can help give your kid an edge in their science fair projects, and develop a tremendous interest in the study of science. When shopping for a science kit or other supplies, make sure that you carefully review the features and quality of the products. Compare prices by going to several online stores. Read product reviews online or refer to magazines.

Start by looking for your science kit review or science toy review. Compare prices but remember, Price $ is not everything. Quality does matter.
Science Fair Coach
What do science fair judges look out for?
ScienceHound
Science Fair Projects for students of all ages
All Science Fair Projects.com Site
All Science Fair Projects Homepage
Search | Browse | Links | From-our-Editor | Books | Help | Contact | Privacy | Disclaimer | Copyright Notice