Sign in to follow this  
Followers 0
mercadantelaura

Suggestion please for a command

13 posts in this topic

I'm searching on web how can change, through script command,
"folder view" of active folder window.
I want set "details" - "big icons" - "tile" using script but for now i found nothing.

Have AutoIT a command that do that i want ??

Thanks

Share this post


Link to post
Share on other sites



Thanks "billo" i'm using too your council.

I have hoped that AutoIT was be able to do this through internal command without using "Control Send" to open

menu and set details or Bug icons 

 

thanks again

Share this post


Link to post
Share on other sites

I have readed that Win7 x64 stored settings of folder view into this parts of registry.
There's some change to change through script folder view of active window using
these registry ?

[HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellNoRoamBagMRU]
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellNoRoamBags]
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellBagMRU]
[HKEY_CURRENT_USERSoftwareMicrosoftWindowsShellBags]

Share this post


Link to post
Share on other sites

<<<<There probably is...

<<<<would be com though and that would be deeper "water" :ermm:  o:)

Can you explain better that i don't undesrstood

Share this post


Link to post
Share on other sites

ok thank you for reply and your patience

Share this post


Link to post
Share on other sites

I'm sorry but I have never automated the Windows Explorer.

But I think a good starting point might be this >thread.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2017-04-18 - Version 1.4.8.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2017-02-27 - Version 1.3.1.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2015-04-01 - Version 0.4.0.0) - Download - General Help & Support - Example Scripts
Excel - Example Scripts - Wiki
Word - Wiki
PowerPoint (2015-06-06 - Version 0.0.5.0) - Download - General Help & Support

Tutorials:
ADO - Wiki

 

Share this post


Link to post
Share on other sites

I used to do this for XP machines with the script below. Never tried it on WIN7, but the keys may be close enough for you to get the info you need. It does require a logoff.

#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>


Local $msg, $key1, $key2, $val1, $val2, $type

$key1 = "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams"
$key2 = "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Defaults"
$val1 = "Settings"
$val2 = "{20D04FE0-3AEA-1069-A2D8-08002B30309D}"
$type = "REG_BINARY"

GUICreate("Change Folder View", 300, 160)
$combo = GUICtrlCreateCombo("Choose Folder View", 10, 50, 280, 40)
GUICtrlSetData($combo, "Thumbnails|Tiles|Icons|List|Details", "Choose Folder View")

$go = GUICtrlCreateButton("Execute", 100, 100, 100, 40)
GUISetState(@SW_SHOW)

    While 1
        $msg = GUIGetMsg()
            Select
                Case $msg = $GUI_EVENT_CLOSE
                    ExitLoop
                Case $msg = $go
                    Select
                        Case GUICtrlRead($combo) = "List"
                                RegWrite($key1, $val1, $type, "0x080000000300000000000000E0A51F0E7335CF11AE6908002B2E1262040000000600000043000000")
                                RegWrite($key2, $val2, $type, "0x1C000000030000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                        Case GUICtrlRead($combo) = "Details"
                                RegWrite($key1, $val1, $type, "0x08000000040000000000000000777E137335CF11AE6908002B2E1262040000000100000043000000")
                                RegWrite($key2, $val2, $type, "0x1C000000040000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                        Case GUICtrlRead($combo) = "Tiles"
                                RegWrite($key1, $val1, $type, "0x080000000600000000000000E525F165E17B1048BA9DD271C8432CE3040000000400000043000000")
                                RegWrite($key2, $val2, $type, "0x1C000000060000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                        Case GUICtrlRead($combo) = "Content"
                        Case GUICtrlRead($combo) = "Thumbnails"
                            RegWrite($key1, $val1, $type, "0x08000000050000000000000090B2EB8BD052D011B7F400C04FD706EC040000000300000043000000")
                            RegWrite($key2, $val2, $type, "0x1C000000050000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                        Case GUICtrlRead($combo) = "Icons"
                            RegWrite($key1, $val1, $type, "0x080000000100000000000000E0D057007335CF11AE6908002B2E1262040000000500000043000000")
                            RegWrite($key2, $val2, $type, "0x1C000000010000000000000000009A000000000001000000FFFFFFFFF0F0F0F0140003009A0000000000000030000000FDDFDFFD0F000500240010002E0046000000000001000000020000000300000004000000780096006000600078000000000001000000020000000300000005000000FFFFFFFFCFF3A8B03343AB4B88731CCB1CADA48B30F125B7EF471A10A5F102608C9EEBAC04000000")
                    EndSelect
            EndSelect
    WEnd

GUIDelete()

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Thanks "JLogan3o13" but unfortunately under my Win7 x64 starts i make my choice but don't take effect also after logoff

;-(

Share this post


Link to post
Share on other sites

As I mentioned, that script is for XP. You would have to go the those registry locations and find out what the binary values are, as they will obviously be different.


√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0