Captive Reefs
Customer
I've got a command I would like to make available to everyone. Is that possible?
Upvote
0
This is the HTML element that is used for inserting the /test command:You will need to replace /test with the text you want and insert that element somewhere.HTML:<a data-command="/test" data-instanceid="{vb:raw instance.instanceid}" name="dbtech_vbshout_setcommand" href="javascript://">/me [text]</a>
Whenever someone clicks that element, the contents of data-command is inserted.
Then, when you want it triggered, you can useAlso changing /test there.Code:$('[name="dbtech_vbshout_setcommand"][data-instanceid="{vb:raw instance.instanceid}"][data-command="/test"]').trigger('mousedown');
It became more long-winded because I recoded it from scratch to support multiple instances natively, and supporting this was not something we had in mind then or now.
If this doesn't work then I don't know if I'll be able to assist any further, like I said we haven't created an API for these things.
We use essential cookies to make this site work, and optional cookies to enhance your experience.