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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
YZE
Posts: 2
Joined: 05 Aug 2023 23:43

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

Post 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

admin
Site Admin
Posts: 66100
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

What about this built-in alternative?
Configuration | General | Menus, Mouse, Usability | Mouse | Use Ctrl+mouse wheel to scroll through the list views

YZE
Posts: 2
Joined: 05 Aug 2023 23:43

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

Post 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;
}

Post Reply