ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: DestLuck on July 13, 2012, 02:33:14 PM

Title: F1 looping
Post by: DestLuck on July 13, 2012, 02:33:14 PM
Ok i use easyuo and im trying to get a script together to loop F1 over and over untill i decide to stop it?

can anyone help i was thinking

sub main
{
Key F1
}

return






but all that didint work anyone can tell me how?
Title: Re: F1 looping
Post by: freddy on July 13, 2012, 03:28:22 PM
Ok i use easyuo and im trying to get a script together to loop F1 over and over untill i decide to stop it?

can anyone help i was thinking

sub main
{
Key F1
}

return

if you are using a sub, you have to call it (whatever the term is) by using gosub.
try
while #true
key f1

this will loop indefinitely. you'd have to stop the script in euo. if you want to use conditions use repeat...until

repeat
key f1
until %whatever = #true

tho you could do the same with while..just 2 different ways to accomplish the same thing