Windows 10 Explorer View change

Post your working scripts, libraries and tools
ludamo
Posts: 8
Joined: 25 Mar 2015, 02:21

Windows 10 Explorer View change

05 Dec 2016, 22:45

Windows 10 Explorer View change using inbuilt Status Bar icons. Win 10, ImageSearch, QTTabBar.

After migrating to Windows 10 I was keen to learn the new Explorer but don't really like the Ribbon and was disappointed that there were only two icons on the far right of the Status Bar and not my favourite, which is List view. I wrote some code so that R-clicking on these icons would give me a shortcut to two other favourite views. When I started using QTTabBar I had to revise the original code (as it had worked by getting the position in the window (bottom RH corner) of the icons) to something else which would detect the icons, no matter how many times and wherever they were repeated. After some time I found that using ImageSearch and looking for the top left 12x12 pixels of the icons, in both hover and pressed form worked well. 27px and 28px are the width and height of the full icon on the Status Bar.

I used Software: Zoom+ to copy the screen image to clipboard and then pasted into Greenfish Icon Editor Pro to edit and save top left 12x12px of the icons.
To do this on your own Win 10 system I think you will have to make your own icon files - varying on theme / resolution etc. Make two files for each icon, one for hover and one for pressed. That is 4 image files total.

Code: [Select all] [Expand] [Download] GeSHi © Codebox Plus

ludamo
Posts: 8
Joined: 25 Mar 2015, 02:21

Re: Windows 10 Explorer View change

12 Mar 2017, 00:50

After stumbling upon the "ShellView" SHELLDLL_DefView window messages following R-click menu in Win 10 Explorer - detected using Microsoft® Spy ++ x64 (free with Visual Studio® 15 Community Edition) as follows:

Extra large icons = 28749 = 0x0704D
Large icons = 28751 = 0x0704F
Medium icons = 28750 = 0x0704E
Small icons = 28752 = 0x07050
List = 28753 = 0x07051
Details = 28747 = 0x0704B
Tiles = 28748 = 0x0704C
Content = 28754 = 0x07052

I was able to modify the code to send a message instead of sending the Hotkey (which may have focus issues).

Code: [Select all] [Expand] [Download] (ExplorerView.ahk)GeSHi © Codebox Plus

ludamo
Posts: 8
Joined: 25 Mar 2015, 02:21

Re: Windows 10 Explorer View change

18 Aug 2018, 05:27

A big thanks to Sean, Jethrow and Jeeswg and anyone else who has contributed to the Accessibility functions, especially the AccViewer Basic.ahk.
Using it I have been able to dispense with the need for ImageSearch and constructing icons. Though it doesn't seem to run any faster. Using this on Win 10 Pro Ver 1803.

Code: [Select all] [Expand] [Download] (ExplorerView.ahk)GeSHi © Codebox Plus


Return to “Scripts and Functions”

Who is online

Users browsing this forum: arcticir, Google [Bot] and 21 guests