• Log in or sign up for an account here: https://www.sythe.org/login

need help with using repeat

K!LL3R

Member
Joined
Jan 31, 2007
Sythe Gold
0
Messages
54
ok im new to scar sorta and this is my script
Code:
const
 text = 'hello';//this is what it will type
procedure move;
begin
repeat
 begin
  if(IsFKeyDown(8)) then;
   sendkeys(text)
 end;
begin
 move;
end.

and i want it to do like everytime i press F8 it says that but all it does is gives me and error or just typed the text then quits
 
Code:
const
 text = 'hello';//this is what it will type
procedure move;
begin
repeat
 begin
  if(IsFKeyDown(8)) then;
   sendkeys(text)
 end;
until (false); // every repeat must have an until just like every begin must have an end, whatever is in parenthesis must be a boolean, when that boolean is true it will stop repeat, "false", like it is now, will repeat forever
end; // ends the procedure

begin
 move;
end.
 
hah i knew it was something then false sheesh i used to know this stuff and thanks man EDIT: oh and also now it just says hello for like ever and i cant get it so that when i press f8 it says it
 
It only says it when the F8 key is down, you should probably add a wait, though.
 
no it doesnt do it only when the F8 key is down it does it right when i start the script
 
Take the semi-colon off of 'then'.
 
Runescape Gamblingrunescape gambling
Back
Top