Jump to content
Incommodious

Selecting Client

Recommended Posts

You must use the OSI include. Install it from File->Includes Manager

 

Replace 'Title of the window to search for' With the window you want to come into view

 

Read the beginner tut I showed you and look at the sections about Clients

 

Then run this script:

 

[scar]

{$I OSI/OSI.scar}

var

NewClient: TSCARWindowClient;

 

begin

NewClient := TSCARWindowClient.Create(FindWindowEx('Title of Window to search for', False, True));

SetClient(NewClient).Free();

NewClient.Activate();

// Then you can do your mouse events

wait(1000); // wait a second

MoveMouse(0, 0);

end.

[/scar]

Edited by LordJashin
Link to comment
Share on other sites

Ive seen a 20 part tut on youtube and read 2 other tuts online about scripts and somehow i guess i dont understand haha but yeah ill look at that. Shouldnt i just install all the Includes?

 

Nah, because you might not use them all. Its up to you though.

 

SCAR has many functions, and much are undocumented. But a lot have been documented and are available here - wiki.scar-divi.com

 

Some:

ClickMouse

MoveMouse

PressVKey

VKeyDown

PressKey

KeyDown

KeyUp

VKeyUp

and more and more.

GetColor

FindColor

FindColorTol (Find a color with a tolerance - meaning find said color and if there is a similar color to it maybe (5) away it will find that one if it cant find the original)

 

Repeat, if, for, case, types, objects, and much more you can learn...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...