Results 1 to 10 of 10

Thread: Find new/moving pixels

  1. #1
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default Find new/moving colors.

    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?
    Last edited by Main; 04-22-2010 at 09:40 AM.
    Oh Hai Dar

  2. #2
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Smile

    Hey, you should try these :

    Code:
    // * 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:
    Code:
    \Includes\SRL\SRL\core

    ~Home

    ( :

  3. #3
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

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

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

  4. #4
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by Main_Ftw View Post
    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

  5. #5
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

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

  6. #6
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    edit the functions in your own script,
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  7. #7
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    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.

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  8. #8
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    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.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  9. #9
    Join Date
    Nov 2006
    Posts
    181
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

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

  10. #10
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    It could find if something is moving, so probably.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •