Creates a list of keys that can be used as hotkey triggers.
Syntax
var x = keylist (item [, item ...][except item [, item ...]] )
Parameters
Each item is a key name, a key range, or another list.
A key range is two keynames separated by a hyphen like this:
a - z
Except is the word "except."
Items to the left of "except" get added to the list; items to the right get subtracted.
Contextual keywords
When used as arguments for keylist, the following ordinary words become keywords:
— except
— names of keys
— AllMainKeys
— AllKeys
— AllModifiers
— AllMouseButtons
Remarks
An item can be the name of a list you created yourself or the predefined lists AllMainKeys or AllKeys.
For ranges (two key names separated by a hyphen), HotkeyNet uses virtual key codes. For example, you could write:
var MyList = keylist ( Plus - Oem3 );
The virtual key codes for those two keys are 0xBB and 0xC0, so HotkeyNet adds to the list all the keys with virtual key codes between those two numbers. Those keys happen to be:
Plus
Comma
Minus
Period
Oem2
Oem3
For a list of virtual key codes, go to http://msdn.microsoft.com.
Examples
The following list contains a, b, and c:
var k1 = keylist ( a, b, c );
The following list uses a range. It contains a through z:
var k2 = keylist ( a - z );
The following list contains all the letters except s:
var k3 = keylist ( a - z except s);
The following list contains a, b, and c (from the first list above) and all the numbers: