-
January 5th, 2010, 10:54 AM
#1
Mouse Click
Hi, I'm trying to make a porgram that will simulate a mouse click. A lot of the answers that I found scouring the internet said use the SendInput API. I'm very new to API's and don't know much about them. I went to MSDN's website to look up how to do it and I was able to import the dll and declare the fuction, but I'm not sure how to implement it into my program.
http://msdn.microsoft.com/en-us/libr...10(VS.85).aspx
Code:
[DllImport("User32.dll")]
UINT SendInput(UINT nInputs, LPINPUT pInputs, int cbSize);
private void button2_Click(object sender, EventArgs e)
{
SendInput(); //This is where I'm not sure what I'm supposed to do
}
When I call the fuction, I'm not sure what I'm supposed to put for the parameters of it. Any help would be greatly appreciated.
Thanks in advance.
- It's a long way to the top if you want to rock n' roll - AC/DC
Check out my band and support the music:
www.blueruinmusic.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|