Skip to content

Command line interface

Wotever edited this page Jan 11, 2021 · 5 revisions

When SimHub is already running it's possible to control Simhub from command line (Feature available from Simhub 6.8.7)

Actions

Minimize main window

"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -minimize

Restore main window

"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -restore

Exit simhub

"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -exit

Switch current game

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

Trigger Action

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

Trigger Input

Creates a new input in SimHub and triggers it (can be used to map actions) :

"C:\Program Files (x86)\SimHub\SimHubWPF.exe" -triggerinput MyInput

Trigger Input Press

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

Trigger Input Release

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 ..)

Clone this wiki locally