Sign in to follow this  
Followers 0
myth146

Coordinate help please?

15 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

no..

Share this post


Link to post
Share on other sites

no..

Then try it. It should work just fine.

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

thanks but i have no clue what u said :)

btw i updated it now

Edited by myth146

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites

#10 ·  Posted

anyone?

Share this post


Link to post
Share on other sites

#11 ·  Posted

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

Share this post


Link to post
Share on other sites

#12 ·  Posted

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.

Share this post


Link to post
Share on other sites

#13 ·  Posted

thanks gonna try now

Share this post


Link to post
Share on other sites

#14 ·  Posted

thank you Qousio for all your help works perfectly

Share this post


Link to post
Share on other sites

thank you Qousio for all your help works perfectly

can u pls upload it onto zshare or megaupload and post the link. or just send me the link in a message.

thanks

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