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:
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.