Exemplo n.º 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")
Exemplo n.º 2
0
def pressNum7(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "7"
    keyboard.press(key)
    keyboard.release(key)
Exemplo n.º 3
0
def Fullscreen(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "f" 
    keyboard.press(key)
    keyboard.release(key)
Exemplo n.º 4
0
def pressDownArrow(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.down)
    keyboard.release(Key.down)
Exemplo n.º 5
0
def pressRightArrow(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.right)
    keyboard.release(Key.right)
Exemplo n.º 6
0
def miniplayer(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "i" 
    keyboard.press(key)
    keyboard.release(key)
Exemplo n.º 7
0
def pressESC(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.esc)
    keyboard.release(Key.esc)
Exemplo n.º 8
0
def theaterMode(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "t" 
    keyboard.press(key)
    keyboard.release(key)
Exemplo n.º 9
0
def mute(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "m" 
    keyboard.press(key)
    keyboard.release(key)
Exemplo n.º 10
0
def closePlayer(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    key =  "x" 
    keyboard.press(key)
    keyboard.release(key)
Exemplo n.º 11
0
def pressSpacebar(Program):
    WindowsProgramControl.switchFocus(Program)
    keyboard = Controller()
    keyboard.press(Key.space)
    keyboard.release(Key.space)