Jump to content
Sign in to follow this  
Chobyhy

Restarting A Script

Recommended Posts

Chobyhy

Is it possible to exit and restart the script?

Share this post


Link to post
Share on other sites
narayanjr

make two scripts

first one is the main program

second one just watches the first one and if it closes it starts it up again

Share this post


Link to post
Share on other sites
narayanjr

well if you want it to restart as soon as it end then

MsgBox(0,"first","1")
ShellExecute("runtest.exe")
Exit

if you just make it run the script again right before you tell it to exit the first one will exit while the second one loads, if you dont want it to restart right away you could make it a service i think and have it run at certain times but i dont know much about making it a service

Share this post


Link to post
Share on other sites
Armand
sandman

Yeah, it shouldn't be that complicated... as JdeB said in the post Armand linked to:

Run(@ScriptFullPath)
Exit


[center]"Yes, [our app] runs on Windows as well as Linux, but if you had a Picasso painting, would you put it in the bathroom?" -BitchX.com (IRC client)"I would change the world, but they won't give me the source code." -Unknownsite . blog . portfolio . claimidcode.is.poetry();[/center]

Share this post


Link to post
Share on other sites
paulsoliver

Is it possible to exit and restart the script?

Is the script ending before you want it to? If so make sure : GUIDelete is the LAST thing in your script.

WEnd

GUISetState ()

GUIDelete()

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.