Been working on a script that Google failed to help me on.
Brought me here at least.
I want it to activate a loop, and deactivate it as well by pressing a button. Here's what I was trying, but it refuses to work. (Script instantly stops without an error)
If IsKeyDown(33) = true then
begin
repeat
Wait(8000); //8 second delay
Inc(waittime)
PressKey(32);
Wait(1000); //1 second delay so it doesn't trip over itself.
Sendkeys(M, 50, 50);
Wait(1000); //1 second delay so it doesn't cut off the message.
PressKey(13);
Wait(80000); //80 seconds before it starts from the top.
Writeln('Invited'+ IntToStr(waittime) + 'times');
until(IsKeyDown(34) = true);
end;
end;
I want it to activate a loop, and deactivate it as well by pressing a button. Here's what I was trying, but it refuses to work. (Script instantly stops without an error)
If IsKeyDown(33) = true then
begin
repeat
Wait(8000); //8 second delay
Inc(waittime)
PressKey(32);
Wait(1000); //1 second delay so it doesn't trip over itself.
Sendkeys(M, 50, 50);
Wait(1000); //1 second delay so it doesn't cut off the message.
PressKey(13);
Wait(80000); //80 seconds before it starts from the top.
Writeln('Invited'+ IntToStr(waittime) + 'times');
until(IsKeyDown(34) = true);
end;
end;


