Results 1 to 5 of 5

Thread: DTM to search for an image?

  1. #1
    Join Date
    Jun 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default DTM to search for an image?

    How can I make a DTM that searches the screen simba is attached too for an image? Like I want it to search for this small "X" and if present anywhere click it.

    http://tinypic.com/r/10pylbl/5

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Use the DTM editor to make the DTM (refer to a DTM tutorial if you don't know how to use it)
    Simba Code:
    DTM:= DTMFromString();
    if FindDTM(DTM, x, y, ...) then
      Mouse(x, y, ...);

  3. #3
    Join Date
    Jun 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    what if the X will never be in the same spot will it search whole screen?

  4. #4
    Join Date
    May 2007
    Location
    England
    Posts
    4,140
    Mentioned
    11 Post(s)
    Quoted
    266 Post(s)

    Default

    It depends on what area you set it to search, so in reply to your question, yes it will search the whole screen. I suggest, like riwu, to read a tut on DTMs. There's plenty to help you out
    <3

    Quote Originally Posted by Eminem
    I don't care if you're black, white, straight, bisexual, gay, lesbian, short, tall, fat, skinny, rich or poor. If you're nice to me, I'll be nice to you. Simple as that.

  5. #5
    Join Date
    Jun 2012
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    I tried making a DTM and it still never finds the object.

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
  •