Jump to content

Coordinate help please?


Recommended Posts

heres the code im working on, i am a noob so some the things i dont understand because not made by me :)

$SearchColorRed = 0xFF0000
$aimbot = 0

HotKeySet("{UP}", "Toggleaimbot")
While 1
If $aimbot = 1 Then
    $coord1 = PixelSearch( 227, 280, 1165, 791, $SearchColorRed, 2)
    If IsArray($coord1) = 1 Then
        MouseClick('left', $coord1[0], $coord1[1], 1, 0)
        Send ("{R}")
    EndIf
EndIf
WEnd

Func Toggleaimbot()
    If $aimbot < 1 Then
        $aimbot = $aimbot + 1
    Else
        $aimbot = 0
    EndIf
EndFunc

i used hypercam 2 capture the x and y. Posted Image can i do

$coordinates = PixelSearch(342, 206, 636, 400, 0xFF0000, "", "", $wgh)?
?
im trying to make the aimbot look in to to areas in the yellow boxes

Posted Image

Edited by myth146
Link to comment
Share on other sites

im trying to make an aimbot for this flash game called shooting gallery. the aimbot worked but it got distrated by the other pixels that look the same. my question is how can i make it search around this?

Did you try making it search within a long rectangular box only where the targets are moving in?

[font=Microsoft Sans Serif]My Scripts: From Most recent to least.[/font]Countdown GUI | QLOCK TWO | FlipClock | Slot Machine My UDF:_GenerateRandomNoRepeat | _GuiSnap

Link to comment
Share on other sites

but how though im new to this please help meh..

PixelSearch ( left, top, right, bottom, color [, shade-variation [, step [, hwnd]]] )

You can find the coordinates with MouseGetPos or the au3info tool.

You can find the colour with PixelGetColor.

The left, top coordinates should be just above the target and bottom, right just below.

Have fun.

Link to comment
Share on other sites

thanks but i have no clue what u said :)

btw i updated it now

Change this line

$coordinates = PixelSearch(320, 30, 420, 350, 0xFF0000, "", "", $wgh)

You need to change 320, 30, 420, 350 so they correspond to leftmost part of the screen, top of the target, rightmost part of the screen, bottom of the target

Link to comment
Share on other sites

Change this line

$coordinates = PixelSearch(320, 30, 420, 350, 0xFF0000, "", "", $wgh)

You need to change 320, 30, 420, 350 so they correspond to leftmost part of the screen, top of the target, rightmost part of the screen, bottom of the target

i used hypercam 2 capture the x and y. Posted Image can i do

$coordinates = PixelSearch(342, 206, 636, 400, 0xFF0000, "", "", $wgh)?
? Edited by myth146
Link to comment
Share on other sites

please wait 24 hours to bump a thread... and no i don't know

Link to comment
Share on other sites

i used hypercam 2 capture the x and y. Posted Image can i do

$coordinates = PixelSearch(342, 206, 636, 400, 0xFF0000, "", "", $wgh)?
?

We can't say for sure because you have used hypercam, and I don't know what that is. Try using Au3info, its in your autoit folder.

Link to comment
Share on other sites

  • 2 weeks later...

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...