Results 1 to 4 of 4

Thread: Selecting an object

  1. #1
    Join Date
    Nov 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Selecting an object

    Hi there.
    I'm (attempting) to learn how to code with SRL, and I'm trying to make a cooker. What I'm wondering is the best way to select the range that will be cooked on. I've tried doing it with a DTM, but if the screen moves ever so slightly, it doesn't seem to work. Can someone propose a better way of finding it?

    Thanks

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just a static DTM, and not using FindDTMRotated, will really do you no good finding the range. I would suggest a simple FindObj or a (small) bitmap. If you are looking for slightly more advanced ways, you could learn TPointArrays and some simple methods that go along with them:

    http://www.villavu.com/forum/showthread.php?t=48915

  3. #3
    Join Date
    Nov 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you! I was just looking into TPA's, and seem to be understanding them well...

  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by d_sign View Post
    Thank you! I was just looking into TPA's, and seem to be understanding them well...
    That's good, I would suggest to use TPAs to find the range (shouldn't be too hard since it's a pretty unique color compared to it's surroundings), and use a FindObj function as a failsafe.

    I think that would be the best way to go about this.

    Coh3n

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
  •