Page 1 of 1
get("Trigger") for ctb shows wrong return.
Posted: 22 Jan 2021 17:22
by eil
while experimenting, tried this in ctb code and it gets 1 while should be 2.. maybe i simply don't understand smt?
Code: Select all
echo get("Trigger", [mode="context"]);
Re: get("Trigger") for ctb shows wrong return.
Posted: 22 Jan 2021 17:42
by klownboy
Agree, something doesn't seem right. I tried the following at the beginning of a script which was started by a CTB and I got "0" for the $context value - which is started manually . The "callmenu" value was correct. I have received correct returns for "context" when used in a CEA, "8".
Code: Select all
$mod = get("trigger","callshift"); e $mod;
$context = get("trigger","context"); e $context;
EDIT: I tried the same script, but ran it from a UDC and received a correct return of "4". So the issue seems to be with CTBs.
Re: get("Trigger") for ctb shows wrong return.
Posted: 01 Feb 2021 10:55
by admin
Confirmed and fixed. Thanks!
(The context had not been set for left clicks, only for right-clicks.)
Re: get("Trigger") for ctb shows wrong return.
Posted: 01 Feb 2021 16:31
by admin
eil wrote: ↑22 Jan 2021 17:22
while experimenting, tried this in ctb code and it gets 1 while should be 2.. maybe i simply don't understand smt?
Code: Select all
echo get("Trigger", [mode="context"]);
BTW, this should look like this:
Re: get("Trigger") for ctb shows wrong return.
Posted: 01 Feb 2021 21:23
by eil
admin wrote: ↑01 Feb 2021 16:31
BTW, this should look like this:
i understood example from help file wrong.

Re: get("Trigger") for ctb shows wrong return.
Posted: 01 Feb 2021 21:44
by admin
Well, it was a bug nevertheless.
