Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Help] SendInput() with MOUSEEVENTF_MOVE

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Jul 08, 2008 8:39 pm    Post subject: [Help] SendInput() with MOUSEEVENTF_MOVE Reply with quote

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
View user's profile Send private message Send e-mail
oib111
I post too much
Reputation: 0

Joined: 02 Apr 2007
Posts: 2947
Location: you wanna know why?

PostPosted: Tue Jul 08, 2008 8:51 pm    Post subject: Reply with quote

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
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Jul 08, 2008 8:52 pm    Post subject: Reply with quote

oib111 wrote:
Code:

SetCursorPos(100, 100);


Ya I know this...but I want it to bypass GG. Will it?
Back to top
View user's profile Send private message Send e-mail
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Tue Jul 08, 2008 8:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Tue Jul 08, 2008 8:59 pm    Post subject: Reply with quote

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 Embarassed
Back to top
View user's profile Send private message Send e-mail
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Tue Jul 08, 2008 9:18 pm    Post subject: Reply with quote

Then yes it is bypassed within Kernel.
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites