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?
color sting
Moderators: Dorian (MJT support), JRL
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.
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