-
Notifications
You must be signed in to change notification settings - Fork 1
Backend Goodies
As Ctrl-V++ is completely and entirely open-source under the MIT license, the code should be understood by the users. Transparency is key in an open-source project, so below is a simple guide to how the code works.
-
Import all the libraries Many libraries are needed to process information, make commands, and control the keyboard for pasting operations.
-
Define basic functions Basic functions to make variables, start logging for debugging, and to make a set of instructions for how the computer should save text.
-
Listen for inputs We have to listen for the user's keystrokes, so we can use a highly frequent loop to gather the keyboard inputs and act on the one's that pretrain to copying and pasting.
-
Act on the inputs Once we hear those inputs from the user, we can finally act on them. When the user copies text, we save it to the cache that they wanted or passed in, and when the user pastes from that cache we can put the text onto the screen based on where the user has highlighted.