Jump to content
Danitheman

Basic commands - help!

Recommended Posts

I'm completely new to scripting and would like some help with basic commands and questions.

 

- Finding a color and clicking it

- What is a 'Bitmap'?

- Basic methods used in SCAR such as MoveMouse, ClickMouse and Wait (these are the ones I know of).

 

Basically I want SCAR to click a certain color, wait and then repeat.

 

How do I get it to repeat the actions?

Link to comment
Share on other sites

Bitmaps is a picture that you can tranfer into text. Here is some basic code you can play around with:

 


program New;

procedure FindNClick;
var
x, y, w, h, Bitmap: Integer;
begin

Bitmap := BitmapFromString(1, 1, 'ceNp70FUOAAQuAeI='); //This is for the Stop button
GetClientDimensions(w, h);
if Findcolor(x, y, 5555, 0, 0, w - 1, h - 1) then begin //Just choosed a random color
MoveWindMouse(x, y, 5, 5);
GetMousePos(x, y);
ClickWindMouse(x, y, 0, 0, True);
end else if FindBitmap(Bitmap, x, y) then begin
Wait(100 + random(50));
ClickWindMouse(x, y, 0, 0, True);
end;
end;

begin

repeat
FindNClicK;
until(false);
end.
[/Code]

 

But write what you want to learn (In none code speak) and meaby i know how to do it ^^

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...