This is only tested on windows, and may not work on linux.
Import code
HoldKey_ConfuzzedCat.sb (4.9 KB)
Installation
In Streamer.bot in select Import
from the top left.
Drag and drop the Import File
into the Import String
.
Configuration
There is 3 variables or arguments there can be changed. blacklist
, whitelist
and testing
.
Blacklist
A key can be put on the blacklist by simple typing the character into the arguments value input box eg. putting the following adBc
will disallow those characters from being hold.
Leave empty if you don’t want to blacklist any characters.
Whitelist
The whitelist function the same way as the blacklist, just that it wont run if the key isn’t include in the whitelist.
Leave empty if you don’t want to whitelist any characters. This will allow all characters, that isn’t included in blacklist.
Testing
The testing argument while add a 5 seconds delay before holding the key. Set it to false, when you want the action to be instant.
DefaultTime
If no time is inputted, this will dictate how long the key will be pressed in ms.
Example Use
Simple do !holdkey
with a key and a amount of time(in ms) of how long the key should be pressed, eg. !holdkey A 4000
, this will hold the a
key for 4 secs. Update: amount of time is no longer required and only optional. If empty, then it will use the DefaultTime variable.
This will spam the key in the focused window. Make sure you are in the correct window before the command is performed.
Avalible keys/characters
0-9 and a-z. The letters can be both upper or lower, doesnt matter as the character will always be lower when pressed.
Channel Point Redemption
Use the HoldKey_redeem action for that, as it will handle the input correctly.