SRL Archive - OSR Help

How to do thi?


mastah

2012-01-26 13:42:26

Hi,

How you say something like this in pascal:

if color at place (x,y) is green then …
click tree

and

if bitmap is similar to bitmap on (x,y) then …
click axe

Thanks in advance!

Sin

2012-01-26 13:45:57


Mouse(x,y,0,0,True); //True for right click, False for left click

mastah

2012-01-26 13:49:26

From: S1N

Mouse(x,y,0,0,True); //True for right click, False for left click


This is only the area to click but I need it to
if this area is color green then
do something

Sin

2012-01-26 13:51:53


if FindObjCustom[your shit in here] then
begin
Mouse(x,y,0,0,True);
end;

hamster31

2012-01-26 13:54:57

You could also use findobjTPA as well..good functions both of them

Also YoHoJo, also has a great tut about it as well

mastah

2012-01-26 13:57:31

Thanks!