mIRC Home    About    Download    Register    News    Help

Print Thread
#5147 05/01/03 10:08 PM
Joined: Dec 2002
Posts: 12
S
Sartan Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Dec 2002
Posts: 12
i think i posted this again but $cmdbox is a joke it just doesn't work at aall..... Grr !! smirk
//say $cmdbox
^-- look?

#5148 05/01/03 10:21 PM
Joined: Dec 2002
Posts: 2,962
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 2,962
I think you've missed the point of that completely. It's for use in aliases to check whether they were called from the Command Box, (notice that the command box is not the editbox).
eg.
Code:
cmdecho {
  ;Here's an alias that uses $cmdbox
  if ($cmdbox) echo -a This is a special echo that only works from the command box. $1-
}

Now try that alias in the regular editbox and nothing happens. But use it from the actual command box and it'll work (Use Alt+Q to toggle the command box on/off).


Spelling mistakes, grammatical errors, and stupid comments are intentional.

Link Copied to Clipboard