Results 1 to 2 of 2

Thread: DTM's causing simba to click off screen.

  1. #1
    Join Date
    Aug 2009
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default DTM's causing simba to click off screen.

    For some reason, the script I'm writing compiles fine, but when i try to get it to find mt DTM, it clicks in the top left hand corner of the runescape window. Any solutions?

    Code:
    procedure walkShop;
    begin
    ShopDTM:= DTMFromString('m6wAAAHic42ZgYOhjYmDoB+KpQLwAiFcC8RoovQSI5wHxFKgaN6B6WyA2AWIjILYAYhsgDgTicCCOAuIIKP/Fl69g/O7dOxQaXQyESQGMJGAkAABN2CjC');
    if P07_InvFull then
    P07_MakeCompassNorth;
    (findDTM(ShopDTM, x, y, 520, 16, 745, 155))
        begin
      Mouse((X + 15, x + 20), RandomRange(Y - 8, Y - 13), random(3), random(3), true);
          FreeDtm(ShopDTM);
        end;
      P07_FFlag;
      wait (1000+Random(200));
    end;
    Last edited by ralfpker; 03-06-2013 at 10:51 AM.

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by ralfpker View Post
    For some reason, the script I'm writing compiles fine, but when i try to get it to find mt DTM, it clicks in the top left hand corner of the runescape window. Any solutions?

    Code:
    procedure walkShop;
    begin
    ShopDTM:= DTMFromString('m6wAAAHic42ZgYOhjYmDoB+KpQLwAiFcC8RoovQSI5wHxFKgaN6B6WyA2AWIjILYAYhsgDgTicCCOAuIIKP/Fl69g/O7dOxQaXQyESQGMJGAkAABN2CjC');
    if P07_InvFull then
    P07_MakeCompassNorth;
    (findDTM(ShopDTM, x, y, 520, 16, 745, 155))
        begin
      Mouse((X + 15, x + 20), RandomRange(Y - 8, Y - 13), random(3), random(3), true);
          FreeDtm(ShopDTM);
        end;
      P07_FFlag;
      wait (1000+Random(200));
    end;
    You have no 'If' therefore it might not be finding your DTM, all integers have a default value of 0 therefore x and y are not set so its moving the mouse to 0, 0 with your random range.

    Forum account issues? Please send me a PM

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
  •