Jump to content
Sign in to follow this  
mercadantelaura

Suggestion please for a command

Recommended Posts

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

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 2020-10-10 - Version 1.5.2.1) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (NEW 2020-06-30 - Version 1.6.2.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (NEW 2020-06-27 - Version 1.3.2.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Tutorials:
ADO - Wiki, WebDriver - 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()

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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.


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...