Results 1 to 10 of 10

Thread: Odd Double Clicking

  1. #1
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default Odd Double Clicking

    Hai.

    For some reason, when I use CloseWindow in my script, it double clicks the X button (making my guy walk like halway across the screen..). So, I made my own, but it does the same thing.

    Here, lookie.

    SCAR Code:
    function CloseOpenWindows: Boolean;
    var
      TheDTM : Integer;
    begin
      TheDTM := DTMFromString('78DA6314646060E06740014AB262609A11CA6' +
             '704A9E1445533A93517558D3890E042551311688FA906CD2E0F7B' +
             '1354352240420C558DABAD01AA1A903D22A86A3A6A5331D5F0117' +
             '03317A6BF76AE9D8CA20600C1AC0A1A');
      If(FindDTM(TheDTM, x, y, MSX1, MSY1, MSX2, MSY2)) then
      begin
        Mouse(x, y, 2, 2, True);
        repeat
          Wait(random(100));
        until(not(FindDTM(TheDTM, x, y, MSX1, MSY1, MSX2, MSY2)))
        Result := True;
      end else
        Result := False;
    end;

    I only called Mouse once, as does CloseWindow (if I'm not mistaken..). Any other function of mine only clicks once, so I'm really not sure of this one's fetish to double click.

    ~PoW

  2. #2
    Join Date
    Jun 2006
    Location
    Canada
    Posts
    1,610
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function CloseOpenWindows: Boolean;
    var
      TheDTM : Integer;
    begin
      TheDTM := DTMFromString('78DA6314646060E06740014AB262609A11CA6' +
             '704A9E1445533A93517558D3890E042551311688FA906CD2E0F7B' +
             '1354352240420C558DABAD01AA1A903D22A86A3A6A5331D5F0117' +
             '03317A6BF76AE9D8CA20600C1AC0A1A');
      If(FindDTM(TheDTM, x, y, MSX1, MSY1, MSX2, MSY2)) then
      begin
         MoveMouse(x, y,);
         Wait(100);
         ClickMouse(x, y, true);
        repeat
          Wait(random(100));
        until(not(FindDTM(TheDTM, x, y, MSX1, MSY1, MSX2, MSY2)))
        Result := True;
      end else
        Result := False;
    end;

    Maybe this will work?

    Accept that the waters around you have grown.

  3. #3
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Might not be your script. Manually closing windows in RS does this to me sometimes, and I know I only clicked once.

  4. #4
    Join Date
    Aug 2007
    Location
    Where do you live?
    Posts
    934
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    Might not be your script. Manually closing windows in RS does this to me sometimes, and I know I only clicked once.
    yea I think Jagex either F-ed up, or its a very strange way of tryin to piss off auto-ers? but it's deff somethin in RS, no the scripts...

  5. #5
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    It's odd, though. I can close windows manually without it double clicking O.O

  6. #6
    Join Date
    Dec 2007
    Location
    Middle of Here and There
    Posts
    417
    Mentioned
    6 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by Ruroken View Post
    SCAR Code:
    function CloseOpenWindows: Boolean;
    var
      TheDTM : Integer;
    begin
      TheDTM := DTMFromString('78DA6314646060E06740014AB262609A11CA6' +
             '704A9E1445533A93517558D3890E042551311688FA906CD2E0F7B' +
             '1354352240420C558DABAD01AA1A903D22A86A3A6A5331D5F0117' +
             '03317A6BF76AE9D8CA20600C1AC0A1A');
      If(FindDTM(TheDTM, x, y, MSX1, MSY1, MSX2, MSY2)) then
      begin
         MoveMouse(x, y,);
         Wait(100);
         ClickMouse(x, y, true);
        repeat
          Wait(random(100));
        until(not(FindDTM(TheDTM, x, y, MSX1, MSY1, MSX2, MSY2)))
        Result := True;
      end else
        Result := False;
    end;

    Maybe this will work?
    Why is it that everyone underestimated my scripting abilities? Sheesh!

    . . . Why would that work? MoveMouse and ClickMouse are both EXTREMELY detectable. It seems that people are overestimating your skills >.>

  7. #7
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Don't worry, it happens to me too sometimes, when I play legit.
    ~Eerik~

  8. #8
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    It hapens because it does for I := 0 to 1 do, this means it'l press it twice, but still it should be able to break out of that function? Maybe an If and Xor statement could fix it

  9. #9
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    i think its because of Wait(random(100)); <- That means it goes from 0 - 100 milliseconds. Thats means some of the time it wont even wait enough for the dtm to leave... make it -> Wait(600+random(500)); That will make it wait at the very most of 1.1 seconds.
    I do visit every 2-6 months

  10. #10
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Zasz, that's not what he's looking for. After it clicks, in theory it should just wait for 100 milliseconds over and over until it doesn't find the dtm again.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. double check!
    By ShowerThoughts in forum OSR Help
    Replies: 7
    Last Post: 09-23-2007, 10:59 AM
  2. Can Some1 double check this
    By psychoson in forum OSR Help
    Replies: 6
    Last Post: 06-24-2007, 02:32 AM

Posting Permissions

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