Skip to content

Instantly share code, notes, and snippets.

@aiya000
Last active July 13, 2020 15:48
Show Gist options
  • Save aiya000/d2b1f0ec817ca45672a0f8b9ec5e4142 to your computer and use it in GitHub Desktop.
Save aiya000/d2b1f0ec817ca45672a0f8b9ec5e4142 to your computer and use it in GitHub Desktop.
Record&Replay VRC With Xbox Game bar. (The origin is https://booth.pm/ja/items/2026998)
{
"App1": {
"ApplicationName": "Record VRC With Xbox Game Bar",
"FilePath": "recordVRC.bat",
"WorkingDirectory": "./Scripts",
"Arguments": "",
"StartupDialogMainText": "Record VRC with Xbox Game Bar?",
"StartupDialogSubText": "押すごとに録画開始/録画終了を行う",
"MinimumLaunch": true
},
"App2": {
"ApplicationName": "Replay VRC with Xbox Game Bar",
"FilePath": "recordReplayVRC.bat",
"WorkingDirectory": "./Scripts",
"Arguments": "",
"StartupDialogMainText": "Record Instance Replay of VRC?",
"StartupDialogSubText": "押すごとに過去の映像を録画",
"MinimumLaunch": true
},
"App3": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App4": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App5": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App6": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App7": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App8": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App9": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App10": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App11": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App12": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App13": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App14": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App15": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"App16": {
"ApplicationName": "None",
"FilePath": "",
"WorkingDirectory": "",
"Arguments": "",
"StartupDialogMainText": "%name%を起動しますか?",
"StartupDialogSubText": "",
"MinimumLaunch": false
},
"jsonVer": 2
}
Param([String]$title = "VRChat")
$process = Get-process -Name $title
(New-Object -ComObject WScript.Shell).AppActivate($process.MainWindowTitle)
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.SendKeys]::SendWait("%^r")
Param([String]$title = "VRChat")
$process = Get-process -Name $title
(New-Object -ComObject WScript.Shell).AppActivate($process.MainWindowTitle)
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.SendKeys]::SendWait("%^g")
@aiya000
Copy link
Author

aiya000 commented Jul 13, 2020

  1. Replace same name files on your vaniimenu (fornomenu).
  2. On the Game Bar config window, set Alt+Ctrl+f to replay
  3. Set Alt+Ctrl+g to record
    to
    (Alternatively, You can set your favorite key to record/replay and modify .ps1 files.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment