Results 1 to 4 of 4

Thread: Help plz

  1. #1
    Join Date
    Mar 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help plz

    Hey i'm trying to update an old script and i'm not sure wat to change this to Mouse(558, 187, 5, 5, True)
    any ideas?

  2. #2
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SRL still uses Mouse, but whats it clicking the coordinates for? Like is it clicking on the compass or? If its using the compass use RadialWalk;

    If you want to click on a thing that moves, get a color from it, if it has text in the left corner try

    SCAR Code:
    procedure thisthing;
    begin
      if FindObjCustom(x, y, ['Upper left text'], [Color], 15) then
      Mouse(x, y, 5, 5, true);
    end;

    if it doesn't have up text do
    SCAR Code:
    begin
      if FindColorTolerance(x, y, Color, msx1, msy1, msx2, msy2, 15) then
      Mouse(x, y, 5, 5);
    end;

    Some more info on it what the script is trying to do would help.

  3. #3
    Join Date
    Mar 2008
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes i already had the colour... i just didnt add that but the reason i asked this is that when ever i use Mouse(586, 187, 5, 5, True)
    i get the error: unknown identifier 'Mouse' in script

  4. #4
    Join Date
    Jan 2008
    Location
    Alberta
    Posts
    727
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Then you either don't have the newest SRL or your not including SRL.

    Get subversion, read a tutorial from this part of the forum http://www.srl-forums.com/forum/srl-...tory-f275.html


    To include SRL go
    SCAR Code:
    {.include SRL/SRL.scar}

    Right under the program;

    An example would be for when you open the script it would look like:
    SCAR Code:
    program new;
    begin
    end.

    Change it to:
    SCAR Code:
    program new;
    {.include SRL/SRL.scar}
    begin
    end.

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
  •