Hi. I would like to inquire if it is possible to get the number of uptime hours, which actually is already present with xwidget, multiply it with a given number, display it, save it to a text file, then after one hour, multiply uptime hours again (which is already 2), display it, save it to a text file and then repeat the process. For example, when I opened the computer, after one hour, it will tell me that I have 1 uptime hour. Then, it will multiply uptime hour by a number I will give for example 18. Xwidget will display 18. Then after an hour, it will show me I have 2 uptime hours, then it will multiply uptime hours by 18. So I will get 36. And the actions will repeat until I turn off the computer. The next time I turn on the computer, it will show me for example 36, the last number saved in the text file, if it is possible to overwrite the text file all the time so that xwidget will only get one data from text file. I hope you understand my concern. Thank you.
|