XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 7th, 2025, 11:21 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: BUG i guess..
PostPosted: October 31st, 2012, 6:07 am 
Offline
User avatar

Joined: October 31st, 2012, 5:53 am
Posts: 8
Location: Philippines
I think the battery core thing has some bugs.. well I'm new here and I've been creating some widgets (which I don't upload) for personal use.. I noticed that somewhere in the battery core class is bugged or so. I tried to use it to create a battery status widget where you can see the percentage and the status (whether it is charging, not charging or not present), the percentage works but the status part partially don't. It doesn't seem to update whenever I plug or unplug my pc. To make it simple, it doesn't show whether the pc is charging (plugged) or not. I downloaded some other battery widgets with the same feature but its all the same. Is it bug or something else? :|


Top
 Profile  
 
 Post subject: Re: BUG i guess..
PostPosted: October 31st, 2012, 7:44 am 
Offline
User avatar

Joined: June 10th, 2012, 5:57 am
Posts: 313
I don't have this problem.
I used a text control to show the status.(I binded it to a battery core and add the "%Status" tag)
  • No battery and plug, it shows "uknown"
  • Battery and plug, it shows "online"
  • Battery and unplug, it shows "offline"
When I plug or unplug my laptop, the status changes.


Attachments:
battery.rar [3.57 KiB]
Downloaded 288 times
Top
 Profile  
 
 Post subject: Re: BUG i guess..
PostPosted: October 31st, 2012, 9:17 am 
Offline
User avatar

Joined: October 31st, 2012, 5:53 am
Posts: 8
Location: Philippines
I know how it is done, I've created something like this before.. It works perfectly before but not every time recently since the time I updated the xwidget.. I managed to make it work now.. I changed some if-else statements and it worked fine.. thanks!

_________________
It's not addiction, it's dedication... #Gaming


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 25 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