Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > AutoIt
You last visited: Today at 20:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



autoit pixelsearch help

Discussion on autoit pixelsearch help within the AutoIt forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2013
Posts: 1
Received Thanks: 0
autoit pixelsearch help

Hi im new here and slowly learning the language.

well here is my problem

PHP Code:
HotKeySet("{ESC}""Terminate")
HotKeySet("!c""getColor")
HotKeySet("!a""attackLoop")

Global 
$color
Global $interval
$interval 
"10000"

MsgBox(0"Starting Up""Starting, use ESCAPE to quit, Alt + C to set color, and Alt + A to attack.")

Func Terminate()
   Exit 
1
EndFunc

Func getColor
()
   
$point MouseGetPos()
   
$color PixelGetColor($point[0], $point[1])
   
MsgBox(0"Color Set""The color has been set to " $color)
EndFunc

Func attackLoop
()   
   While 
1
          $point 
PixelSearch(601571772759$color,10)
          if 
IsArray($pointThen
                 MouseClick
("left"$point[0], $point[1])
                 
Sleep($interval)
          EndIf
          
Sleep(50)
   
WEnd
EndFunc

While 1
   sleep
(250)
WEnd 
This is made to find the pixel that is chosen by the function getColor and it does what I want like finding the pixel(well still not sure on how to put shading variation) but im lost on what to do to make it do mouseclick RIGHT whenever the pixel is not available and can I limit the search to a smaller screen? say 800x600 just wanted to know if thats possible.

Hope to hear from you guys

thanks
archeart is offline  
Reply


Similar Threads Similar Threads
PixelSearch AutoIt !
10/19/2010 - AutoIt - 4 Replies
Hallo ich bräuchte rat ;) Ich bin noch Anfänger und kenne mich noch nicht so gut aus mit AutoIt Ich hab mal was ganz einfaches versucht unswar hier: http://img5.imagebanana.com/img/p3jwgsng/thumb/Pr oblem.png Ich Wollte das der bot einfach das start zeichen in der leiste findet Wie hier im bild rot makiert ist.
[AutoIt] PixelSearch Tut
06/22/2010 - AutoIt - 8 Replies
Hallo, Mir ist aufgefallen dass die meisten nicht wissen wie man bestimmte Objekt mit Autoit sucht Die "Grundgedanken": Wenn ein Pixel mit einer bestimmten Eigenschaft(z:B Pixelfarbe) in einen betimmten Bereich auftaucht dann bewegt der Bot sich da hin :D So gehts: Hier erstmal die Variable mit der der Pixel festgelegt wird.
[AutoIt] Pixelsearch
02/03/2009 - General Coding - 3 Replies
Hallo Leute, Ich hab mir vor kurzem ein Angelbot mit einer Pixelsearchfunktion gemacht, nur das Problem ist, dass ich nicht weis was ich schreiben soll nachdem er den Pixelsearch nach dem Pixel gemacht hat. Also dass er dann die Angel rauszieht: ... While (1) $Fischblase = PixelSearch(518, 198, 520, 200, 0xFCF8FB) If ??? Then sleep ( 2500 ) Send ( "{F4 down}" , 0 )
autoit Pixelsearch?
10/24/2008 - Guild Wars - 7 Replies
Hy ich versuche mir auch einmal nen Bot zu machen, bin aber eher ein Anfänger. Deswegen brauche ich ma Hilfe!! Mir geht es jetzt darum dass der Bot rauslaufen soll bzw. dass er etwas schreibt sobald er eine bestimmte Farbe in einem feld erkennt! (das er was schreiben soll habe ich geschrieben um erstma nur das zu kappieren. Wenn ich das hinkriege das er dann halt eienen Pixel erkennt, weiß ich den rest selber^^) das habe ich geschrieben: sleep (2000) send ("v") send...



All times are GMT +1. The time now is 20:43.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.