Page 1 of 1

Any way to reset trigger modifier keys variables?

Posted: 13 Feb 2026 18:52
by eil
Help file for <get trigger menushift> and get("Trigger", "callshift") states:
The value is never reset within the running session, so you can retrieve it even hours after the last menu was clicked.
Is there any way to manually reset that in user script?

Re: Any way to reset trigger modifier keys variables?

Posted: 18 Feb 2026 18:18
by admin
Currently not. Why?

Re: Any way to reset trigger modifier keys variables?

Posted: 19 Feb 2026 08:51
by eil
Well, just as Help file states - cause variable stays uncleaned for whole session.
Say i have a button-script that behaves differently depending if there was a modifier key = first i use it with modifier, next time without - but var is still there and it remembers it was "filled" by first use, so second use behaves as if modifier Was used(while it wasn't).

Re: Any way to reset trigger modifier keys variables?

Posted: 19 Feb 2026 09:02
by highend
oO

Code: Select all

$modKey = <get trigger callshift>;
    if     ($modKey == 1) { e "shift"; }
    elseif ($modKey == 2) { e "ctrl";  }
    elseif ($modKey == 4) { e "alt";   }
    else                  { e "none";  }
Guess what happens on the next call after you've used it on a button with e.g. shift pressed...

Re: Any way to reset trigger modifier keys variables?

Posted: 19 Feb 2026 20:05
by eil
Hm, seems like like my bad and smth else glitched... I had this line inside a big script $Shift = (get("Trigger", "callshift") == 2) ? "1" : "0"; and several times got false results >> while searching for possible issue in help i stumbled upon the notice: value is never reset within the running session >> leading me to think it was a source of an issue.(i stopped even thinking there was smth else)
That line is really misleading.! :evil:
Thanks for a hint.