Quote:
Originally Posted by SigmaD
According to nullable the wParam is the virtual key. The values for virtual keys are on MSDN. Since I'm sending a right click I'm using 2(the value of right click) as wParam for the keydown message and IntPtr.Zero for the keyup message.
|
I am using SendInput it works but still I can't specify the window that I want to click on and about the Keydown and Keyup
Code:
public enum MouseFlag : uint
{
MOVE = 0x0001,
LEFTDOWN = 0x0002,
LEFTUP = 0x0004,
RIGHTDOWN = 0x0008,
RIGHTUP = 0x0010,
MIDDLEDOWN = 0x0020,
MIDDLEUP = 0x0040,
XDOWN = 0x0080,
XUP = 0x0100,
WHEEL = 0x0800,
VIRTUALDESK = 0x4000,
ABSOLUTE = 0x8000,
}
Why are you giving Keyup IntPtr.Zero ?