Jump to content

Recommended Posts

Posted (edited)

Ok, need some help with an aimbot in progress.

Can someone provide a script that puts the cursor over hexcolor:646464 (R:100 G:100 B:100) when you left click?

Any help is GREATLY appreciated.

EDIT: Forgot to mention, also looking for a script that when it finds hexcolor: FF0000 (R:255) it left clicks. Again, any help is appreciated.

Edited by CookieCop
Posted

  CookieCop said:

Ok, need some help with an aimbot in progress.

Can someone provide a script that puts the cursor over hexcolor:646464 (R:100 G:100 B:100) when you left click?

Any help is GREATLY appreciated.

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    
If _IsPressed(" 01", $dll) Then
        $coord = PixelSearch( 0, 0, 800, 600, 646464, 5, 5 )
If Not @error Then
    MouseClick("Left", $coord[0],  $coord[1], 1, 3 )

        ExitLoop
    EndIf
WEnd
DllClose($dll)
Posted

  CookieCop said:

Ok, need some help with an aimbot in progress.

Can someone provide a script that puts the cursor over hexcolor:646464 (R:100 G:100 B:100) when you left click?

Any help is GREATLY appreciated.

#include <Misc.au3>

$dll = DllOpen("user32.dll")

While 1
    
If _IsPressed(" 01", $dll) Then
        $coord = PixelSearch( 0, 0, 800, 600, 646464, 5, 0 )
If Not @error Then
    MouseClick("Left", $coord[0],  $coord[1], 1, 3 )

        ExitLoop
    EndIf
WEnd
DllClose($dll)
Posted

  AzKay said:

Oh, and you dont need the dllcalls there.

#include <Misc.au3>

While 1
    
If _IsPressed("01") Then 
$coord = PixelSearch(0, 0, 800, 600, 0x646464)
If Not @error Then
    MouseClick("Left", $coord[0],  $coord[1], 1, 1)
    ExitLoop
EndIf
EndIf
WEnd
Already did that, but thanks for telling me about the dllcalls.

Anyone have an idea how to do the second script? (Script that when it finds hexcolor: FF0000 (R:255) it left clicks.)

Posted (edited)

#include <Misc.au3>

While 1
   
If _IsPressed("01") Then
$coord = PixelSearch(0, 0, 800, 600, 0x646464)
If Not @error Then
    MouseClick("Left", $coord[0],  $coord[1], 1, 1)
    $coord2 = PixelSearch(0, 0, 800, 600, 0xFF0000)
    If Not @error Then
         MouseClick("Left", $coord2[0], $coord2[1], 1, 1)
         ExitLoop
    EndIf
EndIf
EndIf
WEnd

Edited by AzKay
# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Posted (edited)

  AzKay said:

#include <Misc.au3>

While 1
   
If _IsPressed("01") Then
$coord = PixelSearch(0, 0, 800, 600, 0x646464)
If Not @error Then
    MouseClick("Left", $coord[0],  $coord[1], 1, 1)
    $coord2 = PixelSearch(0, 0, 800, 600, 0xFF0000)
    If Not @error Then
         MouseClick("Left", $coord2[0], $coord2[1], 1, 1)
         ExitLoop
    EndIf
EndIf
EndIf
WEnd
Err, you misunderstood. =)

This second script has no relation to the previous one, completely separate.

Script Function: When FF0000 is found, script left clicks. (When crosshair turns red, script left clicks)

(Other Topic: Is there any way so that when a script finds an image, it left clicks? If possible please reply)

Edited by CookieCop
Posted

Well, it should be the same as the last script, just replace the 0x646464 to 0xFF0000

# MY LOVE FOR YOU... IS LIKE A TRUCK- #
Posted (edited)

You could make a search for analizer.dll, it should be what you need if you need to look for a picture.

EDIT: http://www.autoitscript.com/forum/index.ph...hl=analizer.dll

Edited by Vivvic

[quote name='DaleHohm']You have a strange habit of posting error messages that don't match your code.[/quote][quote name='SmOke_N']Forget the learning... straight to the scripting :lol: (laugh.gif)[/quote]

Posted (edited)

  AzKay said:

Well, it should be the same as the last script, just replace the 0x646464 to 0xFF0000

You still have the wrong idea. =)

The first script (The one with the color 646464) is a script that when you left click, it moves to 646464.

