Advertisement
giny8i8

GinThinSideTaskbar

Jun 21st, 2014
989
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ^+t::  
  2.     ; GinThinSideTaskbar
  3.     ; by giny8i8
  4.     ; v1p02 at 2014-06-23
  5.     ; 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.
  6.     ; Assumptions: The taskbar is not hidden when you run this code (UxSms restart thinners the taskbar only if the taskbar is hidden)
  7.        
  8.     TaskbarToggler() ;Hide Taskbar
  9.     Sleep 3000  ;Wait a little
  10.     RunWait,sc stop "UxSms" ;Stop "Desktop Window Manager Session Manager Service" service.
  11.     RunWait,sc start "UxSms" ;Start "Desktop Window Manager Session Manager Service" service.
  12.     Sleep 3000  ;Wait a little
  13.     TaskbarToggler() ;Show Taskbar again
  14.  
  15.     TaskbarToggler()
  16.     {
  17.         Run % "RunDll32.exe shell32.dll,Options_RunDLL 1" ;Open "Taskbar and Start Menu Properties" window
  18.         WinWait, Taskbar and Start Menu Properties ;Wait for the window to open
  19.         SendInput {Tab}{Space}{Enter} ;Togle Taskbar hiding
  20.     }
  21.     return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement