Skip to content

Instantly share code, notes, and snippets.

@kissgyorgy
Last active December 10, 2015 00:19
AutoIt: self restart
; Author UP_NORTH
Func RestartScript()
If @Compiled = 1 Then
Run( FileGetShortName(@ScriptFullPath))
Else
Run( FileGetShortName(@AutoItExe) & " " & FileGetShortName(@ScriptFullPath))
EndIf
Exit
EndFunc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment