A class used for handling inputs via VK codes and win32 API moved from Helper/curses.py. The Keyboard class can send inputs via functions like scrollMouse
, pressAndReleaseKey
, keyboardWrite
and pressAndReleaseMouse
it can also return keystrokes using the GetKeystroke
wrapper which polls key presses.
Main Keyboard input class (before static type hinting was added)
- All paths use '/' to separate dirs instead of '' like windows
- All variable declarations must be type hinted EX: num: int = 0
- All classes and functions use CamelCase variables use snake_case
- If a function has parameters each variable must have specified types
- When assigning parameters in functions dont use spaces between equals sign
- Functions without 'self' parameter in a class must have the @staticmethod tag
- Whenever in a formatted string use double quotes and then single quotes to end
- References to variables must be in double quotes EX: (var: "5" is not a number)
- If a variable or function uses more than one type use EX: num: int | float = 0.1
- When outputting a message like info or an error end the print statement with a period
- Make sure optional parameters are specifed in the functions doc-string EX: output_path (str, optional)
Discord: .baddeveloper
Email: [email protected]
Discord Server | Replit | Twitter