I can't find a way to make SendKeys.Send() working.
For example:
I set a global hotkey on F10, whenever I press it it was supposed to do this for example:
PHP Code:
SendKeys.Send("4")
So when I do press ENTER (for the chat) and press F10 . It types the 4 on the chat.
I don't understand why this works when pressing F10:
PHP Code:
SendKeys.Send("{ENTER}");
SendKeys.Send("Hello world!");
SendKeys.Send("{ENTER}");
I hope you understood my question..
This is only to Programmers that understand C# and might have a solution for this.
P.S: Yes I am using:
PHP Code:
[DllImport("user32.dll")]
private static extern bool RegisterHotKey(IntPtr hWnd, int id, uint fsModifiers, uint vk);
[DllImport("user32.dll")]
private static extern bool UnregisterHotKey(IntPtr hWnd, int id);
Thanks!







