It is currently September 17th, 2019, 3:30 pm

HideTaskbar

Share and get help with Plugins and Addons
User avatar
jsmorley
Developer
Posts: 19457
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

HideTaskbar

jsmorley » February 6th, 2016, 7:11 pm

A plugin to display and control the "visible" state of the Windows Taskbar.

==========================================================================
The HideTaskbar plugin will return the current state of the Windows
Taskbar. Possible return values are:

1 : Taskbar visible and AutoHide not set
2 : Taskbar visible and AutoHide set
-1 : Taskbar hidden and AutoHide not set
-2 : Taskbar hidden and AutoHide set

Measure Options:

BarInstance
Possible values are Both (default) First and Second
Example: BarInstance=Both
This is to allow for a second Taskbar on a second monitor in Windows 10.
If you are on Windows 7, or only have one monitor, this option can be left
off and the default "Both" will work fine.

Measure Commands:

The state of the Taskbar may be set using the !CommandMeasure bang

Commands that effect "visibility"
!CommandMeasure MeasureTaskbar "Hide"
!CommandMeasure MeasureTaskbar "Show"

Commands that effect "AutoHide"
!CommandMeasure MeasureTaskbar "AutoHide"
!CommandMeasure MeasureTaskbar "AlwaysShow"

Note: The desktop work area in Windows will only be changed to include
the area previously used by the the "hidden" Taskbar if "AutoHide" is
also set. So to have windows "maximize" to the full height of your screen,
set "Hide" and "AutoHide"

Note: Unless you intend for the change to be persistent, it is advisable
to have OnCloseAction=[!CommandMeasure MeasureTaskbar "Show"] in the
[Rainmeter] Section of the skin, so the Taskbar is made visible when
the skin is unloaded or Rainmeter is exited.

Safety net: Windows will always set the Taskbar(s) to "visible" when Windows Explorer
is restarted.
==========================================================================

Plugin Alone:
HideTaskbar for distribution.zip
Simple Skin with plugin and the 32bit - 64bit versions for distribution:
HideTaskbar_2.0.rmskin
1.jpg

Code: Select all

[Rainmeter]
Update=1000
DynamicWindowSize=1
AccurateText=1
OnCloseAction=[!CommandMeasure MeasureTaskbar "Show"]

[Metadata]
Name=HideTaskbar
Author=JSMorley
Information=Demonstrates the HideTaskbar plugin for Rainmeter.||See information in the skin .ini file.
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=Feb 7, 2016

; ==========================================================================
; The HideTaskbar plugin will return the current state of the Windows
; Taskbar. Possible return values are:

;  1 : Taskbar visible and AutoHide not set
;  2 : Taskbar visible and AutoHide set
; -1 : Taskbar hidden and AutoHide not set
; -2 : Taskbar hidden and AutoHide set

; Measure Options:

; BarInstance
; Possible values are Both (default) First and Second
; Example: BarInstance=Both
; This is to allow for a second Taskbar on a second monitor in Windows 10.
; If you are on Windows 7, or only have one monitor, this option can be left
; off and the default "Both" will work fine.

; Measure Commands:

; The state of the Taskbar may be set using the !CommandMeasure bang

; Commands that effect "visibility"
; !CommandMeasure MeasureTaskbar "Hide"
; !CommandMeasure MeasureTaskbar "Show"

; Commands that effect "AutoHide"
; !CommandMeasure MeasureTaskbar "AutoHide"
; !CommandMeasure MeasureTaskbar "AlwaysShow"

; Note: The desktop work area in Windows will only be changed to include
; the area previously used by the the "hidden" Taskbar if "AutoHide" is
; also set. So to have windows "maximize" to the full height of your screen,
; set "Hide" and "AutoHide"

; Note: Unless you intend for the change to be persistent, it is advisable
; to have OnCloseAction=[!CommandMeasure MeasureTaskbar "Show"] in the 
; [Rainmeter] Section of the skin, so the Taskbar is made visible when
; the skin is unloaded or Rainmeter is exited.
; ==========================================================================

[MeasureInstance]
Measure=String
String=Both
ifMatch=Both
IfMatchAction=[!SetOption MeterChooseBoth FontColor "255,255,255,255"]
ifMatch2=First
IfMatchAction2=[!SetOption MeterChooseFirst FontColor "255,255,255,255"]
ifMatch3=Second
IfMatchAction3=[!SetOption MeterChooseSecond FontColor "255,255,255,255"]

