I've been around the forums for some time, and not long ago I decided to learn more about using SCAR, and I like making scripts for games just laying out on the internet, but I have a problem, I have two procedures, one for shooting the men, and one for reloading (the game is called "Storm the House 2"), and I have a writeln for both, kind of a proggy, which tells that the procedure does indeed start, but the only thing it's for, reloading, doesn't work, the problem is that it appears not to be pressing space although that's what I've written it to do.
Here's the whole script, hope you can help
SCAR Code:
program StormTheHouse2;
var
x,y,c,fc: Integer;
const
SwordmanHeadColor= 16777215;
procedure ShootSwordman;
begin
fc:=7
c:=fc
repeat
if(FindColor(x,y,SwordmanHeadColor,0,0,650,450)) then
begin
clickmouse(x,y,true);
wait(100);
c:=c-1
writeln(inttostr(c) + ' bullets left');
end;
until(c=0)
end;
procedure Reload;
begin
writeln('Reload');
wait(100);
SendKeys(chr(32));
wait(2000);
c:=fc
end;
begin
repeat
ShootSwordman;
Reload;
until(false);
end.