示例#1
0
def mouse_click(button,repeat=1):
    """
        1=left
        2=mid
        3-right
    """
    basic._exe("xdotool  click --repeat %d %d"%(repeat,button))
示例#2
0
def mouse_click(button, repeat=1):
    """
        1=left
        2=mid
        3-right
    """
    basic._exe("xdotool  click --repeat %d %d" % (repeat, button))
示例#3
0
def mouse_scroll(action, repeat=1):
    button = 4 if action == "up" else 5
    basic._exe("xdotool  click --repeat %d %d" % (repeat, button))
示例#4
0
def mouse_move(x=0, y=0):
    basic._exe("xdotool mousemove %d %d" % (x, y))
示例#5
0
def window_resize(width, height):
    basic._exe("xdotool getactivewindow windowsize %d %d" % (width, height))
示例#6
0
def window_close():
    basic._exe("xdotool getactivewindow windowkill")
示例#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))")
示例#8
0
def window_move(x, y):
    basic._exe("xdotool getactivewindow windowmove %d %d" % (x, y))
示例#9
0
def window_minimize():
    basic._exe("xdotool getactivewindow windowminimize")
示例#10
0
def mouse_scroll(action,repeat=1):
    button=4 if action=="up" else 5
    basic._exe("xdotool  click --repeat %d %d"%(repeat,button))
示例#11
0
def mouse_move(x=0,y=0):
    basic._exe("xdotool mousemove %d %d"%(x,y))
示例#12
0
def window_resize(width,height):
    basic._exe("xdotool getactivewindow windowsize %d %d"%(width,height))
示例#13
0
def window_close():
    basic._exe("xdotool getactivewindow windowkill")
示例#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))")
示例#15
0
def window_move(x,y):
    basic._exe("xdotool getactivewindow windowmove %d %d"%(x,y))
示例#16
0
def window_minimize():
    basic._exe("xdotool getactivewindow windowminimize")