Sign in to follow this  
Followers 0
dirtyOglum

Simple

2 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Guest
This topic is now closed to further replies.
Sign in to follow this  
Followers 0