← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #689304]: popups on wrong screen

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
made some quick tests with a 2 monitor setup in Windows 10:

if nothing else is said, the the Do.pop... features are always shown on
the primary monitor (Python: SCREEN or Screen(0)), which has the point
(0, 0) in the global coordinate system.

BTW:
result = Do.popError("", "Unable to Launch the dashboard-retsrate is required", "", False, 3)

should be

result = Do.popError("Unable to Launch the dashboard\nretsrate is
required",  3)

the first string is the message shown in the box, the second parameter
is the title of the box.

if you want to have a Do.pop... on a specific of your screens:

result = Do.popError("", "Unable to Launch the dashboard-retsrate is
required", "", False, 3, Screen(1))

which would display the popup on the first not-primary monitor.

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.