← Back to team overview

sikuli-driver team mailing list archive

[Question #267301]: having a problem getting the region of an open window in 1.1

 

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.