← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #215287]: Get height of windows-taskbar

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
You could open an application, whose foreground window is easy to get,
maximize it (alt-blank (window menu), alt-maximize) and ret the window's
region.

e.g.
openApp("notepad")
wait(3)
# now make the type()'s to maximize the window
wait(1)
w = App.focusedWindow()
print "width", w.w
print "height", w.h

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