Danitheman Posted February 17, 2012 Share Posted February 17, 2012 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? Quote Link to comment Share on other sites More sharing options...
sjesper Posted February 17, 2012 Share Posted February 17, 2012 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;beginrepeat FindNClicK;until(false);end.[/Code] But write what you want to learn (In none code speak) and meaby i know how to do it ^^ Quote Link to comment Share on other sites More sharing options...