Skip to content

Instantly share code, notes, and snippets.

@Gordin
Created October 3, 2019 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gordin/cc670108e2cd3803d164b910684c5516 to your computer and use it in GitHub Desktop.
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)
#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