color sting

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
boomstam
Newbie
Posts: 1
Joined: Tue Dec 19, 2006 8:04 pm

color sting

Post by boomstam » Tue Dec 19, 2006 8:08 pm

i made a script that doenst work

*label>start
*wait>0.1
*GetPixelColor>100,535,food
*if>food=51183klik
*label>klik
*press esc
*wait 0.1
*lcl
*wait>0.1
*goto>start

why doenst this work?

User avatar
JRL
Automation Wizard
Posts: 3526
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Thu Dec 21, 2006 2:16 pm

It doesn't work because you have many syntax errors. If you want to write scripts there are many examples on this forum that you can study and learn from. A better place to start is Macro Scheduler help. There are very good sample scripts there also.

Here is your script repaired. I can't say it will "work" because I don't know what you are trying to accomplish. I can say it will run. I would like to point out that it will run in a continuous runaway loop until you kill it by either pressing Shift+Esc or picking the stop sign icon if you have the editor or Macro Scheduler's main window open.

Code: Select all

label>start
wait>0.1
GetPixelColor>100,535,food
if>food=51183
  Goto> start
else>
  Goto>klik
Endif
label>klik
press esc
wait 0.1
lcl
wait>0.1
goto>start

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts