Classic Shell
http://www.classicshell.net/forum/

AHK Script to remove Address bar
http://www.classicshell.net/forum/viewtopic.php?f=10&t=3433
Page 1 of 1

Author:  Anixx [ Tue Dec 09, 2014 6:48 pm ]
Post subject:  AHK Script to remove Address bar

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 3998 times

Author:  powerplayer [ Sat Jan 31, 2015 11:41 pm ]
Post subject:  Re: Address bar remover.

that need to be added to classicshell along with navigation panel hider

Author:  R.O.B. [ Sun Feb 08, 2015 7:18 pm ]
Post subject:  Re: Address bar remover.

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.

Author:  powerplayer [ Sat Sep 05, 2015 1:18 am ]
Post subject:  Re: Address bar remover.

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

Author:  Anixx [ Wed Sep 30, 2015 11:39 pm ]
Post subject:  Re: AHK Script to remove Address bar

I have updated the script and the executable. Now it works better!

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/