| View previous topic :: View next topic |
| Author |
Message |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Tue Jul 08, 2008 8:39 pm Post subject: [Help] SendInput() with MOUSEEVENTF_MOVE |
|
|
I want to move the mouse to a specific place and click using the SendInput(); function. As you can see, the mouse is supposed to go to 100,100. For some reason, however, it does not.
Help Please?
| Code: |
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_MOVE | MOUSEEVENTF_ABSOLUTE;
Input.mi.dx = 100;
Input.mi.dy = 100;
AltSendInput(1, &Input, sizeof(INPUT));
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTDOWN;
AltSendInput(1, &Input, sizeof(INPUT));
Input.type = INPUT_MOUSE;
Input.mi.dwFlags = MOUSEEVENTF_LEFTUP;
AltSendInput(1, &Input, sizeof(INPUT)); |
|
|
| Back to top |
|
 |
oib111 I post too much
Reputation: 0
Joined: 02 Apr 2007 Posts: 2947 Location: you wanna know why?
|
Posted: Tue Jul 08, 2008 8:51 pm Post subject: |
|
|
| Code: |
SetCursorPos(100, 100);
|
_________________
| 8D wrote: |
cigs dont make people high, which weed does, which causes them to do bad stuff. like killing |
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Tue Jul 08, 2008 8:52 pm Post subject: |
|
|
| oib111 wrote: | | Code: |
SetCursorPos(100, 100);
|
|
Ya I know this...but I want it to bypass GG. Will it?
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Tue Jul 08, 2008 8:56 pm Post subject: |
|
|
| kitterz wrote: | | oib111 wrote: | | Code: |
SetCursorPos(100, 100);
|
|
Ya I know this...but I want it to bypass GG. Will it? |
Yes SetCursorPos will work.
does your SendInput bypass kernel wise as well? (NtUserSendInput)
_________________
|
|
| Back to top |
|
 |
kitterz Grandmaster Cheater Supreme
Reputation: 0
Joined: 24 Dec 2007 Posts: 1268
|
Posted: Tue Jul 08, 2008 8:59 pm Post subject: |
|
|
| lurc wrote: | | kitterz wrote: | | oib111 wrote: | | Code: |
SetCursorPos(100, 100);
|
|
Ya I know this...but I want it to bypass GG. Will it? |
Yes SetCursorPos will work.
does your SendInput bypass kernel wise as well? (NtUserSendInput) |
Im just using kiki's kimput driver lol im not so sure what you are asking
|
|
| Back to top |
|
 |
lurc Grandmaster Cheater Supreme
Reputation: 2
Joined: 13 Nov 2006 Posts: 1900
|
Posted: Tue Jul 08, 2008 9:18 pm Post subject: |
|
|
Then yes it is bypassed within Kernel.
_________________
|
|
| Back to top |
|
 |
|