private void KeyParser(IntPtr wParam, IntPtr lParam, bool shiftPressed, bool capsLockPressed) { var keyValue = (KeyCode)Marshal.ReadInt32(lParam); var key = new KeyPressed(keyValue, shiftPressed, capsLockPressed, PInvokeData.CurrentWindowTitle()); keyPressedCallback.Invoke(key); }
public static byte[] getActiveWindowTitle(Command command) { return(Util.Conversion.stringToBytes(PInvokeData.CurrentWindowTitle())); }