Send text to twitch.tv chat box with jquery

50
October 25, 2019, at 5:10 PM

I am trying to send text to the twitch chat box through the console. I am targeting the text area with jquery but can also do pure js.

I have tried the following:

    $(`textarea[autocomplete='twitch-chat']`).text('test');

And some other variations. When I inspect the text element, its text is test. But the value is not showing up visually, and is also not sent when I press ENTER.

What is preventing the text from showing up visually, and also sending? And how can I achieve this?

I have also tried stuff like:

$(`textarea[autocomplete='twitch-chat']`).trigger($.Event("keydown", {keyCode: 70}));
Answer 1

You dont need to use trigger or other. Just use val operator.

This working fine

$(`textarea[autocomplete='twitch-chat']`).val('test');
READ ALSO
Copying emojis in text from MySQL to SQL Server

Copying emojis in text from MySQL to SQL Server

I am copying data from MySQL to SQL Server using a linked server

38
SQL: group by multiple limits

SQL: group by multiple limits

I have a simple table with id,key,level,table and data are something like this :

40