First of all thanks for replying. I'm edwin_j77(the one who created the thread), I was using my old computer and didn't realize my old account was logged in =p Anyways, as my signature says, I'm trying to do a skill leveler, so I need to send right clicks and some other keys.
For the handle I made a loop that searches processes for the string "Conquer" and puts them in a listbox so I can see them. Then I set the handle to whatever value is selected on the listbox. Your method might work too(I haven't tried it), however, if I have more than one Conquer open at once then I can't choose which one I'll send the message to.
As for the lParam and wParam, I saw on an example I found they used 0 too, however I also read on another page that you should never use int as lParam or wParam because that will cause the program to crash on 64-bit windows. It said to use IntPtr but 0 is an int so It won't let me use it. I don't use 64-bit windows so this isn't a big problem for now. The problem I have now is that I can't send the message. I'm currently using this:
Code:
public const UInt32 VK_F10 = 0x79;
and using VK_F10 as the message. So far I haven't been successful :( Any ideas as to what I'm doing wrong?
EDIT: Found out I can use IntPtr.zero to set the lParam and wParam to 0.