Simulate Typing Text using jQuery with Larry my parrot

This was the first time I recorded Larry at the same time I recorded myself doing a lesson. Let’s just say he didn’t say what I wanted him to say. Too many F-U’s in this one. The good thing is he doesn’t say the word, he actually says the letter F then the letter U. Either way, its pretty cool how easy this was to do and I am sure Larry will be saying a lot more as he gets comfortable in his new setting.

On to coding and the video!

In this video I extend our little process function “playSteps()” to handle a new type of automation. “input” is the new action type. It takes a jQuery selector for an <input> box and the text you want typed. The element in the array would look like this:

Screen Shot 2016-03-15 at 1.10.28 AM

The output would be to make it really look like a person is typing, with pauses between each character. I show how you can do this by using Math.random() and the window.setTimeout(). Be sure to check out the JSFiddle to see the code in action.
Click here to open the JSFiddle.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s