How to hide the taskbar in vbs

Written by keith patrick
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to hide the taskbar in vbs
VBScript can be used within website coding alongside HTML. (code image by Charles Taylor from Fotolia.com)

VBScript, commonly abbreviated as VBS, is a scripting language used on the Microsoft Windows platform. VBS coders create scripts that can perform small tasks within the Windows operating system. VB scripts are used to do things like automatically open specific applications upon starting up the computer. You can hide the Windows taskbar using a premade VB script and executing it through the "Run" application.

Skill level:
Easy

Other People Are Reading

Instructions

  1. 1

    Click "Start" and then click "Programs." Click "Accessories" and then choose "Notepad" in the program list.

  2. 2

    Type or copy and paste the following code into a text file:

    Sub Taskbar(blnValue As Boolean)

    Dim lngHandle As Long
    
    Dim lngStartButton As Long
    
    
    
    lngHandle = FindWindow("Shell_TrayWnd", "")
    
    
    
    If blnValue Then
    
        ShowWindow lngHandle, 5
    
    Else
    
        ShowWindow lngHandle, 0
    
    End If
    

    End Sub

    Private Sub Cmdhide_Click()

    Dim A As Boolean

    A = False

    Taskbar (A)

    End Sub

    Private Sub Cmdunhide_Click()

    Dim A As Boolean

    A = True

    Taskbar (A)

    End Sub

  3. 3

    Select "File" and then choose "Save As." Type a name for your file and then click the "File Type" drop-down menu. Select ".VBS" from the available list. Click the "Save" button.

  4. 4

    Click "Start" and then click "Run." Type "CMD" and then press the "Enter" button. Type "Cscript" followed by the name of the .VBS file. Windows will run the script

    and the taskbar will automatically hide itself.

Don't Miss

Filter:
  • All types
  • Articles
  • Slideshows
  • Videos
Sort:
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the eHow.co.uk site, you consent to the use of cookies. For more information, please see our Cookie policy.