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
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
I have been trying to use this same basic schema: emule.exe" ) steam.exe" )
a = App(r"C:\Program Files (x86)\eMule\
b = App(r"C:\Program Files (x86)\Steame\
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: steam.exe( 0) #0
[log] App.focus C:\Program Files (x86)\Steam\
[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: steam.exe( 0) #0
[log] App.focus C:\Program Files (x86)\Steam\
[log] App.focus c:\Program Files (x86)\eMule\ emule.exe( 0) #0
[log] App.focus C:\Program Files (x86)\Steam\ steam.exe( 4804) #0 steam.exe( 4804) not found
[error] App.focus failed: C:\Program Files (x86)\Steam\
[log] App.focus c:\Program Files (x86)\eMule\ emule.exe( 4192) #0 emule.exe( 4192) not found
[error] App.focus failed: c:\Program Files (x86)\eMule\