← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #205272]: Maximize the window - Mac

 

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

Neo posted a new comment:
Super. The applescript worked for me. here is method I wrote. Is this
fine, works always ..?

def maximize_myWindow():
    cmd = """osascript<<END
    tell application "System Events"
    tell process "<myApp>"		
    click button 2 of window 1	
    end tell
    end tell
    """ 
    os.system(cmd)

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