Click or drag to resize
Ranorex

HostActivateWindowsApp Method (String, String, String)

Activates the windows app with the specified app user model ID and arguments.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public void ActivateWindowsApp(
	string appId,
	string appFamilyName,
	string arguments
)

Parameters

appId
Type: SystemString
The ID of the app.
appFamilyName
Type: SystemString
The family name of the app.
arguments
Type: SystemString
Arguments passed to the app on activation. Depending on the implementation of the app, these arguments may only be available when the app is currently not running.
Remarks
To automate Windows apps a process needs to be elevated, however, Windows apps can only be activated from a non-elevated process. Therefore, This methods starts a new non-elevated process that activates the Windows app.

A timeout of one minute is used (see ActivateWindowsApp(String, String, Duration)).

See Also