User Tools

Site Tools


controlling_20the_20windows_20taskbar

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
controlling_20the_20windows_20taskbar [2018/03/31 13:19] – external edit 127.0.0.1controlling_20the_20windows_20taskbar [2024/01/05 00:22] (current) – external edit 127.0.0.1
Line 1: Line 1:
 =====Controlling the Windows taskbar===== =====Controlling the Windows taskbar=====
  
-//by Richard Russell, August 2007//\\ \\  The code listed in this article allows you to control various aspects of the Windows taskbar, in particular to hide and show the **deskband**, **notification icons** and **clock**:\\ \\ {{taskbar.gif}}\\ \\  In the normal configuration, the **deskband** is positioned on the left, next to the Start button, and holds shortcuts to popular applications; the **clock** is at the extreme right-hand end of the taskbar, and to the left of the clock are the **notification icons**. Listed below are code segments to hide and show the taskbar itself and each of these elements:\\ \\  To hide the taskbar:\\ +//by Richard Russell, August 2007//\\ \\  The code listed in this article allows you to control various aspects of the Windows taskbar, in particular to hide and show the **deskband**, **notification icons** and **clock**:\\ \\ {{taskbar.gif}}\\ \\  In the normal configuration, the **deskband** is positioned on the left, next to the Start button, and holds shortcuts to popular applications; the **clock** is at the extreme right-hand end of the taskbar, and to the left of the clock are the **notification icons**. Listed below are code segments to hide and show the taskbar itself and each of these elements:\\ \\  To hide the taskbar: 
 + 
 +<code bb4w>
         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
         SYS "ShowWindow", htray%, 0         SYS "ShowWindow", htray%, 0
-To show the taskbar:\\ +</code> 
 + 
 +To show the taskbar: 
 + 
 +<code bb4w>
         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
         SYS "ShowWindow", htray%, 1         SYS "ShowWindow", htray%, 1
-To hide the deskband:\\ +</code> 
 + 
 +To hide the deskband: 
 + 
 +<code bb4w>
         WMTRAY_TOGGLEQL = &4ED         WMTRAY_TOGGLEQL = &4ED
         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
         SYS "SendMessage", htray%, WMTRAY_TOGGLEQL, 0, 0 : REM Hide deskband         SYS "SendMessage", htray%, WMTRAY_TOGGLEQL, 0, 0 : REM Hide deskband
-To show the deskband:\\ +</code> 
 + 
 +To show the deskband: 
 + 
 +<code bb4w>
         WMTRAY_TOGGLEQL = &4ED         WMTRAY_TOGGLEQL = &4ED
         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
         SYS "SendMessage", htray%, WMTRAY_TOGGLEQL, 0, 1 : REM Show deskband         SYS "SendMessage", htray%, WMTRAY_TOGGLEQL, 0, 1 : REM Show deskband
-To hide the notification icons:\\ +</code> 
 + 
 +To hide the notification icons: 
 + 
 +<code bb4w>
         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
         SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%         SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%
         SYS "FindWindowEx", hnotify%, 0, "SysPager", 0 TO hpager%         SYS "FindWindowEx", hnotify%, 0, "SysPager", 0 TO hpager%
         SYS "ShowWindow", hpager%, 0 : REM Hide systray icons         SYS "ShowWindow", hpager%, 0 : REM Hide systray icons
-To show the notification icons:\\ +</code> 
 + 
 +To show the notification icons: 
 + 
 +<code bb4w>
         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
         SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%         SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%
         SYS "FindWindowEx", hnotify%, 0, "SysPager", 0 TO hpager%         SYS "FindWindowEx", hnotify%, 0, "SysPager", 0 TO hpager%
         SYS "ShowWindow", hpager%, 1 : REM Show systray icons         SYS "ShowWindow", hpager%, 1 : REM Show systray icons
-To hide the clock:\\ +</code> 
 + 
 +To hide the clock: 
 + 
 +<code bb4w>
         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
         SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%         SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%
         SYS "FindWindowEx", hnotify%, 0, "TrayClockWClass", 0 TO hclock%         SYS "FindWindowEx", hnotify%, 0, "TrayClockWClass", 0 TO hclock%
         SYS "ShowWindow", hclock%, 0 : REM Hide systray clock         SYS "ShowWindow", hclock%, 0 : REM Hide systray clock
-To show the clock:\\ +</code> 
 + 
 +To show the clock: 
 + 
 +<code bb4w>
         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%         SYS "FindWindow", "Shell_TrayWnd", 0 TO htray%
         SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%         SYS "FindWindowEx", htray%, 0, "TrayNotifyWnd", 0 TO hnotify%
         SYS "FindWindowEx", hnotify%, 0, "TrayClockWClass", 0 TO hclock%         SYS "FindWindowEx", hnotify%, 0, "TrayClockWClass", 0 TO hclock%
         SYS "ShowWindow", hclock%, 1 : REM Show systray clock         SYS "ShowWindow", hclock%, 1 : REM Show systray clock
 +</code>
 +
 Note that this code isn't guaranteed to work in all circumstances and on all versions of Windows. In particular some applications are believed to force the notification icons to display even if you have hidden them. You should check that the code meets your specific requirements before using it. Note that this code isn't guaranteed to work in all circumstances and on all versions of Windows. In particular some applications are believed to force the notification icons to display even if you have hidden them. You should check that the code meets your specific requirements before using it.
controlling_20the_20windows_20taskbar.1522502350.txt.gz · Last modified: 2024/01/05 00:18 (external edit)