 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Thu Mar 10, 2005 2:39 am Post subject: Hiding and Showing TreeView in Explorer |
|
|
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 |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Thu Mar 10, 2005 2:42 am Post subject: |
|
|
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!  |
|
| Back to top |
|
 |
Landvermesser
Joined: 03 Nov 2004 Posts: 51
|
Posted: Thu Mar 10, 2005 8:46 am Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Thu Mar 10, 2005 12:27 pm Post subject: |
|
|
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 |
|
 |
Landvermesser
Joined: 03 Nov 2004 Posts: 51
|
Posted: Fri Mar 11, 2005 8:48 am Post subject: |
|
|
| Good, than try message ID: 41525 |
|
| Back to top |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Fri Mar 11, 2005 11:56 am Post subject: |
|
|
Do you mean:
sendmessage,41525,0,0,,Window
That does not work.
Tekl |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Fri Mar 11, 2005 5:52 pm Post subject: |
|
|
He might've meant decimal, but in case not, you might want to try:
sendmessage,0x41525,0,0,,Window |
|
| Back to top |
|
 |
Landvermesser
Joined: 03 Nov 2004 Posts: 51
|
Posted: Fri Mar 11, 2005 9:40 pm Post subject: |
|
|
| Code: | | PostMessage, 0x111, 41525, 0, , ahk_class ExploreWClass |
|
|
| Back to top |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Sat Mar 12, 2005 1:42 am Post subject: |
|
|
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 |
|
 |
Landvermesser
Joined: 03 Nov 2004 Posts: 51
|
Posted: Sat Mar 12, 2005 11:15 am Post subject: |
|
|
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 |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 1228
|
Posted: Sat Mar 12, 2005 6:21 pm Post subject: |
|
|
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 |
|
 |
Tekl
Joined: 24 Sep 2004 Posts: 813 Location: Germany
|
Posted: Sun Mar 13, 2005 3:02 am Post subject: |
|
|
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 |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 1228
|
Posted: Sun Mar 13, 2005 10:18 am Post subject: |
|
|
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.  _________________ "Anything worth doing is worth doing slowly." - Mae West
 |
|
| Back to top |
|
 |
Landvermesser
Joined: 03 Nov 2004 Posts: 51
|
Posted: Sun Mar 13, 2005 11:22 am Post subject: |
|
|
| 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 |
|
 |
Serenity
Joined: 08 Nov 2004 Posts: 1228
|
Posted: Sun Mar 13, 2005 11:26 am Post subject: |
|
|
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 |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|