-
Notifications
You must be signed in to change notification settings - Fork 102
Command line interface
When SimHub is already running it's possible to control Simhub from command line (Feature available from Simhub 6.8.7)
Note : from Simhub 9.5.6 commands can be called at initial load when relevant.
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -minimize
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -restore
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -exit
Changes the active game :
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -switchgame GameCode
Examples :
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -switchgame AssettoCorsa
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -switchgame rfactor2
Game codes can be found in C:\Program Files (x86)\SimHub\PluginsData Every game used get a folder created with its own code.
Select game and start an existing replay :
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -startreplay AssettoCorsa "20191023_203048.telemetry"
Please note that the telemetry extension is without .json
Triggers a simhub action by it's name :
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -triggeraction ActionName
Example :
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -triggeraction ShakeITBSV3Plugin.MainFeedbackLevelIncrement
Creates a new input in SimHub and triggers it (can be used to map actions) :
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -triggerinput MyInput
Creates a new input in SimHub and triggers it (can be used to map actions) : Warning ! You must call triggerinputrelease after using trigger triggerinputpress
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -triggerinputpress MyInput
Creates a new input in SimHub and triggers it (can be used to map actions) :
"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -triggerinputrelease MyInput
Warning : To be able to map a CLI input, SimHub must be focused, to trigger the input you can use any "Shortcut manager" (mouse utility, Stream deck and similar tools ..)
