Created
October 3, 2019 17:10
-
-
Save Gordin/cc670108e2cd3803d164b910684c5516 to your computer and use it in GitHub Desktop.
Disables the OVRLibrarian program from Oculus while Beat Saber is running. (Needs to be run as administrator)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Persistent | |
SetTimer, beatsabercheck, 2000 | |
process_name := "Beat Saber.exe" | |
Librarian := "C:\Program Files\Oculus\Support\oculus-librarian\OVRLibrarian.exe" | |
Librarian_bak := "C:\Program Files\Oculus\Support\oculus-librarian\OVRLibrarian_bak.exe" | |
beatsabercheck: | |
ifWinExist, ahk_exe %process_name% | |
{ | |
if FileExist(Librarian) | |
FileMove, %Librarian%, %Librarian_bak% | |
} | |
else | |
{ | |
if FileExist(Librarian_bak) | |
FileMove, %Librarian_bak%, %Librarian% | |
} | |
return |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment