Jump to content

Recommended Posts

Posted

hi i need help with PixelSearch i got it working but theres a little problem

ok say my top is 150

and the object is moving with in 150 and 100 how can i tell it to look for both of them

for example

============= ; heres 150 so my PixelSearch is looking here

============= ; but i also want it to look down here

[s]Autoit[/s]
  • Moderators
Posted

yea thats what i thoguht i shoul dof done but i though tit would glitch out

It will glitch out if you leave it like that, and by "glitch" out, I mean you won't know where you found what you were looking for, if it's conditional that it searches the 2nd area, make sure you code it like that, also remembering to @error check both situations.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Posted

#include <GuiConstants.au3>
Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)
Opt("MouseClickDelay",0)
Opt("MouseClickDownDelay",0)
HotKeySet("{SPACE}" , "Shoot")
HotKeySet("{ESCAPE}" , "_Exit")
 
 While 1
     Sleep(0)
     WEnd
 
 Func Shoot()
 While 1
$coord = PixelSearch(355 ,  180 , 905 ,  228 , 0xFF0000)
If IsArray($coord) = 1 Then
MouseMove($coord[0],$coord[1],0)
MouseClick('left')
EndIf
;;;;;;;;;;;;;;;;;;;;;
$coord = PixelSearch(355 ,  195 , 905 ,  228 , 0xFF0000)
If IsArray($coord) = 1 Then
MouseMove($coord[0],$coord[1],0)
MouseClick('left')
EndIf


WEnd
EndFunc
    
    Func _Exit()
        Exit
    EndFunc

well here it is

[s]Autoit[/s]
Posted

Game how can i make my aimbot better

Opt("MouseCoordMode", 0)
Opt("PixelCoordMode", 0)
Opt("MouseClickDelay",0)
Opt("MouseClickDownDelay",0)
HotKeySet("{SPACE}" , "Shoot")
HotKeySet("{ESCAPE}" , "_Exit")
 
 While 1
     Sleep(0)
     WEnd
 
 Func Shoot()
 While 1
$coord = PixelSearch(800 ,  200 , 905 ,  228 , 0xFF0000)   ;200
If IsArray($coord) = 1 Then
MouseMove($coord[0],$coord[1],0)
MouseClick('left')
EndIf
;;;;;;;;;;;;;;;;;;;;;
;$coord = PixelSearch(800 ,  210 , 905 ,  228 , 0xFF0000) ;225
;If IsArray($coord) = 1 Then
;MouseMove($coord[0],$coord[1],0)
;MouseClick('left')
;EndIf
WEnd
EndFunc
    
    Func _Exit()
        Exit
    EndFunc
[s]Autoit[/s]

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...