GPAL - Generally Positive Automation Library v1.0
GPAL The Fluent Automation LIbrary
Loading...
Searching...
No Matches
GenerallyPositive.VkCodeToDomKeyConverter Class Reference

Static Public Member Functions

static bool TryConvertVkCodeToDomKey (byte vkCode, out string key, out string code)
 Converts a Windows VK code to DOM KeyboardEvent key and code values.
static bool TryConvertAsciiToVkCode (char asciiChar, out byte vkCode)
 Converts an ASCII character to a Windows Virtual Key (VK) code.

Detailed Description

Definition at line 25 of file VkCodeToDomKeyConverter.cs.

Member Function Documentation

◆ TryConvertAsciiToVkCode()

bool GenerallyPositive.VkCodeToDomKeyConverter.TryConvertAsciiToVkCode ( char asciiChar,
out byte vkCode )
static

Converts an ASCII character to a Windows Virtual Key (VK) code.

Parameters
asciiCharThe ASCII character to convert (e.g., 'a', '0', ';').
vkCodeOutput: The Windows Virtual Key Code (e.g., 0x41 for 'a').
Returns
True if the ASCII character was found and converted; false otherwise.

Definition at line 171 of file VkCodeToDomKeyConverter.cs.

◆ TryConvertVkCodeToDomKey()

bool GenerallyPositive.VkCodeToDomKeyConverter.TryConvertVkCodeToDomKey ( byte vkCode,
out string key,
out string code )
static

Converts a Windows VK code to DOM KeyboardEvent key and code values.

Parameters
vkCodeThe Windows Virtual Key Code (e.g., 0x24 for VK_HOME).
keyOutput: The DOM KeyboardEvent.key value (e.g., "Home").
codeOutput: The DOM KeyboardEvent.code value (e.g., "Home").
Returns
True if the VK code was found and converted; false otherwise.

Definition at line 136 of file VkCodeToDomKeyConverter.cs.


The documentation for this class was generated from the following file: