Shoot, I was hoping this wasn't the case. I can post what I have:
I got the majority of this off of somewhere I forget where, but it isn't my original code just for disclaimer purposes. It will recognize that I have hit a keyboard combo even outside the program, but it wont run the copy function.Code:Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message) If m.Msg = WM_HOTKEY Then Debug.WriteLine(m.Msg.ToString & ":" & m.WParam.ToString & ":" & m.LParam.ToString) keybd_event(Keys.LControlKey, 0, 0, 0) 'key down keybd_event(Keys.A, 0, 0, 67) 'key down keybd_event(Keys.A, 0, &H2, 67) 'key up keybd_event(Keys.LControlKey, 0, &H2, 0) 'keyup 'CONVERSION CODE FOLLOWED BY PASTING CODE WOULD GO HERE End If MyBase.WndProc(m) End Sub




Reply With Quote
