Help needed with advanced multi-checking script.

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
pilan67
Newbie
Posts: 4
Joined: Sun Sep 04, 2011 4:52 pm

Help needed with advanced multi-checking script.

Post by pilan67 » Sun Sep 04, 2011 5:09 pm

Hello! Im new on this forum so I'd like to introduce myself :smile:

My name is Michal. Im from Poland, (so Im very sorry for my bad English...)
I'm using MS for a loong time, but for simple things...

I have a big problem with one advanced script.
I need to create a multi "image recognition" or "pixel color" at specified coordinates checking script. :twisted:

I'll try explain at example...

If> at cord 0,0 there is color white -> goto If2
If2> at cord 100,100 there is color blue -> goto If3
If3> at cord 200,200 there is color green -> mousemove>100,100 and lclick...

I dont know how can I do that hard script :(

Please help me!
Greetings!

/Michal :)

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Sun Sep 04, 2011 6:37 pm

Looks like you want something like:

Code: Select all

GetPixelColor>0,0,result_color
If>result_color=WHITE
  GetPixelColor>100,100,result_color
  If>result_color=BLUE
    GetPixelColor>200,200,result_color
    If>result_color=GREEN
      MouseMove>100,100
      LClick
    Endif
  Endif
Endif
Replace WHITE, BLUE and GREEN with the color codes as returned by the cursor monitor.
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

pilan67
Newbie
Posts: 4
Joined: Sun Sep 04, 2011 4:52 pm

Post by pilan67 » Mon Sep 05, 2011 1:41 pm

Thanks a lot! Works great :)

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