← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #660880]: Sikuli popup timeout

 

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

masuo proposed the following answer:
@arminius
Please read docs carefully.

These are the possible parameters and their defined sequence:
[message] a declarative text to be shown in the dialog (all methods, default "not set")
[title] the dialog box title (all methods, default "SikuliX")
[preset] a prefilled input text (input, default empty)
[hidden] a boolean value, True/true will show the input text as dots ((input, default False/false)
[timeout] an integer as seconds after that the dialog will autoclose (all methods, default stay open)
[location] a Region object, over which the dialog will be displayed centered (all methods, default screen center) which allows to place the dialog anywhere on the screen. As a convenience you can use Region(x, y) if you want to specify a point. Hence no need to use popAt().

[example with popup]
timeout = 3
location = Region(200,200)
Do.popup("message","title",timeout,location)

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