Re: Need help with SendInput
I dunno man, that's kind of a big nasty mess to do what SetCursorPos already does in like 2 lines.
Code:
Private Declare Function SetCursorPos Lib "user32.dll" ( _
ByVal x As Int32, _
ByVal y As Int32) As Int32
Code:
Call SetCursorPos(X, Y)
Re: Need help with SendInput
Thanks bro, but I already knew that also you can use
Code:
Windows.Forms.Cursor.Position = New System.Drawing.Point(x, y)
But I don’t want my cursor to jump araound I want it to move from one point to another, like human would. Can you help me with this? :confused:
Re: Need help with SendInput
Alright, I just did this a day or so ago.
Check out this this post.
You'll have to convert it to .NET but that won't be a big deal compared to the nightmare that is SendInput. On the plus side, this example is Unmanaged so it wont be blocked by Vista/7 security garbage trash like the managed SendInput would in cases.
I'm still working on the SendInput just because I refuse to walk away whipped. Apparently nobody on the internet can get it right and those that can are guarding it like it were money. :sick:
When I get it squared away I'll post back with a very clear and detailed explanation.
Umm, if you manage to figure it out before I do, please post back here and give us all a break. :bigyello:
Re: Need help with SendInput
Ok 1 thing for sure.
If you add Imports System.Runtime.InteropServices to the first line of your class, it should clear up your warnings.