It is currently Thu Jun 07, 2018 9:25 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Tue Dec 09, 2014 6:48 pm 
Offline

Joined: Sat Oct 05, 2013 4:34 am
Posts: 224
Here is a program that removes the Address bar/Navigation bar from File explorer windows.

It is written in AHK, here is the source code, t5he exe is attached:
Code:
#NoTrayIcon
#NoEnv
Gui +LastFound
hWnd := WinExist()
SetControlDelay, -1
SetBatchLines -1

DllCall( "RegisterShellHookWindow", UInt,hWnd )
MsgNum := DllCall( "RegisterWindowMessage", Str,"SHELLHOOK" )
OnMessage( MsgNum, "ShellMessage" )
Return

ShellMessage(wParam,lParam) {
If (wParam = 1 ) ; HSHELL_WINDOWCREATED := 1
{

WinGetClass, WinClass, ahk_id %lParam%
if (WinClass = "CabinetWClass") {

ControlGetPos, ,y1,,ha,ReBarWindow321, ahk_id %lParam%

SendMessage, 0x0082,,,ReBarWindow321, ahk_id %lParam%

Control, Hide,, WorkerW1, ahk_id %lParam%
Control, Hide,, ReBarWindow321, ahk_id %lParam%

ControlGetPos,,y2,,h1,ShellTabWindowClass1, ahk_id %lParam%
ControlMove, ShellTabWindowClass1,, y1,,y2-y1+h1, ahk_id %lParam%
ControlMove, ReBarWindow321,,,,0, ahk_id %lParam%

WinSet, Redraw,, ahk_id %lParam%

Sleep, 100

SendMessage, 0x0082,,,ReBarWindow321, ahk_id %lParam%

Control, Hide,, WorkerW1, ahk_id %lParam%
Control, Hide,, ReBarWindow321, ahk_id %lParam%

ControlGetPos,,y2,,h1,ShellTabWindowClass1, ahk_id %lParam%
ControlMove, ShellTabWindowClass1,, y1,,y2-y1+h1, ahk_id %lParam%
ControlMove, ReBarWindow321,,,,0, ahk_id %lParam%

WinSet, Redraw,, ahk_id %lParam%

Sleep, 100

SendMessage, 0x0082,,,ReBarWindow321, ahk_id %lParam%

Control, Hide,, WorkerW1, ahk_id %lParam%
Control, Hide,, ReBarWindow321, ahk_id %lParam%

ControlGetPos,,y2,,h1,ShellTabWindowClass1, ahk_id %lParam%
ControlMove, ShellTabWindowClass1,, y1,,y2-y1+h1, ahk_id %lParam%
ControlMove, ReBarWindow321,,,,0, ahk_id %lParam%

WinSet, Redraw,, ahk_id %lParam%

Sleep, 100

SendMessage, 0x0082,,,ReBarWindow321, ahk_id %lParam%

Control, Hide,, WorkerW1, ahk_id %lParam%
Control, Hide,, ReBarWindow321, ahk_id %lParam%

ControlMove, ShellTabWindowClass1,, y1,,y2-y1+h1, ahk_id %lParam%
ControlMove, ReBarWindow321,,,,0, ahk_id %lParam%

WinSet, Redraw,, ahk_id %lParam%

}
}
}



Attachments:
AddressBarRemover2.zip [548.28 KiB]
Downloaded 224 times


Last edited by Anixx on Wed Sep 30, 2015 11:39 pm, edited 2 times in total.
Top
 Profile  
Reply with quote  
 Post subject: Re: Address bar remover.
PostPosted: Sat Jan 31, 2015 11:41 pm 
Offline

Joined: Sun Jul 07, 2013 6:53 pm
Posts: 38
that need to be added to classicshell along with navigation panel hider


Top
 Profile  
Reply with quote  
 Post subject: Re: Address bar remover.
PostPosted: Sun Feb 08, 2015 7:18 pm 
Offline
User avatar

Joined: Fri Apr 18, 2014 12:43 pm
Posts: 68
The navigation pane can already be hidden. Classic Shell even has an option for it.

Anyway, this would be nice as an option for Classic Shell, especially if it could replace the default address bar with a classic xp style one.


Top
 Profile  
Reply with quote  
 Post subject: Re: Address bar remover.
PostPosted: Sat Sep 05, 2015 1:18 am 
Offline

Joined: Sun Jul 07, 2013 6:53 pm
Posts: 38
R.O.B. wrote:
The navigation pane can already be hidden. Classic Shell even has an option for it.


No the navigation folderband remains and the adressbar too Ivo should add these 2 tweaks asap


Top
 Profile  
Reply with quote  
PostPosted: Wed Sep 30, 2015 11:39 pm 
Offline

Joined: Sat Oct 05, 2013 4:34 am
Posts: 224
I have updated the script and the executable. Now it works better!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group, Almsamim WYSIWYG Classic Shell © 2010-2016, Ivo Beltchev.
All right reserved.