Results 1 to 4 of 4

Thread: Declare New Window As Client?

  1. #1
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Declare New Window As Client?

    I want to be able to open a new window and go to runescape (which I can do) but then I need to be able to somehow make that the client or something so that I can find a color in it. All I really want is to be able to open runescape and then click on a color I find. This is what I have come up with so far. It compiles and everything it just doesnt do what I want. Thanx for the help .

    SCAR Code:
    program OpenRunescape;
    {.include SRL/SRL.scar}
    const
      Color = 8107734;
    var
      x, y : Integer;
    begin
      SetupSRL;
      OpenWebPage('http://www.runescape.com');
      Wait(10000);
      FindColor(x, y, Color, MSx1, MSy1, MSx2, MSy2)
      Mouse(x, y, 0, 0, true);
    end.

  2. #2
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    procedure FindWindow(Title: string);
    Finds Client window with specified title. Character case of Title must match that in window title exactly.

    function FindWindowTitlePart(Title: string; CaseSensitive: Boolean): Boolean;
    Finds window that contains text specified by Title parameter in window caption.

  3. #3
    Join Date
    Nov 2007
    Posts
    437
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you very much very very helpful. I feel a rep comin ur way .

  4. #4
    Join Date
    May 2007
    Location
    baltimore, md
    Posts
    836
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    haha no problem. i just pasted this out of the guide.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Select client window
    By spamthis in forum OSR Help
    Replies: 7
    Last Post: 09-13-2008, 08:40 PM
  2. Client window loses focus
    By NosePicker in forum OSR Help
    Replies: 7
    Last Post: 04-02-2008, 12:50 PM
  3. How do I change client window?
    By Tim0suprem0 in forum OSR Help
    Replies: 8
    Last Post: 08-12-2007, 02:57 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
  •