Jump to content

Depends what you need to do.

 

For example run this JS snippet in the console of your browser whilst on the LTT forum page (but don't click in the reply box). It will "type out" the text in the placeholder area of this page where it says "reply to this topic...":

 

Quote

var i = 0;
var txt = 'Thetext you want to be typed out';
var speed = 50;

document.getElementsByClassName('ipsComposeArea_dummy')[0].innerText = '';

function writeYourText() {
  if (i < txt.length) {
    document.getElementsByClassName('ipsComposeArea_dummy')[0].innerText += txt.charAt(i);
    i++;
    setTimeout(writeYourText, speed);
  }
}

writeYourText();

 

Link to comment
https://linustechtips.com/topic/1101044-auto-typer/#findComment-12865153
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×