Editing Talk:2445: Checkbox
Please sign your posts with ~~~~ |
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 113: | Line 113: | ||
== Scripts == | == Scripts == | ||
If your clicking abilities have dwindled since the invention of the vocal telephone, you may use this roughly written script in the webconsole as an aid | If your clicking abilities have dwindled since the invention of the vocal telephone, you may use this roughly written script in the webconsole as an aid | ||
− | --- self edit: now that others pointed out BeepComic, I simplified it a bit. | + | --- self edit: now that others pointed out BeepComic, I simplified it a bit. --- |
<pre> | <pre> | ||
(async ()=>{ | (async ()=>{ | ||
− | let delay | + | BeepComic.hurryUp(); |
+ | let delay = 100 | ||
const asleep = async (dur) => new Promise(res=>setTimeout(res,dur)) | const asleep = async (dur) => new Promise(res=>setTimeout(res,dur)) | ||
const send = async (...msgs) => { | const send = async (...msgs) => { | ||
for await (const msg of msgs) { | for await (const msg of msgs) { | ||
await BeepComic.send(morse.encode(msg)) | await BeepComic.send(morse.encode(msg)) | ||
− | await asleep( | + | await asleep(100) |
} | } | ||
} | } | ||
− | |||
− | |||
// How long to wait for server to reply, in ms. increase for laggy networks | // How long to wait for server to reply, in ms. increase for laggy networks | ||
delay = 300 | delay = 300 |