# since spacebar is mostly used while typing, we will replace key.space with an actual space # on pressing keys such as spacebar, we get AttributeError, hence except AttributeError # store each key one by one as a character into log, keys other than character is not accepted (keys such as tabs, backspace, space etc.) hence try and except is implemented # log is declared out of all the functions, this is where all the characters are stored, it is a global variable Where we’ll store those typed keys and send it to the specified email address after every defined periodĪlso, if you see, there's an additional 'u' printed before every character. In our program instead of sending each typed character to our email, we’ll use a global variable It is declared outside of the function or in global A global variable is accessable from any fucntion.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |