Sign in to follow this  
Followers 0
Sim0n

Repeat the full program

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



You should go about doing this:

ShellExecute(@ScriptFullPath)
Exit

So, it will run it, while the script is loading Exit. :D

Share this post


Link to post
Share on other sites

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. :D


Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

I have used the While option. This works great. The ShellExecute function worked also, but is a bit uneasy.

Thank you very much.

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0