Results 1 to 7 of 7

Thread: Clicking on a picture

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

    Default Clicking on a picture

    Currently I am creating a script on a private server so i can get a feel for simba so then I can move on to runescape. Right now I am making a auto fighter, and before i go any further i want the bot to click on part of a picture(aka looting). I did a bitmap conversion and got this:
    Code:
      Bmp := BitmapFromString(14, 12, 'meJyTUdd2mPAfGcmoa+NCEAUMYI' +
            'BfMVwlGptylXAEcQamFB53oonjsR2NTVOVxPgIiBhQAXLIYBXEjwD' +
            'OzpG+');
    How would i make the bot click on that picture. Btw here is what i have so far
    Code:
    program autofighterfortards;
    Const
    NPC=7984046;
    tleft= 93;
    tright = 139;
    bleft=630;
    bright=447;
    tolorence=15;
    time=12; // in seconds
    rwait=1000
    
    var
     X,Y: Integer;
     procedure getbanned;
    begin
    // fighting method
           FindColorTolerance(X,Y,NPC,tleft,tright,bleft,bright,tolerence)
          movemouse(x, y);
          Wait(120 + Random(80));
           ClickMouse(x, y, Mouse_Left);
           Wait((time*1000) + Random(rwait));
    end;
    begin
      repeat
      getbanned;
      until False;
      end.

  2. #2
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

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

    Default

    this is old..

  4. #4
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    Yeah, but the method still works.

    More recent:

    Video:
    http://www.youtube.com/watch?v=gj7ya...2&feature=plcp

    Wirtten Tutorial:
    http://villavu.com/forum/showthread.php?t=47374

    And dont forget to learn the correct way to FreeDTMs: http://villavu.com/forum/showthread.php?t=78418

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

    Default

    Quote Originally Posted by tasmania View Post
    Yeah, but the method still works.

    More recent:

    Video:
    http://www.youtube.com/watch?v=gj7ya...2&feature=plcp

    Wirtten Tutorial:
    http://villavu.com/forum/showthread.php?t=47374

    And dont forget to learn the correct way to FreeDTMs: http://villavu.com/forum/showthread.php?t=78418
    I dont need it. because my other scripts use bitmaps. because i learned how.

  6. #6
    Join Date
    Nov 2012
    Location
    N/A
    Posts
    185
    Mentioned
    2 Post(s)
    Quoted
    19 Post(s)

    Default

    OMG,

    I am only trying to help, why even post "How would i make the bot click on that picture." if you already know the answer:/

    The links i posted also state how to click on the bitmap.

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

    Default

    Quote Originally Posted by tasmania View Post
    OMG,

    I am only trying to help, why even post "How would i make the bot click on that picture." if you already know the answer:/

    The links i posted also state how to click on the bitmap.
    This post is old. rofl.

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
  •