[MeasureTaskbar]
Measure=Plugin
Plugin=HideTaskbar
BarInstance=[MeasureInstance]
DynamicVariables=1
IfCondition=MeasureTaskBar = 1
IfTrueAction=[!SetOption MeterCurrentState Text "Visible / No AutoHide"][!UpdateMeter *][!Redraw]
IfCondition2=MeasureTaskBar = 2
IfTrueAction2=[!SetOption MeterCurrentState Text "Visible / AutoHide"][!UpdateMeter *][!Redraw]
IfCondition3=MeasureTaskBar = -1
IfTrueAction3=[!SetOption MeterCurrentState Text "Hidden / No AutoHide"][!UpdateMeter *][!Redraw]
IfCondition4=MeasureTaskBar = -2
IfTrueAction4=[!SetOption MeterCurrentState Text "Hidden / AutoHide"][!UpdateMeter *][!Redraw]

[MeterBack]
Meter=Image
W=285
H=170
SolidColor=47,47,47,255

[MeterChooseBoth]
Meter=String
Group=Select
X=5
Y=5
FontSize=16
FontColor=150,150,150,255
AntiAlias=1
Text=⚫
LeftMouseUpAction=[!WriteKeyValue MeasureInstance String "Both"][!Refresh]

[MeterBoth]
Meter=String
X=5R
Y=6r
FontSize=12
FontColor=255,255,255,255
AntiAlias=1
Text=Both Taskbars

[MeterChooseFirst]
Meter=String
Group=Select
X=5
Y=-3R
FontSize=16
FontColor=150,150,150,255
AntiAlias=1
Text=⚫
LeftMouseUpAction=[!WriteKeyValue MeasureInstance String "First"][!Refresh]

[MeterFirst]
Meter=String
X=5R
Y=6r
FontSize=12
FontColor=255,255,255,255
AntiAlias=1
Text=First Taskbar

[MeterChooseSecond]
Meter=String
Group=Select
X=5
Y=-3R
FontSize=16
FontColor=150,150,150,255
AntiAlias=1
Text=⚫
LeftMouseUpAction=[!WriteKeyValue MeasureInstance String "Second"][!Refresh]

[MeterSecond]
Meter=String
X=5R
Y=6r
FontSize=12
FontColor=255,255,255,255
AntiAlias=1
Text=Second Taskbar

[MeterHide]
Meter=String
X=170
Y=20
FontSize=12
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Text=Hide Taskbar
LeftMouseUpAction=[!CommandMeasure MeasureTaskbar "Hide"]

[MeterShow]
Meter=String
X=170
Y=5R
FontSize=12
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Text=Show Taskbar
LeftMouseUpAction=[!CommandMeasure MeasureTaskbar "Show"]

[MeterAutoHide]
Meter=String
X=11
Y=90
FontSize=12
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Text=AutoHide Both Taskbars
LeftMouseUpAction=[!CommandMeasure MeasureTaskbar "AutoHide"]

[MeterAlwaysShow]
Meter=String
X=11
Y=5R
FontSize=12
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Text=Always Show Both Taskbars
LeftMouseUpAction=[!CommandMeasure MeasureTaskbar "AlwaysShow"]

[MeterCurrentState]
Meter=String
X=11
Y=14R
FontSize=12
FontColor=255,255,255,255
SolidColor=0,0,0,1
AntiAlias=1
Prefix="Currently "
Code: https://github.com/jsmorley/HideTaskbar
You do not have the required permissions to view the files attached to this post.
User avatar
eclectic-tech
Rainmeter Sage
Posts: 3540
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: HideTaskbar

eclectic-tech » February 6th, 2016, 8:05 pm

8-)
User avatar
jsmorley
Developer
Posts: 19457
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: HideTaskbar

jsmorley » February 7th, 2016, 1:22 pm

I have updated the plugin and example skin to version 2.0

Now supports having two Taksbars with Windows 10. Each can be hidden or shown together or separately. AutoHide however, is an attribute that always effects both Taskbars.

Updates in first post of the thread.
User avatar
exper1mental
Posts: 282
Joined: January 9th, 2013, 7:52 pm
Location: Southern USA

Re: HideTaskbar

exper1mental » February 18th, 2016, 8:48 pm

Awesome plugin! :thumbup:
Image