Results 1 to 8 of 8

Thread: Someone please explain to me why this wont work?

  1. #1
    Join Date
    Dec 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Someone please explain to me why this wont work?

    SCAR Code:
    program test;
    {.include srl/srl.scar}

    const
    PlayRunescapeButtonColor=8173521;
    HighDetailColor=264526;
    MembersWorldColor=10464181;
    FreeWorldColor=8435146;
    Members=false;      //change to true for a members world


    procedure PlayRunescape;
      begin
      if(FindColor(x,y,PlayRunescapeButtonColor,795,245,986,337))then
      MoveMouseSmooth(857,279)
      ClickMouse(869,280,true)
    end;

    procedure HighDetail;
      begin
      MoveMouseSmooth(472,282)
      ClickMouse(472,282,true)
    end;

    procedure WorldSelectFree;
      begin
      if(Members=false)then
      if(FindColor(x,y,FreeWorldColor,494,147,684,268))then
      MoveMouseSmooth(585,193)
      ClickMouse(585,193,true)
      end;

    procedure WorldSelectMembers;
      begin
      if(Members=true)then
      if(FindColor(x,y,MembersWorldColor,762,149,938,267))then
      MoveMouseSmooth(857,199)
      ClickMouse(857,199,true)
      end;


    begin
    PlayRunescape
    HighDetail
      if(Members=false)then
        begin
        WorldSelectFree
        end else
        WorldSelectMembers
    end.

    This a script that you start at the Runescape home page and it SHOULD click on all the things to get you to the log in page, but it wont work for some reason, it just stops after it clicks on Existing User.

    Some help please?

  2. #2
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    try putting in a wait in there because the way u got it right now it might be clicking before the page loads
    STOP PM'ING ME

  3. #3
    Join Date
    Feb 2007
    Posts
    215
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This script isn't very flexible. What is your monitor resolution? That may help (so i can set mine to the same so the buttons line up right)

    Also like hobbit says, a wait will help.

  4. #4
    Join Date
    Jan 2007
    Posts
    248
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    oh my, looking at a mirror image of what I used to do. You have to put and
    ';' on every line you do thats a Function or Proc. like....
    Code:
    MoveMouseSmooth(x, y); <---- see the ';'
    These will make your scripint life SOOO much easier. The MAIN reason your script if messing with you is becuase of no waiting time for it to load. Put up Wait(200); or w/e depending on how long it takes to load.

  5. #5
    Join Date
    Dec 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you for helping!

    thanks you.

    And thanks for not saying

  6. #6
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    you spoke too soon so !!!!
    STOP PM'ING ME

  7. #7
    Join Date
    Sep 2006
    Location
    West U.S.
    Posts
    2,172
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    lol jk dude

    They are sisters...
    Runescape Classic

  8. #8
    Join Date
    Feb 2007
    Posts
    215
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It won't work if you set client window to firefox (or IE if your a n00b). Every time you follow a link it loses focus of the window. This might be the problem. Either way you need the waits.
    A common mistake people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.
    -Douglas Adams

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. why wont this work?
    By rogue poser in forum OSR Help
    Replies: 11
    Last Post: 01-01-2008, 08:28 PM
  2. Can You Explain Why This Does Not Work
    By SRL Guy in forum OSR Help
    Replies: 5
    Last Post: 12-07-2007, 05:15 AM
  3. Why wont this work
    By philowns in forum OSR Help
    Replies: 3
    Last Post: 07-29-2007, 01:36 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
  •