I would like to start an app and control it later via automatic inputs (shell-commands).
However, the controls only work correctly as long as the app is active in the foreground and is not finished or running in the background.
Is there a test option for this?
Example:
Int2 = Pm.GetApplicationIntent ("ccc71.bmw") 'Packagename via PackageName Viewer
If Int2.IsInitialized Then
StartActivity (Int2) 'Start app
End If
If ispaused (int2) = False then 'Test if app is still running
Shellcommand = "input tap 270 410" 'Touch input
Shellcommand 'Sub Shellcommand
End If
it does not work.
Thanks Jürgen
However, the controls only work correctly as long as the app is active in the foreground and is not finished or running in the background.
Is there a test option for this?
Example:
Int2 = Pm.GetApplicationIntent ("ccc71.bmw") 'Packagename via PackageName Viewer
If Int2.IsInitialized Then
StartActivity (Int2) 'Start app
End If
If ispaused (int2) = False then 'Test if app is still running
Shellcommand = "input tap 270 410" 'Touch input
Shellcommand 'Sub Shellcommand
End If
it does not work.
Thanks Jürgen