← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #172793]: Detecting the Edge of the Screen

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- move warning window
Test this manually: If you move the warning window slightly to top-left will the next warning window open based on the position of the window, you just moved before or will it ignore the movement and constantly step right-down?
If it does not ignore:
Just drag and drop the window slightly top-left, before clicking "yes". This should keep it in place.

--- if above does not work
take the position/dimension of the match of the warning window and compare them to the screen dimensions:
m = getLastMatch() # after finding warning window
if m.y+m.h > getBounds().h-50: print "going to be hidden next time"

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