Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #cs ----------------------------------------------------------------------------
- AutoIt Version: 3.3.14.2
- Author: Candyland
- Programname: League of Legends Replay
- Script Function: Install goes to Documents\League of Legends
- Its creates an Shortcut to the lol.exe and ads the Replay path as an Argument.
- Instructions: On the First run the Code will install himself and create an Shortcut to your Desktop which was called "Desktop", you can simply Rename that.
- The first Window that opens will tell the instructions in german. On the Second Window Simply Choose your Lol installation folder and doubleclick on the RADS folder,
- after that choose solutions, --> lol_game_client_sln --> releases, and then choose the folder with the highest number.
- The Third Windows will ask you to choose an Replay which is normaly saved under Documents\league of legends\Replay.
- The Replay will start automatically. Whenever you whish to look on your replays simply click on the shortcut on your Desktop and select the Replay.rofl
- Licens Creative Commons Public Licenses (CC BY-NC-SA)
- readable under: https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode
- The Combiled version is Downloadable as an Executable on Mediafire:
- http://www.mediafire.com/file/n0k7xraez8pxsxi/Install.exe
- #ce ----------------------------------------------------------------------------
- sleep(1000)
- Singleton("sack")
- Global $ini = @AppDataDir & "replay.ini"
- $name = "Replay.exe"
- $install = @UserProfileDir & "\documents\league of legends\" & $name
- if @ScriptName <> $name Then
- FileCopy(@Scriptfullpath, $install)
- FileCreateShortcut($install, @DesktopDir & "\desktop\", @UserProfileDir & "\documents\league of legends\")
- sleep(100)
- Run($install)
- Exit
- EndIf
- if NOT FileExists($ini) Then
- MsgBox(0, "Einmalige Ordner Suche", "Wähle gleich den Speicherort deines Spiels" & @CRLF & "gehe nach \RADS\solutions\lol_game_client_sln\releases\0.0.****" & @CRLF & "Wähle diesen ordner aus und drücke auf Ordner auswählen" & @CRLF & @CRLF & "Solltest du diese Nachricht erneut sehen ist dein Spiel vielleicht geupdated worden, dann wirst du den ordner nocheinmal auswählen müssen" & @CRLF & @CRLF & "Danach musst du nur noch dein Replay auswählen" & @CRLF & @CRLF & "Ältere Replays sind nicht mit einer neueren Version kompatibel")
- FileOpen($ini)
- Local $fini = FileSelectFolder("\RADS\solutions\lol_game_client_sln\releases\0.0.****", "")
- if @error Then Exit
- Local $gini = $fini & "\deploy\"
- FileWrite($ini, $gini)
- EndIf
- $Sini = FileRead($ini)
- $filepath = $Sini & "League of Legends.exe"
- $Savepath = @UserProfileDir & "\documents\league of legends\replay"
- if FileExists($Savepath) Then
- FileDelete($Savepath)
- EndIf
- if NOT FileExists($filepath) Then
- FileClose($ini)
- FileDelete($ini)
- MsgBox(0, $filepath, "League of Legends.exe ist nicht mehr vorhanden, vielleicht wurde dein Spiel geupdatet")
- Run(@ScriptFullPath)
- sleep(10)
- Exit
- EndIf
- Local $file = FileOpenDialog("Select Replay", @ScriptDir, "Replays (*.rofl*)", 1)
- if @error Then Exit
- FileOpen($ini)
- FileCreateShortcut($filepath, $Savepath, $Sini, $file)
- sleep(1000)
- Run(@ComSpec & " /C start Replay.lnk", @ScriptDir)
- Func Singleton($semaphore)
- Local $ERROR_ALREADY_EXISTS = 183
- DllCall('kernel32.dll', 'int', 'CreateSemaphore', 'int', 0, 'long', 1, 'long', 1, 'str', $semaphore)
- Local $lastError = DllCall('kernel32.dll', 'int', 'GetLastError')
- If $lastError[0] = $ERROR_ALREADY_EXISTS Then Exit -1
- EndFunc
Advertisement
Add Comment
Please, Sign In to add comment