Now all I have to do is run this script, paste the text into it, and then put my mouse cursor on the input box and the script will take care of the rest. I used the pyautogui package to programmatically control my keyboard and type for me. That’s fine, we can just use a quick and dirty Python script to do the job for us. It waits until you press space, and then compares what you have in the text field with the word you’re currently on.Īfter some quick research, I found that JavaScript prevents you from triggering or emulating keypresses for security reasons. Great! Now that I have the text, how do I input it? Pasting it into the field and setting it using JavaScript doesn’t work since the page uses an event handler for keypresses to detect when you type the words. Now I can just run that as a one-liner in the JavaScript console to get all the text.
0 Comments
Leave a Reply. |