Sign in to follow this  
Followers 0
GreG2MarS13

How to restart a script ?

4 posts in this topic

Hi !

I would like to restart a script. I know "exit" to leave the script but I don't know to leave it and restart it on the same code.

Can you help me please ?

Thanks in advance

Share this post


Link to post
Share on other sites



Hi !

I would like to restart a script. I know "exit" to leave the script but I don't know to leave it and restart it on the same code.

Can you help me please ?

Thanks in advance

You can start with the Search << Feature :) ...

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

UP_North's

; Restart your program
; Author UP_NORTH

Func _restart()
    If @Compiled = 1 Then
        Run( FileGetShortName(@ScriptFullPath))
    Else
        Run( FileGetShortName(@AutoItExe) & " " & FileGetShortName(@ScriptFullPath))
    EndIf
    Exit
EndFunc
Edited by ChromeFan

Website: www.cerescode.comForum: www.forum.cerescode.comIRC: irc.freenode.net , Channel: #Ceres--------------------Autoit Wrappers, Great additions to your script (Must See) (By: Valuater)Read It Befor Asking Question Click Here...--------------------Join Monoceres's Forums http://www.monoceres.se--------------------There are three kinds of people: Those who make things happen, those who watch things happen, and those who ask, ‘What happened?’” –Casey Stengel

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

You can start with the Search << Feature :) ...

Sorry SmOke_N. Thank you for the links and thank you ChromeFan for the answer

Edited by GreG2MarS13

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