소프트웨어 레인미터 : 디스크 사용량에 따른 색의 변화
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 | - | - |
100079 | 윈 도 우| 자료실의 Windows 7 Alienware Ultimate 32bit, 64bit에 대... | 소천 | 164972 | 10-01 |
100078 | 윈 도 우| 자료실의 Windows 7 Alienware Ultimate 32bit 받아볼수 없... [2] | 오백원 | 164114 | 10-10 |
100077 | 윈 도 우| 바로가기실행 아이콘의 동작불능 | 가난한사람 | 160513 | 01-31 |
100076 | 윈 도 우| 자료실의 Alienware Windows7의 로고를 원래대로 복원하는 ... [4] | 소천 | 150539 | 10-04 |
100075 | 윈 도 우| Windows 7의 관리 기능을 집약한 숨겨진 GodMode의 존재 [5] | 죠타로 | 123852 | 01-07 |
100074 | 윈 도 우| PE 시작메뉴랑 작업표시줄 숨길 수 없나요? [11] | 배추보쌈 | 107083 | 01-17 |
100073 | 기 타| html&css 중급자 이상자 분께 도움을 요청해봅니다,, [3] | ㄴ초심ㄱ | 102078 | 05-16 |
100072 | 하드웨어| KMS Activator에 대해서 질문있습니다. | 오잉!? | 85423 | 04-20 |
100071 | 윈 도 우| 카리스마조님의 바로가기 말인데요~ [1] | KOOL하게 | 84412 | 01-06 |
100070 | 윈 도 우| 가젯이 CPU 점유율 상승문제에 영향을 주는군요. [22] | BigShit | 83700 | 11-26 |
100069 | 윈 도 우| page fault in nonpaged area [1] | 한강한뺨뷰 | 80331 | 08-24 |
100068 | 윈 도 우| 인터넷 바로가기 관련 궁금한점이 있습니다. [1] | 도라란 | 79936 | 07-06 |
100067 | 윈 도 우| 모든 바로가기를 실행하면 연결프로그램 선택 창이 떠요ㅠㅠ [4] | 네버s2 | 73055 | 09-17 |
100066 | 윈 도 우| 9down.dom 같은 사이트 또 없나요 [3] | 애벌레 | 67510 | 12-10 |
100065 | 하드웨어| 문의)) "kms Server" 삭제 안하고 써도 괜찮나요??? [1] | Chobits0914 | 66874 | 04-29 |
100064 | 윈 도 우| suk님 시간되시면 부탁드립니다. [7] | 초보라서죄 | 64990 | 12-06 |
100063 | 하드웨어| 문의)) KMS인증과 가상바이오스 인증 중 안정적인 것은 어... [2] | Chobits0914 | 64580 | 06-17 |
100062 | 윈 도 우| win7 / vista god mode 활성화 시키기 [7] | 카츠라 | 61014 | 01-06 |
100061 | 윈 도 우| [A.I_7T]SLIC2.1 인증에대해.. [1] | 김간지 | 58995 | 01-23 |
;======================= 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%