Exemplo n.º 1
0
def mouse_click(button,repeat=1):
    """
        1=left
        2=mid
        3-right
    """
    basic._exe("xdotool  click --repeat %d %d"%(repeat,button))
Exemplo n.º 2
0
def mouse_click(button, repeat=1):
    """
        1=left
        2=mid
        3-right
    """
    basic._exe("xdotool  click --repeat %d %d" % (repeat, button))
Exemplo n.º 3
0
def mouse_scroll(action, repeat=1):
    button = 4 if action == "up" else 5
    basic._exe("xdotool  click --repeat %d %d" % (repeat, button))
Exemplo n.º 4
0
def mouse_move(x=0, y=0):
    basic._exe("xdotool mousemove %d %d" % (x, y))
Exemplo n.º 5
0
def window_resize(width, height):
    basic._exe("xdotool getactivewindow windowsize %d %d" % (width, height))
Exemplo n.º 6
0
def window_close():
    basic._exe("xdotool getactivewindow windowkill")
Exemplo n.º 7
0
def switch_desktop_workspace(pointer):
    if pointer == "next":
        basic._exe("xdotool set_desktop $((`xdotool get_desktop`+1))")
    else:
        basic._exe("xdotool set_desktop $((`xdotool get_desktop`-1))")
Exemplo n.º 8
0
def window_move(x, y):
    basic._exe("xdotool getactivewindow windowmove %d %d" % (x, y))
Exemplo n.º 9
0
def window_minimize():
    basic._exe("xdotool getactivewindow windowminimize")
Exemplo n.º 10
0
def mouse_scroll(action,repeat=1):
    button=4 if action=="up" else 5
    basic._exe("xdotool  click --repeat %d %d"%(repeat,button))
Exemplo n.º 11
0
def mouse_move(x=0,y=0):
    basic._exe("xdotool mousemove %d %d"%(x,y))
Exemplo n.º 12
0
def window_resize(width,height):
    basic._exe("xdotool getactivewindow windowsize %d %d"%(width,height))
Exemplo n.º 13
0
def window_close():
    basic._exe("xdotool getactivewindow windowkill")
Exemplo n.º 14
0
def switch_desktop_workspace(pointer):
    if pointer=="next":
        basic._exe("xdotool set_desktop $((`xdotool get_desktop`+1))")
    else:
        basic._exe("xdotool set_desktop $((`xdotool get_desktop`-1))")
Exemplo n.º 15
0
def window_move(x,y):
    basic._exe("xdotool getactivewindow windowmove %d %d"%(x,y))
Exemplo n.º 16
0
def window_minimize():
    basic._exe("xdotool getactivewindow windowminimize")