예제 #1
0
파일: maker.py 프로젝트: utecht/webm-maker
def main():
    hotpy.register(handle_f9, 'F9', ['Alt'])
    hotpy.register(lambda: False, 'F9', ['Ctrl'])  # exit

    print("A Series of Tubes, v{}".format(VERSION))
    print("A simple webm maker")

    print("\nBrought to you by Quasar, Joseph, and The Cult of Done\n")

    print("Press Alt+F9 to start recording!")
    print("Press Ctrl+F9 to exit.\n\n")

    hotpy.listen()
예제 #2
0
파일: maker.py 프로젝트: quasarj/webm-maker
def main():
    if args.debug:
        print("Values read from config file:")
        print("record_hotkey=", config.record_hotkey)
        print("exit_hotkey=", config.exit_hotkey)
        print("half_size_capture=", config.half_size_capture)
        print("encode_parameters=", config.encode_parameters)
        print("cleanup=", config.cleanup)
        print("\n\n")

    hotpy.register(handle_f9, *config.record_hotkey)
    hotpy.register(exit, *config.exit_hotkey)

    print("Press {} to start recording!".format(
         hotkey_printable_name(config.record_hotkey)))
    print("Press {} to exit.\n\n".format(
         hotkey_printable_name(config.exit_hotkey)))

    hotpy.listen()