Jump to content

need help with point and click script


Recommended Posts

this should be an easy one for you experienced people here.. all i want to do is write a script that moves your mouse to a certain color and clicks on that color.. but i dont want it to just click i want it to click and hold until the color is no longer visible.. yes, i want to make an aimbot for an online FPS

any help for me? any links i should look at? anything?

Edited by demandnothing
Link to comment
Share on other sites

#Region --- CodeWizard generated code Start ---
;MsgBox features: Title=Yes, Text=Yes, Buttons=OK, Icon=Info
MsgBox(64,"AimBot","Thx For Leeching")
#EndRegion --- CodeWizard generated code End ---

this is what i got so far lol.. and sorry for the double post, but the Edit button disappeared on me.. dunno how or why but i edited once and it wont let me again

Link to comment
Share on other sites

HotKeySet( "(f3)", "chosecolor")
HotKeySet( "(ESC)", "_exit")
HotKeySet( "(f4)", "start")
HotKeySet( "(f5)", "stop")


Global $color

Global $ON = False

While 1
Sleep(30)
    If $ON = True Then
        $coord = PixelSearch(0, 0, 0, 0, 0xFFFFFF, 0)
        If IsArray($coord) = 1 Then
            MouseMove($coord[0],$coord[1])
            MouseClick("left",$coord[0],$coord[1])
        EndIf
    EndIf
WEnd

Func chosecolor()
    $color = _ChooseColor(2, 0x0080C0, 2, "")
EndFunc

Func _exit()
    Exit
EndFunc

Func start()
    $ON = True
EndFunc

this is what i got from a tutorial i found.. i figured i could use it and edit it to my specs.. but when i compile into a .exe it gives the error

"C:\Program Files\AutoIt3\aim.au3(28,42) : ERROR: _ChooseColor(): undefined function.

$color = _ChooseColor(2, 0x0080C0, 2, "")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\aim.au3 - 1 error(s), 0 warning(s)"

what did i miss? cuz i follow the tutorial exactly

Link to comment
Share on other sites

HotKeySet( "(f3)", "chosecolor")
HotKeySet( "(ESC)", "_exit")
HotKeySet( "(f4)", "start")
HotKeySet( "(f5)", "stop")


Global $color

Global $ON = False

While 1
Sleep(30)
    If $ON = True Then
        $coord = PixelSearch(0, 0, 0, 0, 0xFFFFFF, 0)
        If IsArray($coord) = 1 Then
            MouseMove($coord[0],$coord[1])
            MouseClick("left",$coord[0],$coord[1])
        EndIf
    EndIf
WEnd

Func chosecolor()
    $color = _ChooseColor(2, 0x0080C0, 2, "")
EndFunc

Func _exit()
    Exit
EndFunc

Func start()
    $ON = True
EndFunc

this is what i got from a tutorial i found.. i figured i could use it and edit it to my specs.. but when i compile into a .exe it gives the error

"C:\Program Files\AutoIt3\aim.au3(28,42) : ERROR: _ChooseColor(): undefined function.

$color = _ChooseColor(2, 0x0080C0, 2, "")

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^

C:\Program Files\AutoIt3\aim.au3 - 1 error(s), 0 warning(s)"

what did i miss? cuz i follow the tutorial exactly

May be you are missing this:#Include <Misc.au3>

[font="Comic Sans MS"][size="7"]Piyush.....[/size][/font][font="Palatino Linotype"][size="2"]Some Of My Scripts...Cool Font Generator Train Searcher and Tracer[/size][/font]

Link to comment
Share on other sites

ok well that worked.. i compiled it to a .exe and ran it, looked nice, but it didnt work.. what parameters should be in the pixelsearch for full screen? my desktop resolution is 1152x864, but i read that 50, 50, 100, 100 would do full screen but thats not working either

Link to comment
Share on other sites

ok well that worked.. i compiled it to a .exe and ran it, looked nice, but it didnt work.. what parameters should be in the pixelsearch for full screen? my desktop resolution is 1152x864, but i read that 50, 50, 100, 100 would do full screen but thats not working either

HotKeySet( "{f3}", "chosecolor")
HotKeySet( "{ESC}", "_exit")
HotKeySet( "{f4}", "start")
HotKeySet( "{f5}", "stop")
#include<Misc.au3>

Global $color

Global $ON = False

While 1
Sleep(500)
    If $ON = True Then
        $coord = PixelSearch(0, 0, @DesktopWidth, @DesktopHeight, $color, 0)
        if @error then 
            MsgBox(0,"Error","Not found")
            $ON = False
        EndIf
        
        If IsArray($coord) = 1 Then
            MouseMove($coord[0],$coord[1])
            MouseClick("left",$coord[0],$coord[1])
        EndIf
    EndIf
WEnd

Func chosecolor()
    $color = _ChooseColor(2, 0x0080C0, 2, "")
EndFunc

Func _exit()
    Exit
EndFunc

Func start()
    $ON = True
EndFunc

Func stop()
    $ON = False
EndFunc

Try this

You made quite mistakes like Special should be used in these {} and stop function was missing and you provided wrong rectangle coordinates... and Let me know if it is not working..

[font="Comic Sans MS"][size="7"]Piyush.....[/size][/font][font="Palatino Linotype"][size="2"]Some Of My Scripts...Cool Font Generator Train Searcher and Tracer[/size][/font]

Link to comment
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
 Share

  • Recently Browsing   0 members

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