Results 1 to 4 of 4

Thread: How to Make a Simple Color/Bitmap clicking script.

  1. #1
    Join Date
    Oct 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Red face How to Make a Simple Color/Bitmap clicking script.

    Hey all, i was just wondering if anyone could explain in moderate detail on how to make a simple color/bitmap clicking script for beginers. i was using this bit of script:
    Code:
    program New;
    begin
    end.                                       Procedure FindAndClick;
    begin
     if(FindColor(var -0,0: Integer; color, xs, ys, xe, ye: Integer))then
      clickmouse(- , , true)
    end;
    i dont really know what to put in the clickmouse(- , , true) or the xs ys xe ye etc. any explaination on what to do?
    its probably like Peice of cake for all u guys, but im a newbie at SCAR and dont know very much.
    Thanks alot, it doesnt matter i it uses detectable commands, as i am just using this for a private server whitch doesnt have ANY anti botting features. Thanks for you time.
    Last edited by rogan; 10-21-2009 at 05:31 AM.

  2. #2
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The simplest way for a color clicking script would be:
    SCAR Code:
    program ColorClicker;

    var
      x: Integer;
      y: Integer;
    begin
      if(FindColor(x,y,239652,0,0,700,700))then
        ClickMouse(x,y,true);
    end.

    To explain that in brief detail:

    x and y are made variables. Variables hold a value. Integers are a specific type of variable that holds a non decimal number.

    in FindColor, we look for the color (239652, use color picker for a different one), and if it is found, the coordinates of where it was found is stored in x and y. We can then procede to call a clicking procedure at that point to click there.

    0,0,700,700 is the coordinate box to look for the color in.

    For a more detailed explanation, check out one of the sticky tutorials in the beginner section of tutorial island.

    Hope this helps some. If you have any more questions feel free to post, pm me, or add my msn: runescapemacro@hotmail.com

    Cheers,
    ~JAD

  3. #3
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    Don't listen to JAD, he can't script :P He is very good actually, whatever he tells you is good

    To pick up on where JAD went, instead of using "0,0,700,700", you can use either one of these groups:

    • MSX1, MSY1, MSX2, MSY2 : This looks in the main screen of the RS client. The biggest box on the screen.
    • MIX1, MIY1, MIX2, MIY2 : This looks in the inventory area of the screen.
    • MMX1, MMY1, MMX2, MMY2 : This looks in the Mini Map area of the screen.
    • MCX1, MCY1, MCX2, MCY2 : This looks in the chat section of the screen.


    Also, Instead of listing each Variable on it's own line, you can do this:
    SCAR Code:
    var
      x, y, I, Color: Integer;
      UpTexts: array of string;
      UseProggy: Boolean;
    Since x, y, I, and Color are all Integers, they can be separated by commas.

    If you need anything feel free to PM me. Good luck scripting

    [offtopic]JAD, you stole the "~" from me [/offtopic]

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  4. #4
    Join Date
    Oct 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    OMFG thanks! i finnaly under stand that bit of the code =D thanks, ill work on it later this afternoon =D ( going to school right now XS)

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
  •