 | 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
Syntaxpublic void ActivateWindowsApp(
string appId,
string appFamilyName,
string arguments
)
Public Sub ActivateWindowsApp (
appId As String,
appFamilyName As String,
arguments As String
)
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.
RemarksTo 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