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
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
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??
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!.
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)?
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.
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
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
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?
I suppose you mean OpenWebPage(URL).
This sentence is false.
find the size of it then it will work.
i've found the size of the game, but it didn't work.. size was width: 550 and height: 450..
Maybe you didn't find right size... try this
You'll need to activate window though...
Then it says width and height what scar sees it...GetClientDimensions(x, y);
writeln('width is '+inttostr(x)+', height '+inttostr(y))
[CENTER][SIZE="4"]Inactive[/SIZE]I forgot my password[/CENTER]
Much thanks @ Negaal
I didn't had the right sizes indeed
it wasn't 550,450 but 551,451 :P
There are currently 1 users browsing this thread. (0 members and 1 guests)