← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #332104]: App finds and focus on the wrong window

 

Question #332104 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/332104

Fabien Four posted a new comment:
This:
myApp = App("the app having the window titled Output")
 if not myApp .isRunning(): exit(1) # checks wether the app is running
 myApp .focus() # brings your app to front

brings to front any window with "Output" in their titles. It only works
if no other window has "output" within its title. I had to close
notepad++, qtcreator and move my siklux installation somewhere else
before it could focus on the right window.

I would understand that it could bring to front other windows if their
title was "output". but their titles only contain the word "output" and
it bring them in front of my "output" window. I guess I'm just surprised
it doesn't use an exact match with the title.

I guess I would need to close all other applications for now...

Thank you for the fast answers!!!!!

PS: You might call it a (weak) implementation of the feature, but
actually it is a bug ;-)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.