[1.1.4]How to get all apps with the same name on windows
system: windows 10
situation: There are 5 applications with the same name running on the system. (With different PIDs)
problem:
In version 1.1.2, I can use App("some-
If I use APP("app-
So , I want to know how can I get All the windows that contains the same keyword in their window titles. My scripts are as follow(It runs well in 1.1.2, but failed to find any windows in 1.1.4):
def getApp(sKeyWord):
allClient = App("+%s" % sKeyWord)
clientList = []
windowList = []
if not allClient:
return clientList, 0, windowList
iMainWindow
for i in range(10):
oneClient = allClient.focus(i)
#oneClient = allClient
pid = oneClient.getPID()
if pid <= 0:
break
w = oneClient.
if not w.isValid():
info_
return clientList, len(windowList), windowList
getApp("Revision")
result:
in 1.1.2:
[22:37:
[22:37:
[22:37:
in 1.1.4:
[error] App.focus failed: not running: [-1:+Revision (???)] +Revision
[22:38:
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: