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