Getpixelcolor help

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
bobby43
Newbie
Posts: 1
Joined: Mon Nov 14, 2016 10:57 am

Getpixelcolor help

Post by bobby43 » Wed Nov 30, 2016 9:50 am

Hi there, trialling this nifty software for a specific purpose using getpixelcolor and I think I may have jumped into the deepened straight up unfortunately. I've installed on three different computers and can't seem to get any of them to use this extension. I've got the file in the right place after a couple failed attempts, I've tried searching for the white program background color, number shown with the drop down box in the corner after I couldn't find the red I was looking for. (Figure more pixels the better)

Using the example script, the first screen search one seems to crash the program(not responding), the second window specific one seems to scan but doesn't register finding the color I'm looking for.

Is there any further documentation for this function? A forum search only yields a few posts unfortunately.

Thanks for any help available in advance

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

Re: Getpixelcolor help

Post by Marcus Tettmar » Mon Dec 05, 2016 8:56 am

GetPixelColor is pretty simple. It takes an X,Y position and returns the colour at that point:

GetPixelColor>100,250,theColour
MessageModal>The Colour is %theColour%

See:
https://www.mjtnet.com/manual/getpixelcolor.htm
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

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

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