XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 10:41 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: April 10th, 2013, 7:44 am 
Offline
User avatar

Joined: June 12th, 2012, 11:05 am
Posts: 257
Location: Barcelona
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!


Top
 Profile  
 
PostPosted: April 28th, 2013, 6:49 pm 
Offline
User avatar

Joined: June 10th, 2012, 6:06 am
Posts: 17
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 315 times

_________________
facebook:http://www.facebook.com/ZhaoKenneth
weibo:http://weibo.com/102030456
twitter:http://twitter.com/colawings
DeviantArt:http://kenneth117.deviantart.com/


Top
 Profile  
 
PostPosted: April 29th, 2013, 6:25 am 
Offline
User avatar

Joined: June 12th, 2012, 11:05 am
Posts: 257
Location: Barcelona
Kenneth, you are great!!! thanks so much, it's very useful to do more useful our widgets!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 16 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group