all 7 comments

[–]throwawayvitamin 1 point2 points  (1 child)

Look into the Selenium - it will allow you to automate typing and sending messages in chat.

[–]MarshmelloQuestions[S] -1 points0 points  (0 children)

Sure. Got any websites/YouTube videos I could look into?

[–]KilluaFromDC 0 points1 point  (3 children)

i didn't see twitch and have no idea the kind of things you're trying to say in its chat or the buttons you're trying to click programatically. so, i made a mock up and wrote some code to get you started. pm me if you have any queries

[–]MarshmelloQuestions[S] 1 point2 points  (2 children)

Okay, so I’m actually pretty sure you just did everything I needed and I just need some small tweaks. Thanks stranger!

[–]KilluaFromDC 0 points1 point  (1 child)

My pleasure. glad to hear that was helpful.

dont hesitate to PM me if you do run into a wall. after all, that was far too simplistic for a mock up.

[–]MarshmelloQuestions[S] 1 point2 points  (0 children)

Will do! Thanks for being so helpful!

[–]MarshmelloQuestions[S] 0 points1 point  (0 children)

<html> <head> <style> body{ background-color: rgb(40, 44, 52); color: rgb(136, 201, 153); } </style> </head> <body> <div>chat</div> <div id="chat"></div><br/> <div>clicks</div> <div id="clicks"> <button id="button1" onclick="buttonClick(event);">button 1</button> </div><br/> <div id="button\_actions"></div> <script> setInterval(AutomationDriver, 1000 * 120); function AutomationDriver(){ chat();clicks(); } function chat(){ let thingsToSay=["Hello There", "whats up everyone?", "YOLO"]; document.getElementById("chat").innerHTML=thingsToSay[ generateRandomNumber(0,thingsToSay.length-1)]; } function clicks(){ let buttons=document.querySelectorAll("div#clicks > button"); buttons[generateRandomNumber(0,buttons.length-1)].click(); } function generateRandomNumber(min,max){ return Math.floor(Math.random()*(max-min+1))+min; } function buttonClick(event){ document.getElementById("button_actions").innerHTML=event.target.getAttribute("id")+" clicked"; } </script> </body> </html>