Jump to content

Enable Auto-hide taskbar & Quick Launch IF YOU ARE LOGGED IN.


Recommended Posts

Have fun ;)

@ECHO OFF
TITLE GUI
COLOR 02

ECHO.
ECHO Enable Auto-hide taskbar and Quick Launch.
ECHO ===============================================================================
ECHO.
ECHO.

ECHO Adding Registry Key to enable Auto-hide Taskbar.
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /v "Settings" /t REG_BINARY /d "28000000ffffffff03000000030000006b0000002200000000000000de0200000004000000030000" /F

ECHO.
ECHO -------------------------------------------------------------------------------
ECHO.

ECHO Adding Registry Key to enable Quick Launch.
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Streams\Desktop" /v "TaskbarWinXP" /t REG_BINARY /d "0c000000080000000200000000000000b0e22bd86457d011a96e00c04fd705a222001c000a0100001a00000001000000
0000000000000000000000004c0000000114020000000000c0000000000000468300000010000000a0b0485e898dbd0100d8
9
ee42a8dbd010045fe5e898dbd01000000000000000001000000000000000000000000000000130114001f0fe04fd020ea3a6
9
10a2d808002b30309d190023443a5c0000000000000000000000000000000000cd971500310000000000af245cb910805769
6
e6e7400002000310000000000af24a3b9100050726f66696c65730050524f46494c4553001900310000000000c1240892100
0
69653530302e30303000002800310000000000c124089210004170706c69636174696f6e2044617461004150504c49437e31
0
02100310000000000c5229d9110004d6963726f736f6674004d4943524f537e31002900310000000000d32232a61000496e7
4
65726e6574204578706c6f72657200494e5445524e7e31002400310000000000db2276ba1000517569636b204c61756e6368
0
0515549434b4c7e310000008d0000001c000000010000001c000000360000000df0adba8c0000001a00000003000000e7182
d
231000000049453530305f58314300433a5c57494e4e545c50726f66696c65735c49453530302e3030305c4170706c696361
7
4696f6e20446174615c4d6963726f736f66745c496e7465726e6574204578706c6f7265725c517569636b204c61756e63680
0
0010000000050000a01a000000a3000000000000000800000002000000cc00000001000000030000004a0000000100000040
0
03200e6010000c424159f20004c61756e636820496e7465726e6574204578706c6f7265722042726f777365722e6c6e6b004
c
41554e43487e322e4c4e4b00000040000000020000003600320048020000c424159f20004c61756e6368204f75746c6f6f6b
2
0457870726573732e6c6e6b004c41554e43487e312e4c4e4b00000036000000000000002c00320051000000ec22463920005
3
686f77204465736b746f702e7363660053484f5744457e312e53434600000052000000e00000000000000016000000000000
0
00000000016000000000000000100000001000000aa4f2868486ad0118c7800c04fd918b437020000e000000000000000160
0
00000000000000000000160000000000000001000000" /f

ECHO.
ECHO -------------------------------------------------------------------------------
ECHO.

ECHO Kill explorer.exe processes (explorer.exe restarts automatically again).
TSKILL "explorer" /A /V

EXIT

Edited by Outbreaker
Link to comment
Share on other sites

  • 2 weeks later...

It doesnt work here... (XP Pro)

I think the Taskbar key is not machine independent.

And u will loose all taskbar icons beside the clock if u kill explorer.

I suggest to run systray.exe at the end.

A delay is needed to wait until explorer has finished loading otherwise running systray will be useless.


: Kill explorer
TASKKILL /im EXPLORER.EXE /f >NUL 2>&1

: Restart explorer
START EXPLORER.EXE

: Delay 1,111 sec
PING 1.1.1.1 -n 1 -w 1111 > NUL 2>&1

: Restore taskbar icons
START SYSTRAY.EXE

Link to comment
Share on other sites

If i use this command:

TASKKILL /im EXPLORER.EXE /f

Then the explorer.exe doesn't restart automatically and i must use this command to start it agan:

START EXPLORER.EXE

And if i enter the command "START SYSTRAY.EXE" i see no differences.

Test on too new installed PC's.

Edited by Outbreaker
Link to comment
Share on other sites

  • 4 years later...

I wanted a shortcut to toggle the autohide option of the taskbar and I've come up with the following batch file.

My registry value is not the same with the one given above. I noticed that by only changing that option from the taskbar properties just a digit of the value was altered from 2 to 3 and back. So I just toggle this digit. However this digit may also represent more options in its bits and be different to other PCs. But one can easily adapt it the same way.

:}The problem is that I have to restart explorer so the new registry value takes effect and I loose all opened explorer windows. Can anyone give a script of how I can just refresh the taskbar. Alternatively we could save and restore all opened paths as in this thread, but I want it in a batch script.


@ECHO OFF

::Get the Registry Key, in delims there is a TAB and a space before "
FOR /F "tokens=3 delims= " %%A IN ('REG QUERY "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /v Settings') DO SET RES=%%A

::Backup Initial Value
IF NOT EXIST "autohide-toggle.bak" (
ECHO %RES%>"%userprofile%\autohide-toggle.bak"
)

::Find Important Digit
SET DIGIT=%RES:~17,1%

::Toggle Important Digit
IF %DIGIT% EQU 2 (
SET TOGL=3
) ELSE (
SET TOGL=2
)

::Set New Value
SET NEW=%RES:~0,17%%TOGL%%RES:~18%
REG ADD "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects2" /v "Settings" /t REG_BINARY /d "%NEW%" /F

::Restart Explorer.exe process
TSKILL "explorer" /A /V

EXIT

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...