Page 1 of 1

Click the user-defined button continuously to switch to the Graphical model. How to write the script?

Posted: 06 Aug 2023 00:26
by YZE
Add a custom button and click it continuously to switch between view modes # 302, # 303, # 313 and # 308.Thank you forum for helping me achieve it

Re: Click the user-defined button continuously to switch to the Graphical model. How to write the script?

Posted: 06 Aug 2023 11:32
by admin
What about this built-in alternative?
Configuration | General | Menus, Mouse, Usability | Mouse | Use Ctrl+mouse wheel to scroll through the list views

Re: Click the user-defined button continuously to switch to the Graphical model. How to write the script?

Posted: 06 Aug 2023 12:47
by YZE
First of all, thank you for the reply from the forum

I don't know the script. This is the script I found on the Internet. Help me add # 307 again, click the mouse to make the three map recognition cycle switch.

$View = get("View");
if (<get trigger> == 1) {
if (ctbicon() != ":viewlist" AND $View != 2) {
ctbicon(":viewlist");
ctbstate(0);
#302; // go to List view
} else { // if list go to Thumbnail view
ctbicon(":viewthumbs");
ctbstate(1);
#313; }
end 1;
}

if (<get trigger> == 2) {
button "views", 2;
end 1;
}