This second script, is a script that when it finds FF0000 (The crosshair turns red) that's when it left clicks.

Hopefully you understand now. :)

  Vivvic said:

You could make a search for analizer.dll, it should be what you need if you need to look for a picture.

EDIT: http://www.autoitscript.com/forum/index.ph...hl=analizer.dll

Err, that's kinda what I need. But too complicated in my opinion.

I'm thinking just a short, simple script that left clicks when it finds FF0000/when the crosshair turns red.

Edited by CookieCop
Posted (edited)

Ok, so I decided to try and write the 2nd script again.

While 1
    
$coord = PixelSearch( 0, 0, 30, 30, 0xFF0000 )
If Not @error Then
    MouseClick("Left")
EndIf

WEnd

I did that. It works perfectly when I set it to $coord = PixelSearch( 0, 0, 800, 600, 0xFF0000 ). But, I don't want it scan the whole screen.. I want it to scan something like a 30 x 30 pixel square around the CENTRE of the screen. (If the resolution is of any relevance my setting is 800 x 600)

Any help is appreciated.

Edited by CookieCop
Posted (edited)

  darkshadow791 said:

While 1
   
$coord = PixelSearch( (@DesktopWidth / 2) - 30, (@DesktopHeight / 2) + 30, (@DesktopWidth / 2) + 30, (@DesktopHeight / 2) - 30, 0xFF0000 )
If Not @error Then
    MouseClick("Left", $coord[0], $coord[1])
EndIf

WEnd
Maybe it's just me, but I can't get that to work. I'll play around with it for a bit and see if I can get it working.

EDIT: Did a few experiments with those settings, doesn't work for me.

$coord = PixelSearch( 0, 0, 0, 0, 0xFF0000 ) is the setting that works for me, can someone edit that line so that it searchs a 30 x 30 pixel square around the center of the screen please? I've been trying and trying but can't figure it out.

(I also just changed my resolution to 1024 x 768, but I don't think that should be causing any problems with the script that darkshadow791 provided because I also tried it with 800 x 600 resolution.)

Edited by CookieCop
Posted (edited)

$xx = @DesktopWidth / 2
$yy = @DesktopHeight / 2

While 1

$coord = PixelSearch( $xx - 30, $yy + 30, $xx + 30, $yy - 30, 0xFF0000 )
If Not @error Then
    MouseClick("Left", $coord[0], $coord[1])
EndIf

WEndoÝ÷ ØêÚºÚ"µÍÌÍÞHÚÝÜÚYÈÌÍÞ^HHÚÝÜZYÚÈÚ[HBÌÍØÛÛÜH^[ÙXÚ
    ÌÍÞHÌ   ÌÍÞ^H
ÈÌ    ÌÍÞ
ÈÌ    ÌÍÞ^HHÌMH
BYÐ^J  ÌÍØÛÛÜ
H[[ÝÙPÛXÚÊ ][ÝÓY ][ÝË  ÌÍØÛÛÜÌK ÌÍØÛÛÜÌWJB[YÑ[

Edited by darkshadow791
Posted (edited)

  darkshadow791 said:

$xx = @DesktopWidth / 2
$yy = @DesktopHeight / 2

While 1

$coord = PixelSearch( $xx - 30, $yy + 30, $xx + 30, $yy - 30, 0xFF0000 )
If Not @error Then
    MouseClick("Left", $coord[0], $coord[1])
EndIf

WEndoÝ÷ ØêÚºÚ"µÍÌÍÞHÚÝÜÚYÈÌÍÞ^HHÚÝÜZYÚÈÚ[HBÌÍØÛÛÜH^[ÙXÚ
    ÌÍÞHÌ   ÌÍÞ^H
ÈÌ    ÌÍÞ
ÈÌ    ÌÍÞ^HHÌMH
BYÐ^J  ÌÍØÛÛÜ
H[[ÝÙPÛXÚÊ ][ÝÓY ][ÝË  ÌÍØÛÛÜÌK ÌÍØÛÛÜÌWJB[YÑ[
Thanks, testing now. Will edit with how it went.

EDIT: Alright, it didn't work. So after all this trial and error, I've decided to just change the color of the crosshair to bright purple (A color hardly used in the game) and make the script scan the whole screen of that color.

Edited by CookieCop

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
  • Recently Browsing   0 members

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