like this is the rainmeter visual
____________________________________
| Activated account |
| 6 accounts > 1st account|
|__________________________________|
so the 6 account it will check a file destination on how many files was there
the 1st account will only read a specific file name like
"C:\files\data\red.txt" then in the visual the "1st account" will change into Red then if I right click it
"C:\files\data\blue.txt" then in the visual the "red" will change into blue
but it has a order of it like red blue green yellow pink black
so every click or right it will go right and every click of left it will go left
so like the [meterRightSide] the text will change every time you click
the other code that was not here is already done the visual is all I need to finish it I hope you can help me with this project of mine
lua
Code: Select all
function file_exists(name)
local f=io.open(name,"r")
if f~=nil then
io.close(f)
return 1
else
return 0
end
end
Code: Select all
[Variables]
OnText=On
OffText=Off
fontName=Trebuchet MS
textSize=8
colorBar=235,170,0,255
colorText=255,255,255,205
FileToCheck=
[Rainmeter]
Update=1000
Background=#@#Background.png
BackgroundMode=3
BackgroundMargins=0,34,0,14
[MeasureLuaScript]
Measure=Script
ScriptFile=#@#MyLua.lua
Disabled=1
[MeasureCheck]
Measure=Calc
Formula=[&MeasureLuaScript:file_exists('#FileToCheck#')]
IfCondition=(#CURRENTSECTION#>=1)
IfTrueAction=[!SetOption meterRightSide Text " this is where my named files will be on and there's like files "][!UpdateMeter "meterRightSide"][!Redraw]
IfFalseAction=[!SetOption meterRightSide Text " this is where my named files will be on and there's like files "][!UpdateMeter "meterRightSide"][!Redraw]
DynamicVariables=1
; ----------------------------------
; File Check and Change.
; ----------------------------------
[meterTitle]
Meter=String
MeterStyle=styleTitle
X=100
Y=12
W=190
H=18
Text=Check
LeftMouseUpAction=["preview account"]
RightMouseUpAction=["Next accound"]
[meterLeftSide]
Meter=String
MeterStyle=styleLeftText
MeasureName=measureBinItems
X=10
Y=40
W=190
H=14
Text=Account Activated
[meterRightSide]
Meter=String
MeterStyle=styleRightText
MeasureName=measureBinSize
X=200
Y=0r
W=190
H=14
Text=
[meterSeperator]
Meter=Image
MeterStyle=styleSeperator
X=10
Y=52
W=190
H=1
[styleTitle]
StringAlign=Center
StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,50
FontColor=#colorText#
FontFace=#fontName#
FontSize=10
AntiAlias=1
ClipString=1
[styleLeftText]
StringAlign=Left
; Meters using styleLeftText will be left-aligned.
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
[styleRightText]
StringAlign=Right
StringCase=None
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,20
FontColor=#colorText#
FontFace=#fontName#
FontSize=#textSize#
AntiAlias=1
ClipString=1
[styleSeperator]
SolidColor=255,255,255,15