New question #267301 on Sikuli:
https://answers.launchpad.net/sikuli/+question/267301

I am trying to see if a window is open and gets its region if its not then 
start it and get the region. here is what i have.

myApp = ("Charlie")

if not myApp.window():
    vBox = App.open("c:\\Program Files\\Oracle\\VirtualBox.exe")
    charlieVM = App.open("c:\\Program Files\\Oracle\\VirtualBox\\VBoxManage.exe 
startvm Charlie")
    vbox.close()
myApp.focus()
regCharlie = Region(charlieVM.focusedWindow())
setROI(regCharlie)
...

if the window doesnt exist it start its up and gets the correct region however 
if the window is already open i get
an incorrect region.  (-200,-200,100,100). the window is not minimized if that 
matters

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to