Exemple #1
0
 def click(self, words):
     button = 'left'
     direction = 'both'
     if len(words) > 1:
         if words[1] in ['right', 'middle']:
             button = words[1]
         if words[-1] in ['up', 'down']:
             direction = words[-1]
     # by default (no args), mouse left-clicks down, then releases
     api.mouse_click(button=button, direction=direction)
Exemple #2
0
 def click(self, words):
     button = 'left'
     direction = 'both'
     if len(words) > 1:
         if words[1] in ['right', 'middle']:
             button = words[1]
         if words[-1] in ['up', 'down']:
             direction = words[-1]
     # by default (no args), mouse left-clicks down, then releases
     api.mouse_click(button=button, direction=direction)
 def click(self, words):
     num = '1'
     if words[-1].isdigit():
         num = words[-1]
     api.mouse_click('left', 'both', num)
 def click(self, words):
     num = '1'
     if words[-1].isdigit():
         num = words[-1]
     api.mouse_click('left', 'both', num)
Exemple #5
0
 def mouse_click(self, words):
     api.mouse_click()
Exemple #6
0
 def click(self, words):
     api.mouse_click()