The list will be 16777216 items long. Far too long to read or be of any practical use for anything. The window buffer isn't large enough to store even a fraction of the list. mIRC scripting simply can't produce it in any reasonable amount of time. What's the point of it anyway?

If it's just as a matter of interest in how to do it:
Code:
listhex {
  if ($window(@hexcolours)) clear @hexcolours
  window -h @hexcolours
  var %i = 16777215
  while %i {
    echo @hexcolours $+($chr(35),$base(%i,10,16,6))
    dec %i
  }
  echo @hexcolours #000000
  window -wa @hexcolours
}


Notice the use of /window's -h switch to hide the window while it's being worked on. This makes the operation 4-10x faster.


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