Does anyone ever worked with SendKeys on C# with 12sky2?
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:
Whenever I press F10, he don't do the function to press number 4 for me.
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:
It send "Hello world!" in the chat, but when I try to make it pressing AoE key it does not.
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:
To detect if the key was pressed etc, that is working fine.
Thanks!
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!