Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- version := 0.71
- UrlDownloadToFile, http://www.autohotkey.net/~Benjamin_Price/medic/version.txt, version.txt
- FileRead, newver, version.txt
- FileDelete, version.txt
- if (version < newver)
- {
- newververfügbar := 1
- UrlDownloadToFile, http://www.autohotkey.net/~Benjamin_Price/medic/medic.exe , %A_ScriptName%.new
- BatchFile=
- (
- Ping 127.0.0.1
- Del "%A_ScriptName%"
- Rename "%A_ScriptName%.new" "%A_ScriptName%"
- cd "%A_ScriptFullPath%"
- Del Update.bat
- "%A_ScriptName%"
- )
- FileDelete,update.bat
- FileAppend,%BatchFile%,update.bat
- MsgBox, Der Keybinder wird geupdatet. Der Keybinder ist sofort wieder funktionsbereit. Bitte starte den Keybinder gleich erneut.
- Run,update.bat,,hide
- ExitApp
- }
- else
- {
- newververfügbar := 0
- }
Advertisement
Add Comment
Please, Sign In to add comment