Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 03:44

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



_WinAPI_PostMessage prevented by anti bot detection

Discussion on _WinAPI_PostMessage prevented by anti bot detection within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
Finch's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 23
Received Thanks: 2
_WinAPI_PostMessage prevented by anti bot detection

Recently I'm working on simple bot for a 5095 conquer in AutoIt3.


I noticed that I'm being jail banned for using the bot when using postMessage() and If I use MouseClick() it is not detected. I was sending them to exactly the same position and timing inbetween clicks was identical.

I found some information about `LLMHF_LOWER_IL_INJECTED` and `LLMHF_INJECTED` in `_WinAPI_setWindowsHookEx`, but I have no idea how to modify this values for PostMessage.

Here is the code:

Code:
; bot ban
    _WinAPI_PostMessage($hWndControl, $WM_LBUTTONDOWN, $MK_LBUTTON, $lParam)
    Sleep($currentSleep) ; randomized time
    _WinAPI_PostMessage($hWndControl, $WM_LBUTTONUP, 0, $lParam)

;no bot ban
    MouseClick($MOUSE_CLICK_LEFT, $xCordClick, $yCordClick)
What I need to do to send a PostMessage that is indistinguishable from real mouse click?
Maybe there is some other way around to avoid being sent to bot jail?
Finch is offline  
Old 02/24/2024, 05:17   #2
 
elite*gold: 0
Join Date: Mar 2005
Posts: 23
Received Thanks: 8
Hey,

I don't know if you figured it out but here's how I remove the Injected flag from my spoofed keys.

At the top of my keyboard hook I have this to reset the flag on keydown event:

Code:
Case $WM_KEYDOWN, $WM_SYSKEYDOWN
            If BitAND($flags, $LLKHF_INJECTED) Then
                $flags = BitAND($flags, BitNOT($LLKHF_INJECTED))
            EndIf
Touch Of Dead is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
NW\Automatic acquisition robot\Anti-detection, anti-scan, anti-read
11/03/2021 - New World - 4 Replies
Gathering function: a variety of collection mode optional! The most common price! Single-line automatic warehouse collection, double-line automatic warehouse collection, multi-line automatic warehouse collection, automatic repair mining equipment, fixed warehouse collection, one-stop warehouse collection, city fast running map, intelligent error correction correction, self-write drive YouTube:https://youtu.be/dXOxhctLQBU Download address:https://wws.lanzoui.com/s/newworldC J ...
Question about _WinAPI_PostMessage!
04/07/2019 - AutoIt - 1 Replies
Can anyone tell me if there is a way to make postmessage *Using mouseclicks* To click on coordinates returned from PixelSearch function ? I tried to do this like that but its not working actually cause w Param and LParam is not correct Here is a little part of the code ;) $GoldLoot = FFNearestSpot(10, 1, $PlayerPosX, $PlayerPosY, $GoldColor, 5) If Not (@error) Then
Problem _WinApi_PostMessage()
08/16/2015 - AutoIt - 1 Replies
Hi to all, I've a problem with post message function. I want to simulate a mouse click on a window: ;Mousemove _WinAPI_PostMessage ($BGAPI_HWND, 0x200, $x, $y) ;Mousedown _WinAPI_PostMessage ($BGAPI_HWND, 0x201,$x, $y) ;Mouseup _WinAPI_PostMessage ($BGAPI_HWND, 0x202, $x, $y)



All times are GMT +1. The time now is 03:46.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.