Page 2 of 2

Re: How to Make AHK Work in Most Games - The Basics

Posted: 09 Jun 2020, 14:46
by go1
I want to give a tip here of what i saw,experienced and warned others off.
If you ever use ControlClick or ControlSend for background botting and up on tests you catch that your controlclick clicks invisible windows inside the game(only borders of invisible windows inside the game are shown[visible]) or controlsend does wanky stuff THEN IMMEDIATELY STOP USING IT because your game's anti-cheat is gonna catch you.
Conquer Online 3.0 uses the invisible window control click catching in their anti-cheat.

Re: How to Make AHK Work in Most Games - The Basics

Posted: 26 Mar 2021, 16:59
by Ruevil2
Updated: 3-26-2021

Re: How to Make AHK Work in Most Games - The Basics

Posted: 22 May 2022, 19:34
by cyrexsef
Anything for tekken?

Re: How to Make AHK Work in Most Games - The Basics

Posted: 24 Jun 2022, 12:53
by williams
Any lib recommendations ?

Re: How to Make AHK Work in Most Games - The Basics

Posted: 19 Jul 2022, 00:35
by earlbond84
How about using Imageputbuffer, Imagesearch & Pixel Search?

https://github.com/iseahound/ImagePut


[Mod edit: Removed spam link]

Re: How to Make AHK Work in Most Games - The Basics

Posted: 06 Nov 2022, 10:48
by surok
Can somebody clarify what "rehooking" means in the fourth step?
4) Some games do not allow their keybinds to be 'hijacked'.
-Explanation: Many games, especially DirectX driven, use driver level keyboard interaction and cannot be
changed via AHK. You need to choose keybindings that the game is NOT using, some people have had
success by changing the in-game keybinds so that those keys are 'free' for AHK to use. Sometimes this
can be overcome by constantly rehooking the keyboard and mouse
. An indicator that this is the case is
that the keys work once or 'for a while' and then stop working completely.

Re: How to Make AHK Work in Most Games - The Basics

Posted: 23 Jan 2023, 11:54
by Ruevil2
surok wrote:
06 Nov 2022, 10:48
Can somebody clarify what "rehooking" means in the fourth step?
4) Some games do not allow their keybinds to be 'hijacked'.
-Explanation: Many games, especially DirectX driven, use driver level keyboard interaction and cannot be
changed via AHK. You need to choose keybindings that the game is NOT using, some people have had
success by changing the in-game keybinds so that those keys are 'free' for AHK to use. Sometimes this
can be overcome by constantly rehooking the keyboard and mouse
. An indicator that this is the case is
that the keys work once or 'for a while' and then stop working completely.
Very few games will regularly re-run the keyboard hooking procedure in order to keep themselves in the top priority position.
The only one I have encountered that does this is South Park: Stick of Truth. If this is happening then scripts will work for a
short period of time and then stop working entirely all of the sudden. Restarting the script fixes the hotkeys again until
the game rehooks again and kills the script again. To overcome this you can typically use a Timer to continuously rerun
the #KeyboardHook command. I have added an example to the main post to describe how this is done but it is pretty easy.