 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
phasex How do I cheat?
Reputation: 0
Joined: 19 Jan 2011 Posts: 2
|
Posted: Wed Jan 19, 2011 11:34 pm Post subject: How to find what is hooked? |
|
|
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 |
|
 |
hcavolsdsadgadsg I'm a spammer
Reputation: 26
Joined: 11 Jun 2007 Posts: 5801
|
Posted: Thu Jan 20, 2011 12:09 am Post subject: |
|
|
SendInput()?
if that fails, you may need to use directinput scancodes instead.
|
|
| Back to top |
|
 |
phasex How do I cheat?
Reputation: 0
Joined: 19 Jan 2011 Posts: 2
|
Posted: Thu Jan 20, 2011 12:54 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25837 Location: The netherlands
|
Posted: Thu Jan 20, 2011 8:31 am Post subject: |
|
|
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 |
|
 |
Jani Grandmaster Cheater
Reputation: 2
Joined: 29 Dec 2006 Posts: 804
|
Posted: Thu Jan 20, 2011 9:29 am Post subject: |
|
|
| 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 |
|
 |
educofu Expert Cheater
Reputation: 3
Joined: 21 Aug 2009 Posts: 171 Location: Brazil,MG,OP
|
|
| Back to top |
|
 |
|
|
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
|
|