acidfear Posted December 14, 2006 Posted December 14, 2006 Not sure if my last post went through on this subject because the site timed out, and I haven't found it yet if it did. Basically I made a working pixelsearch aimbot for condition zero from code I used on someones aimbot. I forgot the name. Sunical or something. Anyway, it runs fine but the problem is it uses 99% of my CPU. I changed the settings for pixelsearch to 2 to scan every other ppixel, but it still runs a lot of cpu usage. Are there ways of getting it down? Thanks.
Shyke Posted December 14, 2006 Posted December 14, 2006 Lower your resolution or don't scan your entire screen.
thenewkid Posted December 15, 2006 Posted December 15, 2006 or u can ues ProcessSetPriority some of my scripts check them out and give feedback so i can learn from them :)autoclicker a autoclickernote taker a script to take notes with
Uten Posted December 15, 2006 Posted December 15, 2006 Don't the game screen change constantly? If it does not you could do the obvious sleep(10). Othervice you have to show your algorithm. Or even better, search the forum as this topic is comming up like every week Please keep your sig. small! Use the help file. Search the forum. Then ask unresolved questions :) Script plugin demo, Simple Trace udf, TrayMenuEx udf, IOChatter demo, freebasic multithreaded dll sample, PostMessage, Aspell, Code profiling
acidfear Posted December 15, 2006 Author Posted December 15, 2006 (edited) I have been searching the forums. Heres my code: expandcollapse popup#Include <Misc.au3> HotKeySet("p","stop") while 1 $searchcolor = 0xD0272E sleep(2000) $found = "no" If $found = "no" Then $pos = MouseGetPos() $coord = PixelSearch(($pos[0] - 50) , ($pos[1] - 50) , ($pos[0] + 50) , ($pos[1] + 50), $searchcolor,3,2) ; initial search area 50sq'pixels If IsArray($coord) = 1 and _ispressed(01) = 1 Then Mousemove( $coord[0], $coord[1],0) $found = "yes" EndIf EndIf If $found = "yes" Then $pos = MouseGetPos() $coord = PixelSearch(($pos[0] - 10) , ($pos[1] - 10) , ($pos[0] + 10) , ($pos[1] + 10), $searchcolor,3,2) ; locked on search area 10sq'pixels If IsArray($coord) = 1 and _ispressed(01) = 1 Then Mousemove( $coord[0], $coord[1],0) Else $found = "no" EndIf EndIf WEnd func stop() exit EndFunc Edited December 15, 2006 by acidfear
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