← Back to team overview

sikuli-driver team mailing list archive

[Question #661522]: User clicks as input

 

New question #661522 on Sikuli:
https://answers.launchpad.net/sikuli/+question/661522

I am searching for half an hour, but I can't find anything relevant.

variable = int(input("Give me a number"))

The above line, opens a window where the user is asked to input an integer.

What I need is a similar method but instead of an integer, I want Sikuli to expect for the user to click or indicate a region.
Then :
if the user clicked, I want to capture the x,y coordinates and store them to a list.
if the user indicated a region, store that region to a list.

I don't need both methods. One of them is more than enough.

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