I have been trying to use this same basic schema: a = App(r"C:\Program Files (x86)\eMule\emule.exe") b = App(r"C:\Program Files (x86)\Steame\steam.exe") wait(5) a.focus() wait(2) b.focus() wait(2) a.focus() wait(2) b.focus() wait(2)
When both steam and emule are turned off it creates both, brings steam to focus but does not bring emule to focus again. The log says: [log] App.focus C:\Program Files (x86)\Steam\steam.exe(0) #0 [log] App.focus c:\Program Files (x86)\eMule\emule.exe(0) #0 [log] App.focus C:\Program Files (x86)\Steam\steam.exe(5420) #0 [log] App.focus c:\Program Files (x86)\eMule\emule.exe(3660) #0 When both are already working it does not create a new versions of then and does not change the focus. The log says: [log] App.focus C:\Program Files (x86)\Steam\steam.exe(0) #0 [log] App.focus c:\Program Files (x86)\eMule\emule.exe(0) #0 [log] App.focus C:\Program Files (x86)\Steam\steam.exe(4804) #0 [error] App.focus failed: C:\Program Files (x86)\Steam\steam.exe(4804) not found [log] App.focus c:\Program Files (x86)\eMule\emule.exe(4192) #0 [error] App.focus failed: c:\Program Files (x86)\eMule\emule.exe(4192) not found -- You received this bug notification because you are a member of Sikuli Drivers, which is subscribed to Sikuli. https://bugs.launchpad.net/bugs/1008113 Title: [request] Windows: want better support with App.focus() and switchApp()? Status in Sikuli: In Progress Bug description: Is there some bug with focus() or switchApp() handled on windows? I noticed that if I use the same method on mac it works find and puts the application in the front, but when using it on windows it does not. what I did was put the application (ff) behind a different application (ie) and want to get a focus on it so it becomes the application in front. code: switchApp('firefox') or ff = App('firefox') ff.focus() - another q, is that if the application is minimized (win or mac), would focus() also work and open the application and put it in focus()? To manage notifications about this bug go to: https://bugs.launchpad.net/sikuli/+bug/1008113/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~sikuli-driver Post to : [email protected] Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp

