Results 1 to 6 of 6

Thread: [R] Interfaces

  1. #1
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default [R] Interfaces

    Is there someone who can explain their use to me? I know in RSBot and KBot they are important, but do they have any use in SCAR? I can't figure out how to do anything except see if it exists. But in KBot's debugger, there are coords and colours and texts and items contained, and id's and so many options. Is this possible in SCAR? If not, can it be easily added?

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  2. #2
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    We can do it in reflection yes. But to actually see it and debug it you have to 'Enable Drawing' (i believe) on SMART and also you have to write a script that shows what you want. Though Enabling Drawings on SMART usually causes great lag...

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  3. #3
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    Well I can debug it without using SCAR, I don't mind opening up KBot. I'm asking can I use all of those functions in SCAR? Such as the text of the interface, the coords of the interface, colours, items contained, those sorts of things.

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  4. #4
    Join Date
    Jun 2007
    Location
    La Mirada, CA
    Posts
    2,484
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Last time I used reflection they just started to begin using interfaces. So I don't know exactly if they have all that information available with SCAR/SMART or not.

    Sorry

    "Failure is the opportunity to begin again more intelligently" (Henry Ford)


  5. #5
    Join Date
    Feb 2007
    Location
    Alberta, Canada
    Posts
    4,615
    Mentioned
    50 Post(s)
    Quoted
    429 Post(s)

    Default

    It's alright. Who should I get around to bugging about this information?

    Scripts: Edgeville Chop & Bank, GE Merchanting Aid
    Tutorials: How to Dominate the Grand Exchange

    Quote Originally Posted by YoHoJo View Post
    I like hentai.

  6. #6
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    For text you have to get the Parent and the Child ID and then get the Child ID text and check if your wanted text exists there. Example:
    SCAR Code:
    function R_ShopScreen : Boolean;
    var
      Text : string;
    begin
      Result := False;
      if (not(ValidInterface(620))) then
        Exit;
      Text := GetInterfaceText(620, 22);
      Result := Pos('Khazard', Text) <> 0;
    end;

    I use that for my private pot of flour buyer.

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
  •