Steam has a rather nice checkbox option on each script called Do not auto interrupt.
A better wording for it would be Prevent Hotkey Spam Restarts.
This prevents itself from being restarted over-n-over prematurely if its hotkey is held down, spammed, or pressed again midway before the script has had a chance to finish.
This interrupt prevention / spam protection only applies to itself, hotkeys for other scripts will always interrupt immediately to play the new script.
Functionality ExampleF1 hotkeyed to myScript which has Prevent Hotkey Spam Restarts enabled.
User presses F1, myScript starts running
User holds F1 down, but this is ignored
myScript finishes
User still holding F1 down, myScript starts again
myScript is still running
User presses F2 for otherScript, which interrupts myScript to immediately start playing otherScript
Steam has a rather nice checkbox option on each script called
Do not auto interrupt
. A better wording for it would bePrevent Hotkey Spam Restarts
.Functionality Example
F1
hotkeyed tomyScript
which hasPrevent Hotkey Spam Restarts
enabled.F1
,myScript
starts runningF1
down, but this is ignoredmyScript
finishesF1
down,myScript
starts againmyScript
is still runningF2
forotherScript
, which interruptsmyScript
to immediately start playingotherScript