Results 1 to 10 of 10

Thread: Quick Question

  1. #1
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Quick Question

    I know that there is an SRL Function that finds the RS client (FindRS), but is there a Function that makes the client window to the RS Client during runtime?

    I have seen something called ActivateClient but I do not know what that does.

    ~JNCR
    The[Cheese] really puts it perfectly:

    Reflection is win

  2. #2
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    ActivateClient;

    Makes the client active. (Brings to front)

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  3. #3
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks

    Edit:

    Wait, no, I want something that does the equivalent of dragging the cross hairs over the RS client window at runtime.
    The[Cheese] really puts it perfectly:

    Reflection is win

  4. #4
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    FindRS;

    or

    SCAR Code:
    FindWindow('Runescape');

    Try that? :P

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  5. #5
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, that (to my knowledge), just makes sure that it finds the window. I need it to set SCAR's specified client window (like dragging the crosshairs) to the runescape window.

    I need this to happen because if I say MMouse(10,10,0,0), for example, it will go to 10,10 of the computer. I need it to go to 10,10 of the RS window.

    ~JNCR
    The[Cheese] really puts it perfectly:

    Reflection is win

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

    Default

    why don't you dragg the cross hair by your self?

  7. #7
    Join Date
    Sep 2007
    Location
    Behind You
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Because the new script I am creating makes a new account, opens runescape, then navigates Tut Island. Since it does not start on runescape, the user cannot drag the crosshairs.

    ~JNCR

    Edit:

    Just Tested... FindRs does work...

    ~JNCR
    The[Cheese] really puts it perfectly:

    Reflection is win

  8. #8
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Dude..

    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.

    function FindWindowBySize(Width, Height: Integer): Boolean;
    Finds window with specified size.

    procedure ActivateClient;
    Activate client window.
    SCAR Code:
    FindRS;
    ActivateClient;

    Will find RS window (and specify it as client) and will Activate it..

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

  9. #9
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Yeah, or do

    SCAR Code:
    FindWindowBySize(766, 504);  //Will 'drag the corsshair' over RS (well not really, but it is the same)
    ActivateClient;  //Makes RS the active window.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  10. #10
    Join Date
    Apr 2007
    Location
    UK
    Posts
    2,295
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    function FindRS: Boolean;
    begin
      Result := FindWindowBySize(766, 504);
    end;

    Does that anyway

    Rogeruk's Al-Kharid Tanner V1.1 [Released]
    Rogeruk's Barbarian Crafter [Coming Soon]
    Rogeruk's Guild Fisher [Coming Soon]
    !! - Taking Requests - !!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Just a quick question? Did I say quick?
    By SeanJohn in forum OSR Help
    Replies: 3
    Last Post: 01-28-2009, 12:03 AM
  2. Quick question
    By GinFoxface in forum OSR Help
    Replies: 2
    Last Post: 04-07-2007, 04:25 AM
  3. Quick Question
    By mage of begu in forum OSR Help
    Replies: 10
    Last Post: 01-12-2007, 10:48 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
  •