Results 1 to 8 of 8

Thread: FindDTM And Randomisation Of Clicks, How Do You Do It?

  1. #1
    Join Date
    Dec 2012
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default FindDTM And Randomisation Of Clicks, How Do You Do It?

    So a lot of my old MouseBox based procedures have become very unreliable these days even when clicking big buttons, no idea why, and I have been switching to DTMs to make sure stuff works nicely. Basically it does, only I don't know how to randomize clicks now. Of course there is a variable in the "Mouse" procedure that randomly moves the clickpoint a few pixels to the left or right, but more often than not the DTM based mouse coordinates are at the very edge of the object to click which could break the procedure again.

    This may be due to the fact that I like to use the borders of the objects for my DTMs. Point is, I need some way to add more randomness, like I can with MouseBox, to DTM based clicking. Is there a way to do that? Or have any of you an idea why using MouseBox results in a lot of missclicks all of a sudden?

  2. #2
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Use the middle of the object and use something like:

    Simba Code:
    MMouse(RandomRange(X - 5, X + 5), RandomRange(y - 5, y + 5), 0, 0);
    // credits to DannyRS

    Also to avoid it moving off the object check for uptext

  3. #3
    Join Date
    Dec 2012
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Use the middle of the object and use something like:
    How do I use the middle of the object; by changing the first point of the TPA to a point in the middle of the object?
    Thanks!

  4. #4
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by SomeGuyFromHere View Post
    How do I use the middle of the object; by changing the first point of the TPA to a point in the middle of the object?
    Thanks!
    So you're using TPA's?
    then your proc/func must look something like this
    Simba Code:
    for i:= 0 to high(TPA) do
    begin
      MiddleTPAEx(TPA[i], x, y) // Finds the middle of a tpa. (the high concentrated area)
      Etc....
    end;

    Creds to DannyRS for this wonderful sig!

  5. #5
    Join Date
    Dec 2012
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    No sorry, I was talking about DTMs alright... confused the two terms.

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

    Default

    when you create your DTM make sure the mainpoint is in the center of the object.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  7. #7
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Then do what rjj said and yes change the mainpoint to the middle of the object

    Creds to DannyRS for this wonderful sig!

  8. #8
    Join Date
    Dec 2012
    Posts
    73
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Back to scripting! Thanks guys, will try that.

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
  •