Skip to content

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Hotkeys

Example Usage

if __name__ == "__main__":
    from lib.Hotkey import HK_Controller, Hotkey

    print("--")
    print()

    controller = HK_Controller()
 
    walk = Hotkey("alt+1", lambda: print("Hello, "), lambda: print("World!"))
    #                      ^ On State                ^ Off State

    controller.register(walk)
    controller.start_listeners()

    controller.wait()

That's all there is to it!




requirements:

  • keyboard

About

Hotkey binding in python

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages