← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #265384]: App.focus() fails to focus

 

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

    Status: Answered => Open

akshata is still having a problem:
Thanks for the solution. I tried to get the VS window out of the way for
the moment and bring it back afterwards.

But, when I minimize VS window how do I focus(or restore) VS window ?
I tried the following to that but it didn't work, please let me know if there is any other way to do it.

VS = App.focus(Visual Studio)
type(" ", KeyModifier.ALT) 
wait(1)
type("n")
App.focus(window2)
-------- Some other code -------
VS = App.focus(Visual Studio)
VS.focus()
type(" ",KeyModifier.ALT)      -----the restore of VS window doesn't work
wait(1)
type("w")
wait(1)
type(" ",KeyModifier.ALT)        
wait(1)
type("x")



Thanks.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.