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 


How to find what is hooked?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
phasex
How do I cheat?
Reputation: 0

Joined: 19 Jan 2011
Posts: 2

PostPosted: Wed Jan 19, 2011 11:34 pm    Post subject: How to find what is hooked? Reply with quote

Hi,

I have a game where I'm trying to create a crafting script. In the past the game allowed Autoit and AHK scripts to work. But now they have blocked any of the commands that deal with mousecursor movement and clicks. They however do not block hotkeys, as shoutbots are important in the community.

I have been able to get around this by using dllcalls to setcursorpos and postmessage. My troubles are that some of the in game menu's don't respond to click's using postmessage.

For example, when I craft something a new popup window will show either success or failure in game. I cannot click the Okay button using postmessage.

An interesting observation is that, when this popup window comes up, it is impossible to move the character via clicking, you must first click okay and then you can move the character again.

Now I'm wondering if there are any alternatives to postmessage? And if anyone has experience with AHK or AutoIt, how are the MouseMove / MouseClick's implemented?

Thanks
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Jan 20, 2011 12:09 am    Post subject: Reply with quote

SendInput()?

if that fails, you may need to use directinput scancodes instead.
Back to top
View user's profile Send private message
phasex
How do I cheat?
Reputation: 0

Joined: 19 Jan 2011
Posts: 2

PostPosted: Thu Jan 20, 2011 12:54 am    Post subject: Reply with quote

Hi thanks for the SendInput suggestion.

I've used

Code:
VarSetCapacity( mouseinput, 28, 0 )
NumPut( 0x0002, mouseinput, 16, "UInt" ) ; MOUSEEVENTF_LEFTDOWN = 0x0002
DllCall("SendInput", "UInt", 1, "UInt", &mouseinput, "Int", 28 )
sleep 200
NumPut( 0x0004, mouseinput, 16, "UInt" ) ; MOUSEEVENTF_LEFTUP = 0x0004
DllCall("SendInput", "UInt", 1, "UInt", &mouseinput, "Int", 28 )


in AHK, and it seems that SendInput is indeed blocked.

I'm quite new to this and I'm unfamiliar with DirectInput, could you explain what it is?

Since I know that SendInput is being blocked, is there a way to tell where it is hooked and what type of hook it is? i.e. function was overwritten with something that doesn't do anything.

I forgot to mention that once the game is running all SendInput do not work, not just for the game window.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25837
Location: The netherlands

PostPosted: Thu Jan 20, 2011 8:31 am    Post subject: Reply with quote

easiest way to bypass a hook is just copy the affected dll in memory before the game is loaded and adjust the function pointers in your program to use the copied version
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Thu Jan 20, 2011 9:29 am    Post subject: Reply with quote

Dark Byte wrote:
easiest way to bypass a hook is just copy the affected dll in memory before the game is loaded and adjust the function pointers in your program to use the copied version
What if the protection looks for copies of the dll/functions and also patches those? GG did that, didn't it? Solution was to load the dll after GG had loaded and then adjust the pointers.
Back to top
View user's profile Send private message
educofu
Expert Cheater
Reputation: 3

Joined: 21 Aug 2009
Posts: 171
Location: Brazil,MG,OP

PostPosted: Sun Jan 23, 2011 10:28 pm    Post subject: Reply with quote

i might want to try Process Explorer, it have some nice options for that.

_________________
"I finally started thinking outside of the box, only to find myself in a larger box."
Back to top
View user's profile Send private message MSN Messenger
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