Late to the party as usual...
Not sure if the OP is still actively following this thread, but here is an example using the
HotKey plugin...
It uses 4 images that are almost full screen; sides are not covered so the skin does not interfere with Windows OS actions.
The plugin does not need focus for key presses to register. If it is the only activity, then this is not a problem, but using other apps while this skin is active, may launch one of the processes. I chose "ESCAPE" as the activatekey variable, but any other key will work.
It's position could be set to "TopMost" or "Staytomost'" if desired by adding [!ZPos 1] or [!ZPos 2] to the OnRefreshAction in the [Rainmeter] section. UP/DOWN keys will change the selection, the ESCAPE key activates the highlighted process.
Code: Select all
; ========= Metadata ==========
[Metadata]
Name=
Author=
Information=
; BY=attribution / SA=share-alike / ND=no-derivatives / NC=non-commercial
License=CC BY-SA-NC 3.0
Version=
; ========= Variables ==========
[Variables]
process1name=skype
process1=skype.exe
process2name=internet
process2=chrome.exe
process3name=notes
process3=notepad.exe
process4name=calculator
process4=calc.exe
activatekey=ESCAPE
; Set by skin actions
selected=1
alpha1=255
alpha2=55
alpha3=55
alpha4=55
; ========= Skin Settings ==========
[Rainmeter]
Update=1000
AccurateText=1
DynamicWindowSize=1
Group=#RootConfig#
OnRefreshAction=[!Move "0" "0"][!ZPos 0]
; ========= Measures ==========
[MeasureHotKeyUp]
Measure=Plugin
Plugin=HotKey
HotKey=UP
;ShowAllKeys=1
KeyUpAction=[!SetVariable selected (Clamp(#selected#+1,1,4))][!UpdateMeasure MeasureAlpha][!UpdateMeter *][!Redraw]
DynamicVariables=1
[MeasureHotKeyDown]
Measure=Plugin
Plugin=HotKey
HotKey=DOWN
;ShowAllKeys=1
KeyUpAction=[!SetVariable selected (Clamp(#selected#-1,1,4))][!UpdateMeasure MeasureAlpha][!UpdateMeter *][!Redraw]
DynamicVariables=1
[MeasureHotKeyActivateProcess]
Measure=Plugin
Plugin=HotKey
HotKey=#activatekey#
;ShowAllKeys=1
KeyUpAction=["[#process[#selected]]"]
DynamicVariables=1
[MeasureAlpha]
Measure=Calc
Formula=#selected#
IfCondition=(#selected#=1)
IfTrueAction=[!SetVariable Alpha1 255][!SetVariable Alpha2 55][!SetVariable Alpha3 55][!SetVariable Alpha4 55][!UpdateMeter *][!Redraw]
IfCondition2=(#selected#=2)
IfTrueAction2=[!SetVariable Alpha1 55][!SetVariable Alpha2 255][!SetVariable Alpha3 55][!SetVariable Alpha4 55][!UpdateMeter *][!Redraw]
IfCondition3=(#selected#=3)
IfTrueAction3=[!SetVariable Alpha1 55][!SetVariable Alpha2 55][!SetVariable Alpha3 255][!SetVariable Alpha4 55][!UpdateMeter *][!Redraw]
IfCondition4=(#selected#=4)
IfTrueAction4=[!SetVariable Alpha1 55][!SetVariable Alpha2 55][!SetVariable Alpha3 55][!SetVariable Alpha4 255][!UpdateMeter *][!Redraw]
IfConditionMode=1
DynamicVariables=1
; ========= Meter Styles ==========
[TextStyle]
StringCase=Upper
StringAlign=CenterCenter
StringStyle=Bold
StringEffect=Border
FontSize=36
DynamicVariables=1
; ========= Meters ==========
[Background]
Meter=Image
X=1
Y=1
W=(#WorkAreaWidth#-2)
H=(#WorkAreaHeight#-2)
SolidColor=0,0,0
[MeterImage1]
Meter=Image
DynamicVariables=1
X=1
Y=1
W=([Background:W]*0.5)
H=([Background:H]*0.5)
SolidColor=222,22,22,#alpha1#
AntiAlias=1
[MeterImage2]
Meter=Image
DynamicVariables=1
X=R
Y=r
W=([Background:W]*0.5)
H=([Background:H]*0.5)
SolidColor=222,222,22,#alpha2#
AntiAlias=1
[MeterImage3]
Meter=Image
DynamicVariables=1
X=1
Y=R
W=([Background:W]*0.5)
H=([Background:H]*0.5)
SolidColor=222,22,222,#alpha3#
AntiAlias=1
[MeterImage4]
Meter=Image
DynamicVariables=1
X=R
Y=r
W=([Background:W]*0.5)
H=([Background:H]*0.5)
SolidColor=22,22,222,#alpha4#
AntiAlias=1
[MeterString1]
Meter=String
MeterStyle=TextStyle
X=([MeterImage1:W]*0.5)
Y=([MeterImage1:H]*0.5)
Text=#process1name#
FontColor=255,255,255,[#Alpha1]
[MeterString2]
Meter=String
MeterStyle=TextStyle
X=([MeterImage1:XW]+[MeterImage2:W]*0.5)
Y=([MeterImage2:YH]*0.5)
Text=#process2name#
FontColor=255,255,255,[#Alpha2]
[MeterString3]
Meter=String
MeterStyle=TextStyle
X=([MeterImage3:W]*0.5)
Y=([MeterImage1:YH]+[MeterImage3:H]*0.5)
Text=#process3name#
FontColor=255,255,255,[#Alpha3]
[MeterString4]
Meter=String
MeterStyle=TextStyle
X=([MeterImage1:XW]+[MeterImage4:W]*0.5)
Y=([MeterImage1:YH]+[MeterImage4:H]*0.5)
Text=#process4name#
FontColor=255,255,255,[#Alpha4]
panel4.gif
Click image to show animation...
You do not have the required permissions to view the files attached to this post.