Method keys.AddKey(+ 1 overload)
Overload
Adds single key, specified as KKey, to the internal collection. It will be sent by keys.SendNow.
public keys AddKey(KKey key, bool? down = null)
Parameters
|
key (KKey)
Virtual-key code, like |
|
down (bool?)
|
Returns
|
keys
This. |
Exceptions
|
ArgumentException
Invalid key (0). |
Overload(top)
Adds single key to the internal collection. Allows to specify scan code and whether it is an extended key. It will be sent by keys.SendNow.
public keys AddKey(KKey key, ushort scanCode, bool extendedKey, bool? down = null)
Parameters
|
key (KKey)
Virtual-key code, like |
|
scanCode (ushort)
Scan code of the physical key. Scan code values are 1-127, but this function allows 1-0xffff. Can be 0. |
|
extendedKey (bool)
|
|
down (bool?)
|
Returns
|
keys
This. |
Exceptions
|
ArgumentException
Invalid scan code. |