Skip to content

A class used for sending inputs via VK codes and win32 API moved from Helper/curses.py

Notifications You must be signed in to change notification settings

itzCozi/Py-Keyboard-Class

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 

Repository files navigation

Py-Keyboard-Class

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.

Code Pics

main class doc-string
Keyboard class doc-string

Keyboard input class
Main Keyboard input class (before static type hinting was added)

Code Rules

  • 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)

Extra

Source
Releases
Compiler

Contact Me

Discord: .baddeveloper
Email: [email protected]
Discord Server | Replit | Twitter

About

A class used for sending inputs via VK codes and win32 API moved from Helper/curses.py

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages