Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; *******************************************************************************************
- ; This script requires you to make a .bat batch file named exactly: clear_withrandomizer.bat
- ; It must be put in your HyperSpin root directory; and, change the directory below from the
- ; "D:\Arcade\" to your root directory location.
- ; You must change it throughout this script too below too, so I suggest using a Find/Replace All
- ; You need to create (right click blank area in windows and choose "new" and then "Windows batch file"
- /* Start Batch File after this line:
- @echo off
- Echo Just in Case:
- ECHO Clearing Game Cache Directory ...
- rmdir cache /q /s
- mkdir cache
- Del D:\Arcade\Media\Frontend\Video\intro.flv
- D:\Arcade\Media\Frontend\Video\swapit.bat
- Echo Done!
- exit
- End Batch File before this line */
- ; Next, navigate to your HS Root directory \Media\Frontend\Video folder and make a new folder: Intros
- ; Drop any .FLV intro videos in there, I recommend keeping them short so they are randomized quickly.
- ; Lastly, you need to download this file swapit.bat and place it in your Media\Frontend\Video folder:
- ; https://pastebin.com/r1YGHMYZ
- ; This is the randomizer that is called on in the batch file you made above.
- ; FINALLY - The actual script:
- #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
- ; #Warn ; Enable warnings to assist with detecting common errors.
- SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
- SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
- ; This is to see if script is running in admin mode, won't work without, so it'll reopen in admin if it wasn't.
- if not A_IsAdmin
- {
- Run *RunAs "%A_ScriptFullPath%"
- ExitApp
- }
- ; Note, all dialog boxes have a 10 secocnd timeout for people on a machine without easy access to keyboard.
- MsgBox, 291,, This toggles the 30second intro video when HyperSpin (HS) is started up. Would you like to enable it?`n`nYes = Enable showing a brief intro when you first start HS `nNo = Disable the intro video `nCancel = No change (cancel this process)
- IfMsgBox Yes
- {
- ; Change to video intro
- IniWrite, true, D:\Arcade\Settings\Settings.ini, IntroVideo, Use_Intro
- IniWrite, true, D:\Arcade\Settings\Settings.ini, IntroVideo, Stop_On_Keypress
- MsgBox, 4, , Do you want them RANDOMIZED each time you start?
- IfMsgBox Yes
- {
- IniWrite, clear_withrandomizer.bat, D:\Arcade\Settings\Settings.ini, Exit Program, Executable
- ;FileMove, D:\Arcade\clear.bat, D:\Arcade\clear - backup.bat, 1
- ;FileMove, D:\Arcade\clear_withrandomizer.bat, D:\Arcade\clear.bat, 1
- MsgBox, 0, , Intro Videos for HS are on`, and they will be Randomized.`n`n`n`n(This box self-destructs in 10 seconds for arcades without key/mouse), 10
- ExitApp
- }
- else
- {
- IniWrite, clear.bat, D:\Arcade\Settings\Settings.ini, Exit Program, Executable
- MsgBox, 0, , Intro Video for HS is on`, but not randomized.`n`n`n`n(This box self-destructs in 10 seconds for arcades without key/mouse), 10
- ExitApp
- }
- }
- IfMsgBox No
- {
- ; Change back to original mode
- ;FileMove, D:\Arcade\clear.bat, D:\Arcade\clear_withrandomizer.bat, 1
- ;FileMove, D:\Arcade\clear - backup.bat, D:\Arcade\clear.bat, 1
- IniWrite, clear.bat, D:\Arcade\Settings\Settings.ini, Exit Program, Executable
- IniWrite, false, D:\Arcade\Settings\Settings.ini, IntroVideo, Use_Intro
- IniWrite, false, D:\Arcade\Settings\Settings.ini, IntroVideo, Stop_On_Keypress
- MsgBox, 0, , Intro Video for HS is now off. To re-enable`, just re-run this toggle.`n`n`n`n(This box self-destructs in 10 seconds for arcades without key/mouse), 10
- ExitApp
- }
- else
- {
- MsgBox, 0, , Exiting without changes., 1
- ExitApp
- }
- Return
- ExitApp
Add Comment
Please, Sign In to add comment