Jump to content

Recommended Posts

Hi @ all, i am new to this forum and beginner in scripting. I already created some simple stuff in the past, but forgot the most of it. :)

At the moment i was working on this simple script and would like to ask for a little bit of help.

It is a simple PixelGetColor query with a subsequent action if the color has changed. I tried different modifications but its not working. Would be greatfull if somebody could give a hand , thanks

HotKeySet("{ESC}", "StopBot")
Tooltip ("ESC= Stop", 1140, 540,"Hotkeys")
While 1
  Sleep(5000)
WEnd

$pix=PixelGetColor(1057,719)
$quit=False
Do
  
sleep(500);check every half a second
$pix2=PixelGetColor(1057,719)
if $pix <> $pix2 then
sleep(Random(500,900,1)
Send( "{q}" )
$pix=PixelGetColor(1057,719)
EndIf
until $quit=true
func quit()
    $quit=True
EndFunc
Func StopBot()
Exit 0
EndFunc
Edited by dirtyOglum
Link to post
Share on other sites
  • Developers

Welcome, Make sure you read the forum rules before we continue here because the clearly is a Game related bot.

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...