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 


[C++]setCursorPos

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

Joined: 17 Dec 2006
Posts: 786

PostPosted: Sun Jun 15, 2008 9:18 am    Post subject: [C++]setCursorPos Reply with quote

Does it need to be bypassed? if im using windowed mode, i'll do like...

setCursorPos(xofdxwnd, yofdxwnd);

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
b6ooy
Grandmaster Cheater
Reputation: 0

Joined: 21 Sep 2006
Posts: 653

PostPosted: Sun Jun 15, 2008 9:21 am    Post subject: Reply with quote

its not hooked by the gg .
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Sun Jun 15, 2008 9:27 am    Post subject: Reply with quote

b6ooy wrote:
its not hooked by the gg .


Uhhh what?

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jun 15, 2008 9:38 am    Post subject: Reply with quote

I coulda swore SetCursorPos was hooked by GameGuard...

Anyways, if it is; to bypass it, its the same exact method as PostMessageA, only difference is that your loading SetCursorPos's address using GetProcAddress instead of PostMessageA

Edit
Actually it makes sense that it woudn't be hooked... How would GameGuard check if your setting the position of the mouse on a certain point on there game when there is only 2 parameters... X and Y.. no information about the Window at all...

btw its SetCursorPos not setCursorPos.
C++ is Case Sensitive

_________________


Last edited by lurc on Sun Jun 15, 2008 9:41 am; edited 1 time in total
Back to top
View user's profile Send private message
b6ooy
Grandmaster Cheater
Reputation: 0

Joined: 21 Sep 2006
Posts: 653

PostPosted: Sun Jun 15, 2008 9:41 am    Post subject: Reply with quote

lurc wrote:
I coulda swore SetCursorPos was hooked by GameGuard...

Anyways, if it is; to bypass it, its the same exact method as PostMessageA, only difference is that your loading SetCursorPos's address using GetProcAddress instead of PostMessageA

Edit
Actually it makes sense that it woudn't be hooked... How would GameGuard check if your setting the position of the mouse on a certain point on there game when there is only 2 parameters... X and Y.. no information about the Window at all...

not hooked I am using it and the gameguard is rev 1203
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Sun Jun 15, 2008 10:45 am    Post subject: Reply with quote

I was also wondering about a % autopotter. like this

if(hp = 40%){
sendKey(vk_end)
}
if(mp = 20%){
sendKey(vk_home)
}

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
oib111
I post too much
Reputation: 0

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

PostPosted: Sun Jun 15, 2008 10:50 am    Post subject: Reply with quote

Here's what I would do. I would divide the bar into percents of 10. So it would be like: 10, 20, 30, 40, 50, 60, 70, 80, 90, 100. Then I would check if there is a gray pixel at the next 10 percent. So if someone wanted to use a mana pot when they got down to 10%, I would check to see if the 20% was gone. And in the case of 100%, I wouldn't supply 100% anyway, because there's no point Laughing
_________________


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
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Sun Jun 15, 2008 10:54 am    Post subject: Reply with quote

How would I bypass getPixel.

And would this work like..

getPixel(X,Y,R,G,B)?

_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
GMZorita
Grandmaster Cheater Supreme
Reputation: 0

Joined: 21 Mar 2007
Posts: 1361

PostPosted: Sun Jun 15, 2008 11:04 am    Post subject: Reply with quote

ElectroFusion wrote:
How would I bypass getPixel.

And would this work like..

getPixel(X,Y,R,G,B)?

http://forum.cheatengine.org/viewtopic.php?t=231988

_________________
Gone
Back to top
View user's profile Send private message
ElectroFusion
Grandmaster Cheater
Reputation: 0

Joined: 17 Dec 2006
Posts: 786

PostPosted: Sun Jun 15, 2008 11:43 am    Post subject: Reply with quote

His example use is in delphi. got one for C++?
_________________
qwerty147 wrote:

ghostonline wrote:

what world are you in?

bera

but i live in NZ
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jun 15, 2008 12:21 pm    Post subject: Reply with quote

Omg. GetPixel is bypassed the EXACT same way as PostMessageA!
All you have to do is get a Disassembler such as OLLYDBG and throw the dll that contains that export, then check to see if it has the 5 byte prologue

mov edi, edi
push ebp
mov ebp,esp

If it does you can bypass it the EXACT same way as any other User-mode API that contains that prologue, just load up a different address and jump to it.

Next it's GetPixel. Like I said before, C++ is Case Sensitive. Same goes for VK_HOME and VK_END
And GetPixel only has 3 god damn parameters. It's like you havnt looked up any of this and you just want us to spoon feed you constantly.
If you looked GetPixel up you would see that it returns a COLORREF/RGB which is an just a DWORD value. You can get the Red/Blue/Green value from the macro's (located in WinGDI.h)

Code:
#define GetRValue(rgb)      (LOBYTE(rgb))
#define GetGValue(rgb)      (LOBYTE(((WORD)(rgb)) >> 8))
#define GetBValue(rgb)      (LOBYTE((rgb)>>16))


Finally a % Auto-Potter checks certain points where the little grey tick is on MapleStory's window to check if it is indeed that grey value, if it is, pot, else continue checking.

_________________
Back to top
View user's profile Send private message
kitterz
Grandmaster Cheater Supreme
Reputation: 0

Joined: 24 Dec 2007
Posts: 1268

PostPosted: Sun Jun 15, 2008 3:59 pm    Post subject: Reply with quote

SetCursorPos is not bloacked by GameGuard....I could use it fine without PostMessageA bypass or anything like that.
Back to top
View user's profile Send private message Send e-mail
Cx
Master Cheater
Reputation: 0

Joined: 27 Jul 2007
Posts: 367

PostPosted: Sun Jun 15, 2008 5:16 pm    Post subject: Reply with quote

lurc, all of GameGuard's usermode API protection are the same thing...
_________________

armed with this small butterfly net
i will face the world alone
& never be lonely.
Back to top
View user's profile Send private message
lurc
Grandmaster Cheater Supreme
Reputation: 2

Joined: 13 Nov 2006
Posts: 1900

PostPosted: Sun Jun 15, 2008 6:06 pm    Post subject: Reply with quote

Cx wrote:
lurc, all of GameGuard's usermode API protection are the same thing...


I know that. I'm saying EXACT as in the same 5 byte prologue, as in

mov edi, edi
push ebp
mov ebp, esp

I was just pointing out the fact that its EXACT (just changing the address to jump to)
I don't know every single API that is hooked so i dont know if some of them don't have the 5 byte prologue.
I told him to check the 5 byte prologue because if he tries to do the same exact bypass as the ones with the 5 byte prologue as above for every API (that may not have it) he'll get screwed over.

_________________
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