public override int Parse(String[] args) { keyboardEvent = new KeyboardEvent(); keyboardEvent.dwExtraInfo = int.Parse(args[1]); keyboardEvent.flags = int.Parse(args[2]); keyboardEvent.nCode = int.Parse(args[3]); keyboardEvent.scanCode = int.Parse(args[4]); keyboardEvent.time = int.Parse(args[5]); keyboardEvent.vkCode = int.Parse(args[6]); keyboardEvent.wParam = int.Parse(args[7]); return(0); }
public void SetKeyboardActionData(int nCode, int wParam, LowAPI.API_Structs.KeyboardHookStruct DataStruct) { keyboardEvent = new KeyboardEvent(); keyboardEvent.dwExtraInfo = DataStruct.dwExtraInfo; if ((DataStruct.flags & 128) != 0) { keyboardEvent.flags = 2; } else { keyboardEvent.flags = 0; } keyboardEvent.nCode = nCode; keyboardEvent.scanCode = DataStruct.scanCode; keyboardEvent.time = DataStruct.time; keyboardEvent.vkCode = DataStruct.vkCode; keyboardEvent.wParam = wParam; }