I have a folder at D:\test, and I created a new button go /homedir on the toolbar.
I want to hide this button when D:\test doesn't exist, how do I write the command
I have tried the following codes and they all failed
@hideif:D\test
go /homedir
@hideif:@ifexists:D\test
go /homedir
@hideblock:begin
@hideif:D\test
go /homedir
@hideblock:end
Does the dopus command not support nested modifiers?
Or dopus doesn't support this kind of writing, so how to realize it if you use JS script?
Very good, it works, thanks!
But when I use the triple button, it doesn't work again
I have set go /homedir on the lbutton,
I have set go /homedir openindual on the rbutton,
and I have set go /homedir new on the mbutton.
Is there any way to make it work with the triple button?
Or to achieve the same effect without the triple button?
That's great! I have similar needs
I have a lot of buttons that need to determine if a folder (not the same folder) exists, and if you hide blocks before and after each button, it takes up a lot of button space
Would it be possible to add a parameter similar to USEQUALKEYS.You can call it as BUTTONKEYS.
When the same folder is opened in different ways, the same effect can be achieved without the triple button, for example rbutton:openindual mbutton:new
In the button you can write
go /homedir BUTTONKEYS
Or write it this way
go /homedir argkeys rbutton:openindual mbutton:new