Is it possible to implment different script with different mode button holding time ?

Hi community,
Is it possible to implment different script with different mode button holding time ?
If yes,will you please show me an example ?
If no, is it possible that Mikrotik Team make it as a TODO feature ?

P.S.
what I want to implment is something like this.

/system routerboard mode-button
set enabled=yes if(hold-time=1s..5s) do={on-event=script1};if(hold-time=6s..10s) do={on-event=script2};

I know the syntax isn’t correct , but I am just trying to explain what features I want to implment.

I have a script that can act on several mode button presses:
Mode button with multiple presses

That is an good idea, but maybe I am blind (or not used to git), I do not see the script, only the test for button script.

Read the page from top to bottom please…

You need to do the base installation, then install the script with the commands given. The script does not work on its own as it has dependencies on functions.

I may be to old to read all :wink:

See this now
:information_source: Info: This script can not be used on its own but requires the base installation. See main README for details.

But I was looking for a small script, not a complete solution for many thing.

Well, Thanks to both of you , for the reply.

As @Jotne mentioned , I want something simple instead of bring a whole new scripting environment .

Feel free to take the script ans strip it down to not use any of my global functions… Should be more or less easy with this one.