소프트웨어 레인미터 : 디스크 사용량에 따른 색의 변화
2020.02.18 12:34
디스크 사용량을 레인미터로 구현했을때 사용량이 90%를 넘기면 라운드로 표현된 사용량을 빨간색으로 구현하고 싶습니다.
아울러 욕심을 더 부려본다면 80% 이상일때부터 노란색으로 구현하고 싶습니다.
레인미터 고수님께 도움 요청 드립니다.
-----------------------------------------------------------------
아래는 위 그림의 레인미터스킨 소스 입니다.
;======================= Measures
[MeasureNameDisk1]
Measure=FreeDiskSpace
Drive=#Disk1#
Label=1
[MeasureUsedDisk1]
Measure=FreeDiskSpace
Drive=#Disk1#
InvertMeasure=1
IgnoreRemovable=0
UpdateDivider=2
;======================= Variables
[Variables]
Size_W=100
Start_Angle=RAD(140)
Rotation_Angle=RAD(260)
Line_Start1=(#Size_W#/2)
Line_Length1=(#Line_Start1#-20)
Disk1=C:
;======================= Styles
[Style_DiskImage]
Solid=1
AntiAlias=1
W=100
H=100
X=0
Y=0
StartAngle=(#Start_Angle#)
RotationAngle=(#Rotation_Angle#)
[Style_DiskImage_Base]
LineStart=#Line_Start1#
LineLength=#Line_Length1#
LineColor=255,255,255,50
[Style_Text]
FontFace=Segoe UI
FontColor=255,255,255,200
StringAlign=Center
AntiAlias=1
[Style_DiskCharacter]
FontSize=20
StringStyle=Bold
[Style_DiskUsed%]
X=r
Y=(#Size_W#/2.5)r
FontSize=15
Percentual=1
NumofDecimals=0
Text="%1%"
;======================= Meters
[디스크이미지_Base1]
Meter=RoundLine
MeterStyle=Style_DiskImage | Style_DiskImage_Base
[디스크이미지_사용량1]
MeasureName=MeasureUsedDisk1
Meter=RoundLine
MeterStyle=Style_DiskImage | Style_DiskImage_Base
LineColor=255,255,255.180
[디스크문자1]
MeasureName=MeasureNameDisk1
Meter=String
MeterStyle=Style_Text | Style_DiskCharacter
X=(#Size_W#/2)
Y=(#Size_W#/2-15)
Text=#Disk1#
[디스크사용율%1]
MeasureName=MeasureUsedDisk1
Meter=String
MeterStyle=Style_Text | Style_DiskUsed%
-----------------------------------------------------------------
아울러 위 소스를 파일로 첨부합니다.
댓글 [7]
-
꼬져 2020.02.18 13:25 -
billy 2020.02.18 14:42
꼬져님, 답변 정말 감사드립니다.
그런데 80% 이상, 90% 이상으로 하려 하는데 사용하신 부호 ">" 대신 ">=" 로 해야 하나요? ">=" 가 안먹혀서요.
-
꼬져 2020.02.18 14:47 80% 이상 노란색 90% 이상 빨간색으로 안 되나요 .?
IfCondition=(MeterUsed2>0.8)
IfCondition=(MeterUsed2>=0.8) 둘다 됩니다.
-
billy 2020.02.18 15:32
제가 카피를 잘 못 떳나봅니다.
정말 감사드립니다. 완벽 구현했습니다.
-
꼬져 2020.02.18 13:31 cmd 명령어 cipher /w:c 확인 가능 합니다. 해보세요
-
billy 2020.02.18 17:02
꼬져님, 다시 한번 감사드립니다.
명령 순서를 80%를 먼저 표기하고 90%를 뒤에 표기하니 잘 됩니다.
80%를 후순위로 두니 90% 이상도 노란색으로 나오는군요.
덕분에 잘 해결되어 기분이 뻥 뚫렸습니다.
-
꼬져 2020.02.18 17:12 레인미터 이쁘게 잘 만드셨네요 ^ ^
번호 | 제목 | 글쓴이 | 조회 | 등록일 |
---|---|---|---|---|
[공지] | 질문과 답변 게시판 이용간 유의사항 | gooddew | - | - |
10976 | 윈 도 우| 부팅 영역 만들기는 어떻게? - imagex 로 윈도우 설치하기 [2] | 베리타스 | 3515 | 02-07 |
10975 | 윈 도 우| 부팅중 멈춤현상 [2] | 짠물 | 3515 | 06-24 |
10974 | 윈 도 우| 윈도우7 절전기능~ [4] | netclub011 | 3515 | 07-12 |
10973 | 윈 도 우| grub4dos트루이미지usb로부팅시디 [1] | 메실 | 3515 | 10-02 |
10972 | 소프트웨어| cda파일을 mp3파일로 바꾸는 프로그램???? [4] | BAOBEI | 3515 | 11-27 |
10971 | 하드웨어| Li-ion 배터리 수명 반타작... [3] | Epic | 3515 | 08-14 |
10970 | 윈 도 우| 이베이에서 초저렴 윈도우10 리테일키 사도 되나요? [4] | 띄용 | 3515 | 06-08 |
10969 | 윈xp, 윈7 멀티부팅 설치시 관한 질문입니다...ㅠㅠ [2] | 내일의날씨 | 3516 | 05-11 |
10968 | 윈 도 우| Windows 7 x86 Ultimate의 블루스크린 문제 해결좀 도와주... [1] | DayDreaming | 3516 | 11-20 |
10967 | 하드웨어| M$ 오피스 2003 or 2007 무료강좌 사이트 있나요? [2] | June.RED4™ | 3516 | 11-25 |
10966 | 윈 도 우| 노트북 OEM에 관한 질문입니다 [7] | 공피 | 3516 | 05-21 |
10965 | 하드웨어| 라우터에서 utorento 와 같은 프로그램을 이용한 공유를 막... [3] | Kains | 3516 | 05-26 |
10964 | 윈 도 우| 윈도우7 과 윈도우8 멀티부팅 문제 [22] | AcRoS | 3516 | 08-30 |
10963 | 소프트웨어| [재질문] 파폭/크롬 확장 기능 질문(배율고정, 번역기, 검... | 공피 | 3516 | 11-23 |
10962 | 윈 도 우| Windows7 서비스팩1 업그레이드 후 .. [1] | 오호호o | 3516 | 02-26 |
10961 | 하드웨어| 컴퓨터 부팅시 하드 소음이 큽니다. [4] | 언블이 | 3516 | 09-19 |
10960 | 소프트웨어| *.fr3 확장자 열기~ [2] | 영심이~ | 3516 | 11-14 |
10959 | win 7 x64 7600에서 winamp가 제대로 되나요? [5] | bluespy | 3517 | 07-27 |
10958 | 윈 도 우| 윈도우7 백신은? [5] | 꼬마늑대 | 3517 | 11-27 |
10957 | 하드웨어| RamDisk 사용 많이들 하시나요? [12] | 월드@ | 3517 | 05-18 |
;======================= Measures
[MeasureNameDisk1]
Measure=FreeDiskSpace
Drive=#Disk1#
Label=1
[MeasureUsedDisk1]
Measure=FreeDiskSpace
Drive=#Disk1#
InvertMeasure=1
IgnoreRemovable=0
UpdateDivider=2
;======================= Variables
[Variables]
Size_W=100
Start_Angle=RAD(140)
Rotation_Angle=RAD(260)
Line_Start1=(#Size_W#/2)
Line_Length1=(#Line_Start1#-20)
Disk1=C:
;======================= Styles
[Style_DiskImage]
Solid=1
AntiAlias=1
W=100
H=100
X=0
Y=0
StartAngle=(#Start_Angle#)
RotationAngle=(#Rotation_Angle#)
[Style_DiskImage_Base]
LineStart=#Line_Start1#
LineLength=#Line_Length1#
LineColor=255,255,255,50
[Style_Text]
FontFace=Segoe UI
FontColor=255,255,255,200
StringAlign=Center
AntiAlias=1
[Style_DiskCharacter]
FontSize=20
StringStyle=Bold
[Style_DiskUsed%]
X=r
Y=(#Size_W#/2.5)r
FontSize=15
Percentual=1
NumofDecimals=0
Text="%1%"
;======================= Meters
[디스크이미지_Base1]
Meter=RoundLine
MeterStyle=Style_DiskImage | Style_DiskImage_Base
[MeterUsed]
MeasureName=MeasureUsedDisk1
Meter=RoundLine
MeterStyle=Style_DiskImage | Style_DiskImage_Base
LineColor=255,255,255.180
[DriveUsed]
Measure=FreeDiskSpace
Drive=#Disk1#
InvertMeasure=1
IgnoreRemovable=0
[DriveSize]
Measure=FreeDiskSpace
Drive=#Disk1#
Total=1
[MeterUsed]
Meter=RoundLine
MeasureName=DriveUsed
[MeterUsed1]
Measure=Calc
Formula=( DriveUsed / DriveSize )
IfCondition=(MeterUsed1>0.9)
IfTrueAction=[!SetOption MeterUsed LineColor "255,0,0"][!UpdateMeter "MeterUsed"][!Redraw]
IfFalseAction=[!SetOption MeterUsed LineColorr "255,228,0"][!UpdateMeter "MeterUsed"][!Redraw]
[MeterUsed2]
Measure=Calc
Formula=( DriveUsed / DriveSize )
IfCondition=(MeterUsed2>0.8)
IfTrueAction=[!SetOption MeterUsed LineColor "255,228,0"][!UpdateMeter "MeterUsed"][!Redraw]
IfFalseAction=[!SetOption MeterUsed LineColor "255, 255, 255, 180"][!UpdateMeter "MeterUsed"][!Redraw]
[디스크문자1]
MeasureName=MeasureNameDisk1
Meter=String
MeterStyle=Style_Text | Style_DiskCharacter
X=(#Size_W#/2)
Y=(#Size_W#/2-15)
Text=#Disk1#
[디스크사용율%1]
MeasureName=MeasureUsedDisk1
Meter=String
MeterStyle=Style_Text | Style_DiskUsed%