Search the Community
Showing results for tags 'scar divi 3.13'.
Found 1 result
Hey Everyone, Thanks for being here to help. Using SCAR Divi 3.13 I'm trying to make a script that will search the screen for a color, and then click it. I know the color is always there no matter what. The color moves around the screen. Here's what I have: program Automage; var c, i, x, y, w, h:integer; begin i := 1; c := 0; findwindowtitlepart('game',false); activateclient; wait(700); keydown(115); GetClientDimensions(w, h); while (i = 1) do begin while (c < 60) do begin findColor(x, y, 1638350, 0, 0, w - 1, h - 1); clickmouse(x, y, true); wait(1000); c := c + 1; end; wait(10000); c := 0; end; end. After targeting the window, and hitting play, the mouse clicks but it keeps pointing at 1 location. At about 30, 50. If I try changing the paramaters of findColor: findColor(x, y, 1638350, 0, 0, w - 1, h - 1); I get "Canvas does not allow drawing" If I try using findColorCircle, I get the same error. Thanks, -username