Vicks Posted September 30, 2006 Share Posted September 30, 2006 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] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 30, 2006 Moderators Share Posted September 30, 2006 PixelSearch(XStart, YStart, XEnd, YEnd) should be all that you need. Post your script if you want more of an answer.http://www.autoitscript.com/forum/index.ph...st&id=10335 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. Link to comment Share on other sites More sharing options...
Vicks Posted September 30, 2006 Author Share Posted September 30, 2006 PixelSearch(XStart, YStart, XEnd, YEnd) should be all that you need. Post your script if you want more of an answer.http://www.autoitscript.com/forum/index.ph...st&id=10335i know smoke but my object that its looking for is 150 top and 100 top how can i tell it to look at both [s]Autoit[/s] Link to comment Share on other sites More sharing options...
cppman Posted September 30, 2006 Share Posted September 30, 2006 (edited) do 2 pixel search's? while 1 PixelSearch() ;your first area PixelSearch() ;your second area wend ??? i dont quite understand your question.. Edited September 30, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
Vicks Posted September 30, 2006 Author Share Posted September 30, 2006 do 2 pixel search's? while 1 PixelSearch() ;your first area PixelSearch() ;your second area wend ??? i dont quite understand your question..yea thats what i thoguht i shoul dof done but i though tit would glitch out [s]Autoit[/s] Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted September 30, 2006 Moderators Share Posted September 30, 2006 yea thats what i thoguht i shoul dof done but i though tit would glitch outIt 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. Link to comment Share on other sites More sharing options...
Vicks Posted October 1, 2006 Author Share Posted October 1, 2006 #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] Link to comment Share on other sites More sharing options...
Vicks Posted October 1, 2006 Author Share Posted October 1, 2006 Game how can i make my aimbot betterOpt("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] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now