Sign in to follow this  
Followers 0
glix

can't get pixel color from window

11 posts in this topic

im making a bot that simply clicks on a designated color, but as soon as the mouse moves into the game window, the game mouse comes up and blocks whatever im going to click on with the color of the mouse, any ideas?

Share this post


Link to post
Share on other sites



there is probably a block on the GameGuard. You cannot automate the game.


The cake is a lie.www.theguy0000.com is currentlyUP images.theguy0000.com is currentlyUP all other *.theguy0000.com sites are DOWN

Share this post


Link to post
Share on other sites

there is no gameguard or any form of protection really

Share this post


Link to post
Share on other sites

is there anyway i can offset the actual mouse position from what the cursor is pointed to, by say one pixel?

Share this post


Link to post
Share on other sites

You mean that the mouse from windows and the game mouse are not on the same position right? Happened to me when I was trying to modify a WoW bot...

Try this... But change World of Warcraft to whatever game you are using...

WinSetState("World of Warcraft", "", @SW_MAXIMIZE)

I am a autoit noob, so I dont really know, just my guess...

Share this post


Link to post
Share on other sites

im making a bot that simply clicks on a designated color, but as soon as the mouse moves into the game window, the game mouse comes up and blocks whatever im going to click on with the color of the mouse, any ideas?

If you already have the coordinates, you don't need to see the color anymore to do mouseclick(). MouseMove() out of the area you are interested in to search for the color, then MouseClick() on the coordinates found.

Hope that helps...

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

This is an aimbot I assume? You can make a pixelsearch around your mouse (script it somewhere... I think its in the CS2 aimbot thread) It does not automaticly aim, but it clicks to their head as soon as you get close...

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Func Game_Bot()

$coord = PixelSearch (0, 36, 619, 335, 0xDEFFFF)

If Not @error Then

MouseClick("Right", $coord[0], $coord[1])

Sleep (2000)

Endif

EndFunc

if the mouse is in the way it returns the value of the cursor rather than the pixel i really want, and it must auto move.

Edited by glix

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Func Game_Bot()

$coord = PixelSearch (0, 36, 619, 335, 0xDEFFFF)

If Not @error Then

MouseClick("Right", $coord[0], $coord[1])

Sleep (2000)

Endif

EndFunc

if the mouse is in the way it returns the value of the cursor rather than the pixel i really want, and it must auto move.

How about:

Func Game_Bot()
    ; Save current mouse pos and move out of the way
    Local $avMousePos = MouseGetPos()
    MouseMove($avMousePos[0], 340, 0)

    $coord = PixelSearch (0, 36, 619, 335,  0xDEFFFF)   
    If Not @error Then
        MouseClick("Right", $coord[0],  $coord[1])
        Sleep (2000)
    Endif

    ; Restore mouse pos
    MouseMove($avMousePos[0], $avMousePos[1], 0)
EndFunc

:)

Edited by PsaltyDS

Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

thanks works fine now

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0