Colour picker
This dialog box provides a handy colour picker, to help choose colours for triggers, scripting, MXP programming, and generally throughout the program. Colour list This shows all of the internal colours, sorted into various sequences (controlled by the Sort combo-box). The default is Hue, which groups related colours (eg. the reds come together). Underneath that is the currently-selected colour's name, which you can click on to copy it to the clipboard, and close the colour picker dialog box. If this box is blank, then the current colour does not have a matching name. Select a colour in the list by clicking on the colour name or the colour swatch. Colour buttons If you click on any of the buttons mentioned below, it will copy the value to the clipboard, and then close the colour picker. This lets you choose a colour, and have it copied to the clipboard in the format of your choice, in one click. MXP: This is the selected colour code in MXP/HTML format (eg. for use in an MXP-enabled MUD, or on a web page). eg. #E9967A VB: This is the selected colour code in Visual Basic hex format (eg. for use in a VBscript program). eg. &h7A96E9 JScript: This is the selected colour code in C format (eg. for use in a C program, Perlscript or Jscript). eg. 0x7A96E9 Lua: This is the selected colour code as a straight decimal number (eg. for use in a Lua program, or any program that does not support hex codes). eg. 8034025 Colour sliders The three colour sliders (red/green/blue) can be moved by clicking and dragging, which will change the component of the selected colour. Also, once the slider is selected you can use the arrow keys to increase/decrease the component by one. Pressing PageUp or PageDown to increase/decrease the component by ten. As you move the sliders the colour swatch will be updated to show the new colour. Also the colour codes in the various windows will also be updated. If the new colour matches a known colour name that will appear in the "Name" box. Red: The red component of the selected colour, in the range 0 to 255. Green: The green component of the selected colour, in the range 0 to 255. Blue: The blue component of the selected colour, in the range 0 to 255. Hue: The hue component of the selected colour. Saturation: The saturation component of the selected colour. Luminance: The saturation component of the selected colour. Sort: The sequence for sorting the colours in the colour list. Colour swatch The colour swatch shows the currently-selected colour. Click on it to open the Windows colour picker. You can use the Windows colour picker to adjust the luminance (with the slider bar), the saturation (by clicking further up or down in the colour window), or the hue (by clicking further left or right in the colour window). OK Select the colour of your choice, and close the dialog box (this is the default action if you press Enter). Random Change the colour to one chosen at random. Other colour... Open the standard Windows colour picker for further colour selection. As described above you can use this to change the luminance, saturation and hue of the selected colour. Paste If there is a valid MXP/HTML/VB/C/Lua colour on the clipboard, this button will be active. Clicking it will paste the colour code into the window, and the various boxes will adjust accordingly. Close Close the colour picker without selecting a colour. This is the action that occurs if you press Escape. See Also ... Topics Scripting Utilities Command ColourPicker (Choose a colour from a list) Dialog ANSI Colour Functions Base64Decode (Takes a base-64 encoded string and decodes it.) Base64Encode (Encodes a string using base-64 encoding.) ChangeDir (Changes the MUSHclient working directory) CreateGUID (Creates a GUID - Global Unique Identifier) EditDistance (Returns the Levenshtein Edit Distance between two words) ErrorDesc (Converts a MUSHclient script error code into an human-readable description) ExportXML (Exports a world item in XML format) FixupEscapeSequences (Converts "escape sequences" like &#x5C;t to their equivalent codes.) FixupHTML (Fixes up text for writing as HTML) GenerateName (Generates a random character name) GetClipboard (Gets the clipboard contents) GetScriptTime (Returns the amount of time spent in script routines) GetUniqueID (Creates a unique ID for general use, or for making Plugin IDs) GetUniqueNumber (Returns a unique number) Hash (Produces a hash (checksum) of a specified piece of text) Help (Shows help for a script function, or a list of functions) ImportXML (Imports configuration data in XML format) Metaphone (Returns the metaphone code for the supplied word) MtRand (Returns pseudo-random number using the Mersenne Twister algorithm) MtSrand (Seed the Mersenne Twister pseudo-random number generator) ReadNamesFile (Loads in a file for generating character names) Replace (Replaces one substring with another) SetClipboard (Sets the clipboard contents) SetStatus (Sets the status line text) Simulate (Simulate input from the MUD, for debugging purposes) Sound (Plays a sound) StripANSI (Strips ANSI colour sequences from a string) Trace (Trace mode property) TraceOut (Outputs the supplied message to the world Trace) TranslateGerman (Translate German umluat sequences) Transparency (Sets the transparency of the main MUSHclient window under Windows XP) Trim (Trims leading and trailing spaces from a string) (Help topic: dialog=IDD_COLOUR_PICKER) Documentation contents page