Set Folder View via script

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
jaywalker32
Posts: 205
Joined: 27 May 2014 05:24

Set Folder View via script

Post by jaywalker32 »

Is there a script command for setting and getting Folder Views? Esp for paper folders? Don't see anything in the docs.
Eg. If was want to create a paper folder from a search result, but also set it's folder view to Thumbnail view, sorted by Name.

highend
Posts: 13346
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Set Folder View via script

Post by highend »

get() & Menu - Help - List All Commands for the the necessary command ids
One of my scripts helped you out? Please donate via Paypal

jaywalker32
Posts: 205
Joined: 27 May 2014 05:24

Re: Set Folder View via script

Post by jaywalker32 »

I can get the command id to pop up the FolderView settings gui. But is there a way to set it programmatically?

Something like

Code: Select all

folderView("c:\wallpapers", "thumbnails #1", "name")
Or even a text file I can edit? But I think they're stored in fvs.dat, so maybe not.

highend
Posts: 13346
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Set Folder View via script

Post by highend »

Folder views entries aren't scriptable but you can use CEAs (Changing Locations - After painting the file list) events to get / set whatever you need (view() / sortby())
One of my scripts helped you out? Please donate via Paypal

jaywalker32
Posts: 205
Joined: 27 May 2014 05:24

Re: Set Folder View via script

Post by jaywalker32 »

Ok, thx. I can work with this.

Post Reply