I am doing a sun clock, it refreshes every 1 hour. I am trying to let the user put from "00" to "24" for adjust the clock. the number is in ../SE.INC.
The thing is i dont know how to make a "if" and "substitute" to work. i'm using FORMULA and SUSTITUTE.
Code: Select all
[Rainmeter]
Update=30000
@Include=..\SE.INC
[MT]
Measure=TIME
Format=%H
Formula=#C# = 00
Substitute="00":"00","01":"01","02":"02","03":"03","04":"04","05":"05","06":"06","07":"07","08":"08","09":"09","10":"10","11":"11","12":"12","13":"13","14":"14","15":"15","16":"16","17":"17","18":"18","19":"19","20":"20","21":"21","22":"22","23":"23","24":"24"
Formula=#C# = 01
Substitute="00":"01","01":"02","02":"03","03":"04","04":"05","05":"06","06":"07","07":"08","08":"09","09":"10","10":"11","11":"12","12":"13","13":"14","14":"15","15":"16","16":"17","17":"18","18":"19","19":"20","20":"21","21":"22","22":"23","23":"24","24":"00"
Formula=#C# = 02
Substitute="00":"02","01":"03","02":"04","03":"05","04":"06","05":"07","06":"08","07":"09","08":"10","09":"11","10":"12","11":"13","12":"14","13":"15","14":"16","15":"17","16":"18","17":"19","18":"20","19":"21","20":"22","21":"23","22":"24","23":"00","24":"01"
Formula=#C# = 03
Substitute="00":"03","01":"04","02":"05","03":"06","04":"07","05":"08","06":"09","07":"10","08":"11","09":"12","10":"13","11":"14","12":"15","13":"16","14":"17","15":"18","16":"19","17":"20","18":"21","19":"22","20":"23","21":"24","22":"00","23":"01","24":"02"
Formula=#C# = 04
Substitute="00":"04","01":"05","02":"06","03":"07","04":"08","05":"09","06":"10","07":"11","08":"12","09":"13","10":"14","11":"15","12":"16","13":"17","14":"18","15":"19","16":"20","17":"21","18":"22","19":"23","20":"24","21":"00","22":"01","23":"02","24":"03"
Formula=#C# = 05
Substitute="00":"05","01":"06","02":"07","03":"08","04":"09","05":"10","06":"11","07":"12","08":"13","09":"14","10":"15","11":"16","12":"17","13":"18","14":"19","15":"20","16":"21","17":"22","18":"23","19":"24","20":"00","21":"01","22":"02","23":"03","24":"04"
Formula=#C# = 06
Substitute="00":"06","01":"07","02":"08","03":"09","04":"10","05":"11","06":"12","07":"13","08":"14","09":"15","10":"16","11":"17","12":"18","13":"19","14":"20","15":"21","16":"22","17":"23","18":"24","19":"00","20":"01","21":"02","22":"03","23":"04","24":"05"
Formula=#C# = 07
Substitute="00":"07","01":"08","02":"09","03":"10","04":"11","05":"12","06":"13","07":"14","08":"15","09":"16","10":"17","11":"18","12":"19","13":"20","14":"21","15":"22","16":"23","17":"24","18":"00","19":"01","20":"02","21":"03","22":"04","23":"05","24":"06"
Formula=#C# = 08
Substitute="00":"08","01":"09","02":"10","03":"11","04":"12","05":"13","06":"14","07":"15","08":"16","09":"17","10":"18","11":"19","12":"20","13":"21","14":"22","15":"23","16":"24","17":"00","18":"01","19":"02","20":"03","21":"04","22":"05","23":"06","24":"07"
Formula=#C# = 09
Substitute="00":"09","01":"10","02":"11","03":"12","04":"13","05":"14","06":"15","07":"16","08":"17","09":"18","10":"19","11":"20","12":"21","13":"22","14":"23","15":"24","16":"00","17":"01","18":"02","19":"03","20":"04","21":"05","22":"06","23":"07","24":"08"
Formula=#C# = 10
Substitute="00":"10","01":"11","02":"12","03":"13","04":"14","05":"15","06":"16","07":"17","08":"18","09":"19","10":"20","11":"21","12":"22","13":"23","14":"24","15":"00","16":"01","17":"02","18":"03","19":"04","20":"05","21":"06","22":"07","23":"08","24":"09"
Formula=#C# = 11
Substitute="00":"11","01":"12","02":"13","03":"14","04":"15","05":"16","06":"17","07":"18","08":"19","09":"20","10":"21","11":"22","12":"23","13":"24","14":"00","15":"01","16":"02","17":"03","18":"04","19":"05","20":"06","21":"07","22":"08","23":"09","24":"10"
Formula=#C# = 12
Substitute="00":"12","01":"13","02":"14","03":"15","04":"16","05":"17","06":"18","07":"19","08":"20","09":"21","10":"22","11":"23","12":"24","13":"00","14":"01","15":"02","16":"03","17":"04","18":"05","19":"06","20":"07","21":"08","22":"09","23":"10","24":"11"
Formula=#C# = 13
Substitute="00":"13","01":"14","02":"15","03":"16","04":"17","05":"18","06":"19","07":"20","08":"21","09":"22","10":"23","11":"14","12":"00","13":"01","14":"02","15":"03","16":"04","17":"05","18":"06","19":"07","20":"08","21":"09","22":"10","23":"11","24":"12"
Formula=#C# = 14
Substitute="00":"14","01":"15","02":"16","03":"17","04":"18","05":"19","06":"20","07":"21","08":"22","09":"23","10":"24","11":"00","12":"01","13":"02","14":"03","15":"04","16":"05","17":"06","18":"07","19":"08","20":"09","21":"10","22":"11","23":"12","24":"13"
Formula=#C# = 15
Substitute="00":"15","01":"16","02":"17","03":"18","04":"19","05":"20","06":"21","07":"22","08":"23","09":"24","10":"00","11":"01","12":"02","13":"03","14":"04","15":"05","16":"06","17":"07","18":"08","19":"09","20":"10","21":"11","22":"12","23":"13","24":"14"
Formula=#C# = 16
Substitute="00":"16","01":"17","02":"18","03":"19","04":"20","05":"21","06":"22","07":"23","08":"24","09":"00","10":"01","11":"02","12":"03","13":"04","14":"05","15":"06","16":"07","17":"08","18":"09","19":"10","20":"11","21":"12","22":"13","23":"14","24":"15"
Formula=#C# = 17
Substitute="00":"17","01":"18","02":"19","03":"20","04":"21","05":"22","06":"23","07":"24","08":"00","09":"01","10":"02","11":"03","12":"04","13":"05","14":"06","15":"07","16":"08","17":"09","18":"10","19":"11","20":"12","21":"13","22":"14","23":"15","24":"16"
Formula=#C# = 18
Substitute="00":"18","01":"19","02":"20","03":"21","04":"22","05":"23","06":"24","07":"00","08":"01","09":"02","10":"03","11":"04","12":"05","13":"06","14":"07","15":"08","16":"09","17":"10","18":"11","19":"12","20":"13","21":"14","22":"15","23":"16","24":"17"
Formula=#C# = 19
Substitute="00":"19","01":"20","02":"21","03":"22","04":"23","05":"24","06":"00","07":"01","08":"02","09":"03","10":"04","11":"05","12":"06","13":"07","14":"08","15":"09","16":"10","17":"11","18":"12","19":"13","20":"14","21":"15","22":"16","23":"17","24":"18"
Formula=#C# = 20
Substitute="00":"20","01":"21","02":"22","03":"23","04":"24","05":"00","06":"01","07":"02","08":"03","09":"04","10":"05","11":"06","12":"07","13":"08","14":"09","15":"10","16":"11","17":"12","18":"13","19":"14","20":"15","21":"16","22":"17","23":"18","24":"19"
Formula=#C# = 21
Substitute="00":"21","01":"22","02":"23","03":"24","04":"00","05":"01","06":"02","07":"03","08":"04","09":"05","10":"06","11":"07","12":"08","13":"09","14":"10","15":"11","16":"12","17":"13","18":"14","19":"15","20":"16","21":"17","22":"18","23":"19","24":"20"
Formula=#C# = 22
Substitute="00":"22","01":"23","02":"24","03":"00","04":"01","05":"02","06":"03","07":"04","08":"05","09":"06","10":"07","11":"08","12":"09","13":"10","14":"11","15":"12","16":"13","17":"14","18":"15","19":"16","20":"17","21":"18","22":"19","23":"20","24":"21"
Formula=#C# = 23
Substitute="00":"23","01":"24","02":"00","03":"01","04":"02","05":"03","06":"04","07":"05","08":"06","09":"07","10":"08","11":"09","12":"10","13":"11","14":"12","15":"13","16":"14","17":"15","18":"16","19":"17","20":"18","21":"19","22":"20","23":"21","24":"22"
Formula=#C# = 24
Substitute="00":"24","01":"00","02":"01","03":"02","04":"03","05":"04","06":"05","07":"06","08":"07","09":"08","10":"09","11":"10","12":"11","13":"12","14":"13","15":"14","16":"15","17":"16","18":"17","19":"18","20":"19","21":"20","22":"21","23":"22","24":"23"