Results 1 to 15 of 15

Thread: activate window

  1. #1
    Join Date
    Jul 2007
    Location
    Nederweert, Limburg, The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default activate window

    is there a way/function to activate the window in which you're letting your script work? the window i'm talking 'bout is like in the middle of the screen..

    regards,
    Hvitekrist

  2. #2
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Crosshair and then ActivateClient;
    I made a new script, check it out!.

  3. #3
    Join Date
    Jul 2007
    Location
    Nederweert, Limburg, The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    but when you open the script, then the window which needs to be selected with crosshair won't be selected, right? how do i do that??

  4. #4
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 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.

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

    Those are the three crosshair functions accessible for the script.
    I made a new script, check it out!.

  5. #5
    Join Date
    Jul 2007
    Location
    Nederweert, Limburg, The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it still doesn't work? is it possible Scar can't find the window because it's a window inside a window (such as the runescape window)?

  6. #6
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    No, because SCAR can find the Runescape window - otherwise SCAR wouldn't be much of a help for us.
    Can you show us what window you'd like to find? That way we have more to work with and it's easier to help.
    This sentence is false.

  7. #7
    Join Date
    Dec 2007
    Location
    Indiana
    Posts
    85
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    if you "Restore Down" your scar window, so that you can see the window u need( we will call it window x). drag the crosshairs to window x. put activateclient as the very first function in your main loop, or do whatever to makesure that the first thing scar does is activateclient. pess play and you will see window x pop up to the front.

    alernative:
    drag those crosshairs. click on window x, bringing it to the front. press control+ r and it starts the script.

    i always make my window x sall enough so that i can see teh debug box of scar

    hope this helped

  8. #8
    Join Date
    Jul 2007
    Location
    Nederweert, Limburg, The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    perhaps any advice to find another kinda window, like an flash games in Internet?
    'cuz i wanted to start easy with my script (yeah ima beginner) and chose to start with flash games

  9. #9
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    If you want to find the RS window, FindWindowBySize
    I made a new script, check it out!.

  10. #10
    Join Date
    Jul 2007
    Location
    Nederweert, Limburg, The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i want to find an flash game in internet explorer
    the game is located at http://www.spele.nl/game/counterstri...nschieten.html but maybe i know something else..
    is there some function/procedure to open an internet link?

  11. #11
    Join Date
    Dec 2007
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I suppose you mean OpenWebPage(URL).
    This sentence is false.

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

    Default

    find the size of it then it will work.

  13. #13
    Join Date
    Jul 2007
    Location
    Nederweert, Limburg, The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i've found the size of the game, but it didn't work.. size was width: 550 and height: 450..

  14. #14
    Join Date
    Jul 2007
    Posts
    1,431
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe you didn't find right size... try this


    You'll need to activate window though...
    GetClientDimensions(x, y);
    writeln('width is '+inttostr(x)+', height '+inttostr(y))
    Then it says width and height what scar sees it...
    [CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]

  15. #15
    Join Date
    Jul 2007
    Location
    Nederweert, Limburg, The Netherlands
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Much thanks @ Negaal
    I didn't had the right sizes indeed
    it wasn't 550,450 but 551,451 :P

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. How do i get it to the correct window?
    By your mom in forum OSR Help
    Replies: 1
    Last Post: 12-20-2008, 08:36 PM
  2. Old login window?
    By Ethien in forum OSR Help
    Replies: 4
    Last Post: 10-18-2008, 07:08 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
  •