How can I make a triple click in Sikuli?

I am trying to select a whole line of text on a web page (in a table) using Sikuli. The easiest way to select text is to triple click on it. Is there a way to make a triple click in Sikuli? Thank!

+3
source share
6 answers

GregH,

I have the following to work for me:

click(img.png)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)
wait(0.01)
mouseDown(Button.LEFT)
mouseUp(Button.LEFT)

This allowed me to triple click on a button, link, or what I needed to click.

+4
source

This works for me:

def tripleClick(PSMRL):
    hover(PSMRL)
    for x in xrange(3):
        mouseDown(Button.LEFT)
        mouseUp()
+4
source

, , , , " "

+1

? - :

for x in xrange(3):
  region.mouseDown()
  region.mouseUp()
0

, , . , , , / , . 2 = , 3 = . , Windows ( , ..).

.

, 3 , , , ?

0

I use .click()will be enough.
.click()- left mouse button .rightClick()is the right mouse button.

For instance:

image1 = ("image1.png")
def multiClick(nTime):
    imageLoc = find(image1)
    for n in xrange(nTime):
        imageLoc.click()

# Click 3 times. 
multiClick(3)
0
source

Source: https://habr.com/ru/post/1732492/


All Articles