Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adarshzpatel/python-autotyper-script
Python Script to simulate keyboard key presses using pyautogui
https://github.com/adarshzpatel/python-autotyper-script
Last synced: 28 days ago
JSON representation
Python Script to simulate keyboard key presses using pyautogui
- Host: GitHub
- URL: https://github.com/adarshzpatel/python-autotyper-script
- Owner: adarshzpatel
- Created: 2020-12-02T00:29:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-01-16T03:26:57.000Z (almost 4 years ago)
- Last Synced: 2023-03-05T20:46:50.498Z (over 1 year ago)
- Language: Python
- Size: 5.73 MB
- Stars: 5
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python-autotyper-script
Python Script to simulate keyboard key presses using pyautogui.
This script is designed for use on the website monkeytype.com
Requirements:* Python
* Pyautogui module
* Selenium
* Chromium# Installing pyautogui
1. Open your cmd/terminal
2. Type `pip install pyautogui` and it will install the module for you.# Installing selenium
1. Open your cmd/terminal
2. Type `pip install selenium` and it will install the module for you.# Installing Chromium
* On Arch based distributions use `sudo pacman -S chromium`
* On Ubuntu based distrubutions use `sudo apt-get install chromium-browser`
* On other operating systems, go to: https://www.chromium.org/getting-involved/download-chromium
_Make sure to download a Chrome/Chromium version that is compatible with the Chromedriver, you can also replace the Chromedriver in the folder with a different version_
# How to use
Right now this script supports the following typing modes on MonkeyType:* *Custom* - To let the script perform a typing test in the _custom_ mode, call the `given_word_count()` function at the bottom of the file and start the script. A new Chrome/Chromium window will now open. A new Chrome/Chromium window will now open. Use the starting delay to change the custom text and start the test.
* *Words* - To let the script perform a typing test in the _words_ mode, call the `given_word_count()` function at the bottom of the file and start the script. A new Chrome/Chromium window will now open. A new Chrome/Chromium window will now open. Use the starting delay to switch to the Words mode of your desired length.
* *Quote* - To let the script perform a typing test in the _quote_ mode, call the `given_word_count()` function at the bottom of the file and start the script. A new Chrome/Chromium window will now open. Use the starting delay to switch to the Quote mode of your desired length.
* *Time* - To let the script perform a typing test in the _time_ mode, call the `given_duration()` function at the bottom of the file with the desired duration as the parameter and start the script. A new Chrome/Chromium window will now open. Use the starting delay to switch to the duration of your desired length.There are a few options the user can use to modify the execution of the script:
* Given typing speed. To increase or decrease the time between each typed character, the `get_given_pause()` function can be called at the bottom of the file, before calling either one of the typing functions. The time between each character is the same when using this function.
* Sleep time before execution. When the either one of the typing functions is called, the program wil pause execution. This is done in order to allow the user time to open the desired typing mode on MonkeyType.# Demonstrations
* Custom typing test: https://www.youtube.com/watch?v=FW1lzQ1OVnk
* 100 words with infinite speed: https://www.youtube.com/watch?v=fzWOdUH6yL0