This is a tricks that utilize MouseOverAction as "Hotspots" on a desktop.
You can quickly execute allocated commands by touching each hotspots with the mouse cursor.
___________________________________
Here is the snippet of config which arranged 8 hotspots to a desktop area.
[Snippets.inc]
Code: Select all
[Variables]
SpotSizeCorner=8
SpotSizeSideLength=800
SpotSizeSideDepth=2
ReleaseDepth=2
SpotColor=255,0,0,1
ReleaseColor=0,255,255,1
[Rainmeter]
Update=86400000
OnRefreshAction=!Execute [!RainmeterMove #SCREENAREAX# #SCREENAREAY#][!RainmeterZPos 2]
; Release Sections ==============
; (These sections are Workaround for MouseLeaveAction issue)
[MeterRelease_TopLeft]
Meter=IMAGE
X=0
Y=0
W=(#SpotSizeCorner#+#ReleaseDepth#)
H=(#SpotSizeCorner#+#ReleaseDepth#)
SolidColor=#ReleaseColor#
[MeterRelease_TopSide]
Meter=IMAGE
X=((#SCREENAREAWIDTH#/2)-(#SpotSizeSideLength#/2))
Y=0
W=#SpotSizeSideLength#
H=(#SpotSizeSideDepth#+#ReleaseDepth#)
SolidColor=#ReleaseColor#
[MeterRelease_TopRight]
Meter=IMAGE
X=(#SCREENAREAWIDTH#-(#SpotSizeCorner#+#ReleaseDepth#))
Y=0
W=(#SpotSizeCorner#+#ReleaseDepth#)
H=(#SpotSizeCorner#+#ReleaseDepth#)
SolidColor=#ReleaseColor#
[MeterRelease_LeftSide]
Meter=IMAGE
X=0
Y=((#SCREENAREAHEIGHT#/2)-(#SpotSizeSideLength#/2))
W=(#SpotSizeSideDepth#+#ReleaseDepth#)
H=#SpotSizeSideLength#
SolidColor=#ReleaseColor#
[MeterRelease_RightSide]
Meter=IMAGE
X=(#SCREENAREAWIDTH#-(#SpotSizeSideDepth#+#ReleaseDepth#))
Y=((#SCREENAREAHEIGHT#/2)-(#SpotSizeSideLength#/2))
W=(#SpotSizeSideDepth#+#ReleaseDepth#)
H=#SpotSizeSideLength#
SolidColor=#ReleaseColor#
[MeterRelease_BottomLeft]
Meter=IMAGE
X=0
Y=(#SCREENAREAHEIGHT#-(#SpotSizeCorner#+#ReleaseDepth#))
W=(#SpotSizeCorner#+#ReleaseDepth#)
H=(#SpotSizeCorner#+#ReleaseDepth#)
SolidColor=#ReleaseColor#
[MeterRelease_BottomSide]
Meter=IMAGE
X=((#SCREENAREAWIDTH#/2)-(#SpotSizeSideLength#/2))
Y=(#SCREENAREAHEIGHT#-(#SpotSizeSideDepth#+#ReleaseDepth#))
W=#SpotSizeSideLength#
H=(#SpotSizeSideDepth#+#ReleaseDepth#)
SolidColor=#ReleaseColor#
[MeterRelease_BottomRight]
Meter=IMAGE
X=(#SCREENAREAWIDTH#-(#SpotSizeCorner#+#ReleaseDepth#))
Y=(#SCREENAREAHEIGHT#-(#SpotSizeCorner#+#ReleaseDepth#))
W=(#SpotSizeCorner#+#ReleaseDepth#)
H=(#SpotSizeCorner#+#ReleaseDepth#)
SolidColor=#ReleaseColor#
; HotSpot Sections ==============
[MeterSpot_TopLeft]
Meter=IMAGE
X=0
Y=0
W=#SpotSizeCorner#
H=#SpotSizeCorner#
SolidColor=#SpotColor#
MouseOverAction=#TopLeft#
[MeterSpot_TopSide]
Meter=IMAGE
X=((#SCREENAREAWIDTH#/2)-(#SpotSizeSideLength#/2))
Y=0
W=#SpotSizeSideLength#
H=#SpotSizeSideDepth#
SolidColor=#SpotColor#
MouseOverAction=#TopSide#
[MeterSpot_TopRight]
Meter=IMAGE
X=(#SCREENAREAWIDTH#-#SpotSizeCorner#)
Y=0
W=#SpotSizeCorner#
H=#SpotSizeCorner#
SolidColor=#SpotColor#
MouseOverAction=#TopRight#
[MeterSpot_LeftSide]
Meter=IMAGE
X=0
Y=((#SCREENAREAHEIGHT#/2)-(#SpotSizeSideLength#/2))
W=#SpotSizeSideDepth#
H=#SpotSizeSideLength#
SolidColor=#SpotColor#
MouseOverAction=#LeftSide#
[MeterSpot_RightSide]
Meter=IMAGE
X=(#SCREENAREAWIDTH#-#SpotSizeSideDepth#)
Y=((#SCREENAREAHEIGHT#/2)-(#SpotSizeSideLength#/2))
W=#SpotSizeSideDepth#
H=#SpotSizeSideLength#
SolidColor=#SpotColor#
MouseOverAction=#RightSide#
[MeterSpot_BottomLeft]
Meter=IMAGE
X=0
Y=(#SCREENAREAHEIGHT#-#SpotSizeCorner#)
W=#SpotSizeCorner#
H=#SpotSizeCorner#
SolidColor=#SpotColor#
MouseOverAction=#BottomLeft#
[MeterSpot_BottomSide]
Meter=IMAGE
X=((#SCREENAREAWIDTH#/2)-(#SpotSizeSideLength#/2))
Y=(#SCREENAREAHEIGHT#-#SpotSizeSideDepth#)
W=#SpotSizeSideLength#
H=#SpotSizeSideDepth#
SolidColor=#SpotColor#
MouseOverAction=#BottomSide#
[MeterSpot_BottomRight]
Meter=IMAGE
X=(#SCREENAREAWIDTH#-#SpotSizeCorner#)
Y=(#SCREENAREAHEIGHT#-#SpotSizeCorner#)
W=#SpotSizeCorner#
H=#SpotSizeCorner#
SolidColor=#SpotColor#
MouseOverAction=#BottomRight#
The following is a various examples for useful usage.
Use it with above snippet using @Include
[Change State of all skins]
- Top Left = Show all skins
- Top Right = Hide all skins
- Bottom Left = Change Transparency of all skins to 0%
- Bottom Right = Change Transparencyof all skins to 70%
Code: Select all
[Variables]
TopLeft=!RainmeterShowFade *
TopSide=
TopRight=!Execute [!RainmeterHideFade *][!RainmeterShow Hotspots]
LeftSide=
RightSide=
BottomLeft=!RainmeterSetTransparency 255 *
BottomSide=
BottomRight=!RainmeterSetTransparency 75 *
[Rainmeter]
@Include=#CURRENTPATH#Snippets.inc
- Top Left =Volume Down
- Top Side = Pause
- Top Right = Volume Up
- Left Side = Previous Track
- Right Side = Next Track
Code: Select all
[Variables]
TopLeft=!RainmeterPluginBang "MeasureWinamp SendMessage 273 40352 0"
TopSide=!RainmeterPluginBang "MeasureWinamp SendMessage 273 40046 0"
TopRight=!RainmeterPluginBang "MeasureWinamp SendMessage 273 40351 0"
LeftSide=!RainmeterPluginBang "MeasureWinamp SendMessage 273 40044 0"
RightSide=!RainmeterPluginBang "MeasureWinamp SendMessage 273 40048 0"
BottomLeft=
BottomSide=
BottomRight=
[Rainmeter]
@Include=#CURRENTPATH#Snippets.inc
; Winamp Control ========================
[MeasureWinamp]
Measure=Plugin
Plugin=Plugins\WindowMessagePlugin.dll
WindowClass=Winamp v1.x
- Top Left = Run Notepad
- Top Right = Run Explorer
- Bottom Left = Run Browser
- Bottom Right = Run iTunes
Code: Select all
[Variables]
TopLeft=!Execute [notepad.exe]
TopSide=
TopRight=!Execute [explorer.exe]
LeftSide=
RightSide=
BottomLeft=!Execute [http://google.com/]
BottomSide=
BottomRight=!Execute [iTunes.exe]
[Rainmeter]
@Include=#CURRENTPATH#Snippets.inc
- Top Left = Shows Desktop
- Top Right = Window Switcher
- Bottom Left = Run
- Bottom Right = Task Manager
Code: Select all
[Variables]
TopLeft=!Execute ["%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Shows Desktop.lnk"]
TopSide=
TopRight=!Execute ["%APPDATA%\Microsoft\Internet Explorer\Quick Launch\Window Switcher.lnk"]
LeftSide=
RightSide=
BottomLeft=!Execute [%windir%\system32\rundll32.exe shell32.dll,#61]
BottomSide=
BottomRight=!Execute [taskmgr]
[Rainmeter]
@Include=#CURRENTPATH#Snippets.inc
The above examples is just a EXAMPLE. So you should define the best commands into "My_Commands.ini", in order to realize practical use.
Download Example Configs
I hope this information helps you.
______________________________________
Notes:
- This requires Rainmeter-1.2-beta or higher
- Snippet.inc is based on the assumption that "desktop area" is desktop of primary monitor.
- You can change hotspot size by changing the value under the [Variables] on the Snippet.inc if you need. But it's important to note that hotspot always stays on at the top z-position so if hotspot size is too big, it might become the obstacle of other operations.
- If you want to check the hotspot size, change value of "SpotColor" and "ReleaseColor".