Custom User Button - trigger problems
Posted: 28 Jun 2015 19:37
This is with v15.40.003.
I'm trying to create a User Button on the toolbar that will have two possible actions:
And I have set the tweak:
However - despite the tweak, a right-click on the button opens the "Click / Edit / Customize" menu. So I can't even get started with the right-click action.
This tweak worked for me a few weeks ago, but not now. Others have also occasionally found this tweak not working, but there was no resolution. Is there another setting or tweak that could be confusing the issue?
And I want to renew my wish for get("Trigger") to return more conditions such as "Shift" and "Alt"" at least. That would multiply the usefulness of the User buttons.
Thanks
I'm trying to create a User Button on the toolbar that will have two possible actions:
- If left-clicked it will insert "0" at the beginning of currently selected filenames.
If right-clicked it will insert "0 " (that is 0 followed by a blank).
Code: Select all
$trig = get("Trigger");
if ($trig == 1) {
rename r, "^ > 0";
}
elseif ($trig == 2) {
rename r, "^ > 0 ";
}Code: Select all
CTBNoRClickDefaultCommands=1This tweak worked for me a few weeks ago, but not now. Others have also occasionally found this tweak not working, but there was no resolution. Is there another setting or tweak that could be confusing the issue?
And I want to renew my wish for get("Trigger") to return more conditions such as "Shift" and "Alt"" at least. That would multiply the usefulness of the User buttons.
Thanks