Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

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

- - - - -

  • Please log in to reply
3 replies to this topic

#1
Outbreaker

Outbreaker

    Advanced Member

  • Member
  • PipPipPip
  • 300 posts
  • Joined 08-August 07
  • OS:Windows 7 x86
  • Country: Country Flag
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, 12 May 2008 - 04:26 PM.



How to remove advertisement from MSFN

#2
m4z3

m4z3
  • Member
  • 3 posts
  • Joined 21-April 08
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


#3
Outbreaker

Outbreaker

    Advanced Member

  • Member
  • PipPipPip
  • 300 posts
  • Joined 08-August 07
  • OS:Windows 7 x86
  • Country: Country Flag
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, 28 May 2008 - 07:50 PM.


#4
ppp

ppp
  • Member
  • 2 posts
  • Joined 08-February 13
  • OS:Windows 7 x64
  • Country: Country Flag
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





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users