Jump to content
Sign in to follow this  
demandnothing

need help with point and click script

Recommended Posts

demandnothing

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

Share this post


Link to post
Share on other sites
demandnothing

#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

Share this post


Link to post
Share on other sites
demandnothing

like hack prevention?? it has HackShield

Share this post


Link to post
Share on other sites
demandnothing

why does the edit button go away??

anyway what i was going to add is that the nProtect issue isnt actually an issue, there is a bypass

Share this post


Link to post
Share on other sites
demandnothing

thanks for that.. now i just need to know how to make my mouse click and hold while the target pixel is in range

Share this post


Link to post
Share on other sites
demandnothing

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

Share this post


Link to post
Share on other sites
Piyush

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]

Share this post


Link to post
Share on other sites
demandnothing

thanks.. i was missing that,, anything else?

Share this post


Link to post
Share on other sites
demandnothing

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

Share this post


Link to post
Share on other sites
Piyush

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]

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.