Problem using App.closeApp("someApp.exe")

Asked by Uwin Adri

Hello there again! I m working on a project using sikuli-script.jar, in Java. My problem is that when I use Env.getOSUtil().openApp("calc.exe") this works prety good, but when I try to close the application like this Env.getOSUtil().closeApp("calc.exe"), it doesn't. Is there another way to overcome this? I have tried the class App and I get the same result.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

-- 1: you should use the App class, because this is the top level class

-- 2: on Windows you have to use (some part of) the window text, if you want to close a running app or visible window

Can you help with this problem?

Provide an answer of your own, or ask Uwin Adri for more information if necessary.

To post a message you must log in.