Jump to content
Sign in to follow this  
dirtyOglum

Simple

Recommended Posts

dirtyOglum

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
Jos

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


Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×