Documentation ¶
Index ¶
- func GetSteamCtx(debugPort string) (ctx context.Context, cancel func(), err error)
- func IsAppPropertiesTarget(target *target.Info) bool
- func IsKeyboardTarget(target *target.Info) bool
- func IsLibraryTarget(target *target.Info) bool
- func IsMenuTarget(target *target.Info) bool
- func IsQuickAccessTarget(target *target.Info) bool
- func ShowLoadingIndicator(debugPort, serverPort, authToken string) error
- func WaitForConnection(debugPort string)
- func WaitForLibraryEl(debugPort string) error
- type SteamClient
- func (sc *SteamClient) RunScriptInAppProperties(script string, title string) error
- func (sc *SteamClient) RunScriptInKeyboard(script string) error
- func (sc *SteamClient) RunScriptInLibrary(script string) error
- func (sc *SteamClient) RunScriptInMenu(script string) error
- func (sc *SteamClient) RunScriptInQuickAccess(script string) error
- func (sc *SteamClient) WaitForTarget(steamTarget SteamTarget) error
- type SteamTarget
- type UIMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSteamCtx ¶
GetSteamCtx returns the CDP context for the running Steam client.
func IsAppPropertiesTarget ¶
func IsKeyboardTarget ¶
func IsLibraryTarget ¶
func IsMenuTarget ¶
func IsQuickAccessTarget ¶
func ShowLoadingIndicator ¶
ShowLoadingIndicator shows a Crankshaft loading indicator in Steam.
func WaitForConnection ¶
func WaitForConnection(debugPort string)
func WaitForLibraryEl ¶
Types ¶
type SteamClient ¶
type SteamClient struct { Cancel func() UiMode UIMode // contains filtered or unexported fields }
SteamClient is a wrapper around CDP commands that allow you to run scripts in and retrieve information about the running Steam client.
func NewSteamClient ¶
func NewSteamClient(debugPort string) (*SteamClient, error)
NewSteamClient creates and initializes a new SteamClient.
func (*SteamClient) RunScriptInAppProperties ¶
func (sc *SteamClient) RunScriptInAppProperties(script string, title string) error
func (*SteamClient) RunScriptInKeyboard ¶
func (sc *SteamClient) RunScriptInKeyboard(script string) error
func (*SteamClient) RunScriptInLibrary ¶
func (sc *SteamClient) RunScriptInLibrary(script string) error
func (*SteamClient) RunScriptInMenu ¶
func (sc *SteamClient) RunScriptInMenu(script string) error
func (*SteamClient) RunScriptInQuickAccess ¶
func (sc *SteamClient) RunScriptInQuickAccess(script string) error
func (*SteamClient) WaitForTarget ¶
func (sc *SteamClient) WaitForTarget(steamTarget SteamTarget) error
WaitForTarget waits for the given target to be found.
type SteamTarget ¶
type SteamTarget string
SteamTarget indicates which of the Steam Client's CDP targets you want to use as the context for whatever command you're executing.
const ( LibraryTarget SteamTarget = "SP" KeyboardTarget SteamTarget = "SP_Keyboard" MenuTarget SteamTarget = "MainMenu" QuickAccessTarget SteamTarget = "QuickAccess" AppPropertiesTarget SteamTarget = "AppProperties" )
Click to show internal directories.
Click to hide internal directories.