XWidgetSoft Forum
https://www.bbs.xwidget.com/

Show warning message when RAM value is more than... x HOW?
https://www.bbs.xwidget.com/viewtopic.php?f=7&t=2917
Page 1 of 1

Author:  Armando [ April 10th, 2013, 7:44 am ]
Post subject:  Show warning message when RAM value is more than... x HOW?

Dear friends of this great software, how can I show a warning image when RAM value is more than... x ?
There is some script?
Thanks!

Author:  kenneth112 [ April 28th, 2013, 6:49 pm ]
Post subject:  Re: Show warning message when RAM value is more than... x

ramcore function OnUpdate
Code:
function ramcore1OnUpdate(Sender)
{
    var ramvalue = parseInt(ramcore1.get("%PhysPercent"));
    if(ramvalue>=80)//change this amount to control the warning value 
    {
        //do something or make some sign when RAM over 80%
     }
     else
     {
         //do somethg when RAM less than 80%
      }
}

Attachment:
ramwarning.XWidgetPkg [6.34 KiB]
Downloaded 314 times

Author:  Armando [ April 29th, 2013, 6:25 am ]
Post subject:  Re: Show warning message when RAM value is more than... x

Kenneth, you are great!!! thanks so much, it's very useful to do more useful our widgets!

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/