- 'ctbindex' is case-sensitive. Anything other than all lowercase is treated as the default 'mousebtn' and leads to utter confusion when testing on CTB1 or CTB2.
- Scripts triggered by dropping items on a CTB show as having an index of -1.
- As a direct result of the previous item, the other CTB functions (ctbname(), etc.) fail after dropping items because -1 is an "Invalid button index".
- mousebtn returns 0 (none) when dropping files on a CTB.
Code: Select all
Snip: CTB 1
XYplorer 16.20.0001, 1/20/2016 10:03:43 AM
Action
NewUserButton
Name
Triger Test
Icon
ScriptL
function a($n) {
$f = Get('Trigger', $n);
$v = eval("<get trigger $n>");
$m = Get('Trigger', 'mousebtn');
return <<<RET
Case: $n - Function: $f - Variable: $v - MouseBtn: $m
RET;
}
"Test"
$report = '';
$report = $report . a('ctbindex');
$report = $report . a('ctbIndex') . <crlf>;
$report = $report . a('Ctbindex');
$report = $report . a('CTBIndex');
$report = $report . a('CTBINDEX');
text $report;
ScriptR
function a($n) {
$f = Get('Trigger', $n);
$v = eval("<get trigger $n>");
$m = Get('Trigger', 'mousebtn');
return <<<RET
Case: $n - Function: $f - Variable: $v - MouseBtn: $m
RET;
}
"Test"
$report = '';
$report = $report . a('ctbindex');
$report = $report . a('ctbIndex') . <crlf>;
$report = $report . a('Ctbindex');
$report = $report . a('CTBIndex');
$report = $report . a('CTBINDEX');
text $report;
FireClick
0
XYplorer Beta Club