Results 1 to 8 of 8

Thread: How to rotate screen, can't find :S

  1. #1
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  2. #2
    Join Date
    Jul 2006
    Posts
    259
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok first you need to know all the keycodes for all the keys ill make it an attachment then its more of a timing issue you will have to do sumthing like this
    SCAR Code:
    keydown(chr(watevthenumberis));
    marktime(i);
    repeat
    wait(100);
    until (getmarktime(i)>10000)
    keyup(chr(watevthenumberis));
    get it, got it ,good
    "your always where you supposed to be"

  3. #3
    Join Date
    Apr 2007
    Posts
    3,152
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    or you could do...RotateScreenEvery..if its for antiban
    and MakeCompass('S') if u want to look at sumthing
    SCAR Tutorials: The Form Tutorial | Types, Arrays, and Classes
    Programming Projects: NotePad | Tetris | Chess


  4. #4
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    SCAR Code:
    procedure SetCompass(Direction: String);
    var
      StartAngle, Angle, DirectionDeg, i: Extended; Left: Boolean; Mark: LongInt;
    begin
      StartAngle := (rs_GetCompassAngleDegrees);
      try
        begin
          if StrToFloat(Direction) > 360 then DirectionDeg := strtofloat(Direction) - 360 else
          DirectionDeg := strtofloat(Direction);
        end;
      except
        case LowerCase(Direction) of
          'n': DirectionDeg := 0;
          'w': DirectionDeg := 90;
          'e': DirectionDeg := 270;
          's': DirectionDeg := 180;
        end
      end;
      if ((360 - StartAngle + DirectionDeg) > 180) and ((360 - StartAngle + DirectionDeg) < 360) then Left := True;
      if Left then KeyDown(VK_LEFT) else KeyDown(VK_RIGHT);
      MarkTime(Mark);
      repeat
        if not loggedin then break;
        Angle:= rs_GetCompassAngleDegrees;
        wait(1);
        if (TimeFromMark(Mark) mod 8500) = 0 then i := i +1;
        if TimeFromMark(Mark) > 30000 then Break;
      until (Angle > (DirectionDeg -(4 +i))) and (Angle < (DirectionDeg +(4 +i)));
      if Left then KeyUp(VK_Left) else KeyUp(VK_Right);
    end;

    You can use this as the normal MakeCompass or SetCompass('YOUR DEGREES HERE');

    Example:

    SCAR Code:
    SetCompass('n');
    SetCompass('s');
    SetCompass('80');
    SetCompass('100');

    NOTE: This is for DIVI-only!


    EDIT: 600th post
    Hup Holland Hup!

  5. #5
    Join Date
    Apr 2007
    Location
    Finland
    Posts
    938
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  6. #6
    Join Date
    Jul 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Is setcompass included in srl, or do i have to add that code in every script i do?

  7. #7
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MakeCompass('N');
    MakeCompass('E');
    MakeCompass('S');
    MakeCompass('W');
    is included the ''SetCompass'' i dont know.

    edit: the SetCompass not. so you need to add that code

  8. #8
    Join Date
    Jul 2007
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok thanks for the help

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How to rotate ?
    By Dervish in forum OSR Help
    Replies: 6
    Last Post: 01-11-2009, 05:23 PM
  2. how to rotate and search?and findmouse?
    By chitin in forum OSR Help
    Replies: 7
    Last Post: 12-23-2007, 04:00 AM
  3. Trade Screen and Duel Screen?
    By Hey321 in forum OSR Help
    Replies: 18
    Last Post: 12-14-2006, 11:13 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •