SRL Archive - OSR Help

Find new/moving pixels


Main

2010-04-22 05:15:00

I've been trying to find a way to scan the main screen for new/moving colors. Can any one post a suggestion or a procedure?

Home

2010-04-22 05:55:40

Hey, you should try these :

// * function PixelShiftMulti(B: TBoxArray; T: Integer): TIntegerArray; // * by marpis
// * function PixelShift(B: TBox; Time: Integer): Integer; // * by marpis
// * function AnimatingMulti(B: TBoxArray; Time, MinCount: Integer): TBooleanArray; /

Those can be found in:
\Includes\SRL\SRL\core


~Home

( :

Main

2010-04-22 06:07:19

Whoa, didn't knew there was a animation.scar :)

How can I implement this as tpoints? Because it just counts moving pixels.

Home

2010-04-22 06:20:18

From: Main_Ftw
Whoa, didn't knew there was a animation.scar :)

How can I implement this as tpoints? Because it just counts moving pixels.


Sorry, i don't know. But i think your must just convert the count as X,y location and then to TPoint.. Sorry if i can't help : /


~Home

Main

2010-04-22 07:14:07

How can I do that? It doesn't give me coords of the changing pixel.

Awkwardsaw

2010-04-22 09:09:25

edit the functions in your own script, :)

HyperSecret

2010-04-22 09:46:41

Or when you set your TBox just make it a TPoint by making if have the same x1 and x2 coord and y1 and y2 coord. That might not work though because iirc it searches within that TBox for a certain number of pixels that have changed of a certain period of time.

Sex

2010-04-22 10:02:27

     If(FastGetPixel(BMP[I], X, Y) <> FastGetPixel(BMP2[I], X, Y))Then
Inc(Result[I]);
On that line, instead of incrementing the result, push a TPoint on to the resulting TPA.

mysterious123

2010-04-22 12:19:30

Would these functions also find fishing spots. (Be used to find fishing spots?)

i luffs yeww

2010-04-22 19:06:55

It could find if something is moving, so probably.