示例#1
0
def skipToNextItem(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.shift)
    keyboard.press(Key.right)
    keyboard.release(Key.shift)
    keyboard.release(Key.right)
    keyboard.press(Key.shift)
    keyboard.press("n")
    keyboard.release(Key.shift)
    keyboard.release("n")
示例#2
0
def pressNum7(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "7"
    keyboard.press(key)
    keyboard.release(key)
示例#3
0
def Fullscreen(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "f" 
    keyboard.press(key)
    keyboard.release(key)
示例#4
0
def pressDownArrow(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.down)
    keyboard.release(Key.down)
示例#5
0
def pressRightArrow(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.right)
    keyboard.release(Key.right)
示例#6
0
def miniplayer(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "i" 
    keyboard.press(key)
    keyboard.release(key)
示例#7
0
def pressESC(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.esc)
    keyboard.release(Key.esc)
示例#8
0
def theaterMode(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "t" 
    keyboard.press(key)
    keyboard.release(key)
示例#9
0
def mute(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "m" 
    keyboard.press(key)
    keyboard.release(key)
示例#10
0
def closePlayer(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "x" 
    keyboard.press(key)
    keyboard.release(key)
示例#11
0
def pressSpacebar(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.space)
    keyboard.release(Key.space)