In an MMORPG (Metin2) game, I need to click on certain places with the mouse, but the cheat protection prevents this. I can't even do this on the desktop when the game is open.
To be more specific, let's say I'm fishing in the game;
- While fishing, bait is attached to the fishing line by pressing the "1" button first.
- Then press the "space" button to shake the fishing rod.
- After a while, a fish icon appears on the character.
- When the fish icon appears, press the "space" button again to attract the fish.
- After a few repetitions, a question will appear on the screen to prove that you are not a bot. This question consists of 3 options, if you do not click on the right option, you will be kicked out of the game.
- This loop continues like this.
I can catch this fish with OpenCV, but as I said, anti-cheat prevents keys or any mouse clicks.
These clicks;
- Python Modules;
- PyAuotit (it didn't work)
- PyAutogui (it didn't work)
- AutoPy (it didn't work)
- PyNput (it didn't work)
- PyWinAuto (it didn't work)
- PyDirectinput (it didn't work)
- Win32con (it didn't work)
- MacroRecorder v2; (it didn't work)
- Autoit; (it didn't work)
- Corsair ICUE Software (it worked)
Yes, the ICUE software allows me to make keyboard inputs and mouse clicks, but it cannot integrate with python.
Is there any other way I can do keyboard inputs and mouse clicks with Python? Or can I run ICUE software integrated in languages such as python, c++?
There is an official python binding for the iCUE software
Installation:
Python:
Here's the API reference
You can use something like OpenCV to detect the events in game.