Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static byte[] getActiveWindowTitle(Command command)
 {
     return(Util.Conversion.stringToBytes(PInvokeData.CurrentWindowTitle()));
 }