Beispiel #1
0
    def release(self, x, y, button=1):
        if isinstance(button, str):
            button = BUTTON.get(button)
        action, e = BUTTON_UP.get(button)

        self.move(x, y)
        winapi.mouse_event(action, x, y, 0, 0)
        print action
Beispiel #2
0
 def release(self, x, y, button=1):
     if isinstance(button, str): 
         button = BUTTON.get(button)
     action, e = BUTTON_UP.get(button)
         
     self.move(x,y)
     winapi.mouse_event(action, x, y, 0,0)
     print action
Beispiel #3
0
    def press(self, x, y, button=1):
        if isinstance(button, str):
            button = BUTTON.get(button)
        action, e = BUTTON_DOWN.get(button)

        self.move(x, y)
        winapi.mouse_event(action, x, y, e, 0)
        print action
Beispiel #4
0
 def press(self, x, y, button=1):
     if isinstance(button, str): 
         button = BUTTON.get(button)
     action, e = BUTTON_DOWN.get(button)
         
     self.move(x,y)
     winapi.mouse_event(action, x, y, e, 0)
     print action