AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Hiding and Showing TreeView in Explorer

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Thu Mar 10, 2005 2:39 am    Post subject: Hiding and Showing TreeView in Explorer Reply with quote

Hi,

I tried to show the Folder TreeView of Explorer with the following commands:

#q::
Control,Show,,BaseBar1,A
Control,Show,,SysTreeView321,A
return

Well, that seems to be the wrong way, because if the search-pane was the last active pane it will be named "search" instead of "Folders", but it shows the TreeView.

I tried to get a sendmessage with Winspector, but I haven't found anything. There are so many messages.

Tekl
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Thu Mar 10, 2005 2:42 am    Post subject: Reply with quote

I don't have an actual solution, but I've used xplorer˛ for a long time now and I love it. Let it free you from M$ hell! Very Happy
Back to top
View user's profile Send private message
Landvermesser



Joined: 03 Nov 2004
Posts: 51

PostPosted: Thu Mar 10, 2005 8:46 am    Post subject: Reply with quote

As a variant:
if a explorer without the trees panel - close and open again with a key /e,
If a explorer with the tree panel - close and open again without a key /e,

Code:
Run, "explorer.exe" /e,
Back to top
View user's profile Send private message Visit poster's website
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Thu Mar 10, 2005 12:27 pm    Post subject: Reply with quote

Hi,

that's not what I want, I know about and use already other commanders. I want to turn on the foldertree temporary on the active window.

Tekl
Back to top
View user's profile Send private message Visit poster's website
Landvermesser



Joined: 03 Nov 2004
Posts: 51

PostPosted: Fri Mar 11, 2005 8:48 am    Post subject: Reply with quote

Good, than try message ID: 41525
Back to top
View user's profile Send private message Visit poster's website
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Fri Mar 11, 2005 11:56 am    Post subject: Reply with quote

Do you mean:

sendmessage,41525,0,0,,Window

That does not work.

Tekl
Back to top
View user's profile Send private message Visit poster's website
jonny



Joined: 13 Nov 2004
Posts: 3004
Location: Minnesota

PostPosted: Fri Mar 11, 2005 5:52 pm    Post subject: Reply with quote

He might've meant decimal, but in case not, you might want to try:

sendmessage,0x41525,0,0,,Window
Back to top
View user's profile Send private message
Landvermesser



Joined: 03 Nov 2004
Posts: 51

PostPosted: Fri Mar 11, 2005 9:40 pm    Post subject: Reply with quote

Code:
PostMessage, 0x111, 41525, 0, , ahk_class ExploreWClass
Back to top
View user's profile Send private message Visit poster's website
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Sat Mar 12, 2005 1:42 am    Post subject: Reply with quote

Yeah, that's it. I tried to get the message in Winspector Spy with pressing the Button without success. Now I see, that I should use the menucommand.

Btw, do you know why the message 30807 does not work to create a new folder?

Tekl
Back to top
View user's profile Send private message Visit poster's website
Landvermesser



Joined: 03 Nov 2004
Posts: 51

PostPosted: Sat Mar 12, 2005 11:15 am    Post subject: Reply with quote

I believe, it occurs because, that "File/New/Folder" there is a part of the contextual menu of a file or a folder, but not of the explorer. This menus item is only inserted into menu File, instead of be its stable part.

I use this:

Code:
NewFolder:
   WinGet, Status, MinMax, A
   IfEqual, Status, -1, Goto, Desktop
   WinActivate, A
   WinGetClass, class, A
   IfNotEqual, class, ExploreWClass, Goto, Desktop
   WinGetText, text, A
   Loop, Parse, text,`r`n
      {
         IfInString, A_LoopField, `:`\
            {
               SetEnv, localPath, %A_LoopField%
               Break
            }
      }
   IfNotInString, localPath, `:
      {
         WinGetTitle, localTitle, A
         IfInString, localTitle, `:, SetEnv, localPath, %localTitle%
      }
   IfNotInString, localPath, `:, Goto, Desktop
Copies:
   IfExist, %localPath%\Untitled Folder %Num%
      {
         Num++
         Goto, Copies
      }
   FileCreateDir, %localPath%\Untitled Folder %Num%
   Num=
Return
Desktop:
   IfExist, %A_Desktop%\Untitled Folder %Num%
      {
         Num++
         Goto, Desktop
      }
   FileCreateDir, %A_Desktop%\Untitled Folder %Num%
   Num=
Return


"Creates a new directory/folder with the name "Untitled Folder". Work with Windows Explorer or with Desktop only. For correct execute the subroutine get the path to current folder from hidden text of the Windows Explorer window. If in "Adwanced Settings" of the "Folder View" item of the "Tool" menu of the Windows Explorer both options "Display full path in the address bar" and "Display full path in the title bar" are unchecked, the subroutine can not get the path and create the new folder on the Desktop. Minimum one option must be checked. To create the new folder on the Desktop activate (click) the Desktop first or select this command not by active Explorer, but by any other active (most top) application."
Back to top
View user's profile Send private message Visit poster's website
Serenity



Joined: 08 Nov 2004
Posts: 1228

PostPosted: Sat Mar 12, 2005 6:21 pm    Post subject: Reply with quote

Landvermesser, how did you find out that message to toggle show/hide of the treeview pane?
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Tekl



Joined: 24 Sep 2004
Posts: 813
Location: Germany

PostPosted: Sun Mar 13, 2005 3:02 am    Post subject: Reply with quote

He did it with Winspector Spy. If you watch the whole window and then select the command from the menu you can find in the messagelist a WM_COMMAND. That's it.

Tekl
Back to top
View user's profile Send private message Visit poster's website
Serenity



Joined: 08 Nov 2004
Posts: 1228

PostPosted: Sun Mar 13, 2005 10:18 am    Post subject: Reply with quote

Thanks Tekl. I'd been using Winspector with the treeview close button but didn't capture any WM_COMMAND messages and thought maybe he was using Spy++ instead. I didn't realise there was an option in the menu as I disabled that from showing long ago. Embarassed
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Landvermesser



Joined: 03 Nov 2004
Posts: 51

PostPosted: Sun Mar 13, 2005 11:22 am    Post subject: Reply with quote

Tekl wrote:
He did it with Winspector Spy.


Yes, you are right. But what is Spy++? Where can I it download? I can not find it with Google...
Back to top
View user's profile Send private message Visit poster's website
Serenity



Joined: 08 Nov 2004
Posts: 1228

PostPosted: Sun Mar 13, 2005 11:26 am    Post subject: Reply with quote

Landvermesser, Spy++ is made by Microsoft. Its one of the tools that comes with Visual Studio.
_________________
"Anything worth doing is worth doing slowly." - Mae West
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group