Part of my script goes basically like this with all the other set stuff before it. It compiles fine, but after the first click, if I go to a different page, it wont go back on the cat page like it did when the script started on a different page. When I start it up, it clicks the cat link page if doesn't see the cat page's logo, but after that, if I click off the cat page to see if it will go back on it, it either clicks in the way topleft or way bottomright, and I used alt-tab to check the mouse position after that and it was negative and extremely not right.
(Using cats as an example, but not really my script)
SCAR Code:
repeat
if(not(FindBitmapIn(cats_logo, x, y, 0, 0, max_x, max_y)))then
begin
if(FindBitmapSpiral(cat_link, a_x, a_y, 0, 0, max_x, max_y))then
begin
ClickMouse(a_x, a_y, true);
wait(2000);
end;
end;
until(false);