Sim0n Posted April 28, 2008 Posted April 28, 2008 Hi, I'm new in AutoIt, and I have a very newby question, I have searched for it but I couldnt find an answer.... My program works fine, What I want, is just getting the script restarted, when it has finished. I have tried to end the script with Run([script]), but this doesnt worked and GoTo doesnt exsist in AutoIt. So how should I do this?
GunsAndRoses Posted April 28, 2008 Posted April 28, 2008 You should go about doing this: ShellExecute(@ScriptFullPath) Exit So, it will run it, while the script is loading Exit.
monoceres Posted April 28, 2008 Posted April 28, 2008 Hi, I'm new in AutoIt, and I have a very newby question, I have searched for it but I couldnt find an answer.... My program works fine, What I want, is just getting the script restarted, when it has finished. I have tried to end the script with Run([script]), but this doesnt worked and GoTo doesnt exsist in AutoIt. So how should I do this?GoTo isn't needed when you have loops, just have while 1 at the beginning of your script and WEnd at the bottom. I think it looks more professional than having it restart. Broken link? PM me and I'll send you the file!
Sim0n Posted April 28, 2008 Author Posted April 28, 2008 I have used the While option. This works great. The ShellExecute function worked also, but is a bit uneasy. Thank you very much.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now