Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^+t::
- ; GinThinSideTaskbar
- ; by giny8i8
- ; v1p02 at 2014-06-23
- ; If you use the Windows 7 Taskbar on the side of your screen, with smal icons, this makes it look 1 icon thin instead of the default double size.
- ; Assumptions: The taskbar is not hidden when you run this code (UxSms restart thinners the taskbar only if the taskbar is hidden)
- TaskbarToggler() ;Hide Taskbar
- Sleep 3000 ;Wait a little
- RunWait,sc stop "UxSms" ;Stop "Desktop Window Manager Session Manager Service" service.
- RunWait,sc start "UxSms" ;Start "Desktop Window Manager Session Manager Service" service.
- Sleep 3000 ;Wait a little
- TaskbarToggler() ;Show Taskbar again
- TaskbarToggler()
- {
- Run % "RunDll32.exe shell32.dll,Options_RunDLL 1" ;Open "Taskbar and Start Menu Properties" window
- WinWait, Taskbar and Start Menu Properties ;Wait for the window to open
- SendInput {Tab}{Space}{Enter} ;Togle Taskbar hiding
- }
- return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement