is this possible

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
Sean

is this possible

Post by Sean » Sat Dec 18, 2004 5:32 am

making a macro for a soliatare game game.. basically I need macro scheduler to get pixels colors at certains points to indetify the card, if those pixels are there then make the label the card whatever... is it possible to do this using macro scheduler? How could I? any quick examples?

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Sat Dec 18, 2004 6:06 am

Quick answer is YES.

See Help on GetPixelColor> and associated similar commands.
Also see Help on IF> command.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

marky

Post by marky » Mon Dec 20, 2004 3:40 pm

hey sean...its marky...why dont you look up GetRectCheckSum>...otherwise you will be doing about 4 gpc> to identtify 1 card..so you could waste your time with 206 GPC> or do it the easy way with 52 GetRectCheckSum>....i know you havent used that command yet...so here how to

GetRectCheckSum>x1,y1,x2,y2,variable ....obviously replce the x's and y's....the x,1,y,1 could be the top left of the number (or whole card) and x2 y2 could be the bottom right...so lets say this..

GetRectCHeckSum>333,444,555,222,8ofspades
message>%8ofspades%

^^^^the message tells you the number...so then take out the message> and put if>%8ofspades%=1234567,iman8ofspades

So heres the full example-------------------

GetRectCHeckSum>333,444,555,222,8ofspades
if>%8ofspades%=1234567,iman8ofspades

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