← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #244304]: How to rightclick at current mouse position & Right click Context menu keyboard button constant help

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
- a click(whatever) always click on whatever 
- if whatever is an image or a pattern, this is first searched in the given region (the whole screen with just click and the region reg in case of reg.click(image or pattern)
- if whatever is not given at all (click()) clicks on the centre of the given region (screen center in this case, center of reg in case of reg.click()
- if in the respective region (screen with click() and reg in case of reg.click()) something was searched before (either explicitly with find/wait/exists or implicitly with click(image or pattern) then this last match is clicked (hence in this case click() is equivalent to click(getLastMatch()), and reg.click() is equivalent to reg.click(getLastMatch())

this all applies to rightClick(), doubleClick(), hover() as well

- click(mouseAt()) clicks at the current mouse position

- to produce any key combination use type()

the docs know more: http://doc.sikuli.org

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