XWidgetSoft Forum https://bbs.xwidget.com/ |
|
${LifeTime} Seems to not work https://bbs.xwidget.com/viewtopic.php?f=3&t=3875 |
Page 1 of 1 |
Author: | Armando [ December 9th, 2013, 11:41 am ] |
Post subject: | ${LifeTime} Seems to not work |
I could not run the remaining battery time ( ${LifeTime} )... Any idea why this happens? Thanks! |
Author: | hamid [ December 10th, 2013, 9:15 am ] |
Post subject: | Re: ${LifeTime} Seems to not work |
i don't have battery to test it, but i think you could use "%LifeTime" instead when i use "${LifeTime}" i don't get anything but when i use "%LifeTime" i will get 00:00 as i said i don't have battery to be sure maybe it doesn't converted to new format yet or there is a problem with new formatting |
Author: | Armando [ December 11th, 2013, 6:28 am ] |
Post subject: | Re: ${LifeTime} Seems to not work |
Thanks Hamid!! Its works!!!!! |
Author: | Armando [ December 17th, 2013, 5:49 am ] |
Post subject: | Re: ${LifeTime} Seems to not work |
When XWidget restarts, %LifeTime change to ${LifeTime} But seems it's work anyway. It's a bit slow to change... but... works. Unfortunately: 1) shows the minutes not divided in hours (eg.: 157 minutes) ... (do not know how you become with code to hours and minutes ...). 2) when the power cord is plugged in (and the battery is charging) does not show the minutes of charging (shows 00:00) Tony: batterycore should improve! thanks! |
Author: | hamid [ December 20th, 2013, 8:37 am ] |
Post subject: | Re: ${LifeTime} Seems to not work |
Author: | Armando [ December 20th, 2013, 12:09 pm ] |
Post subject: | Re: ${LifeTime} Seems to not work |
Great!!! it's work fine, BUT numbers appear only a second and then disappear. I can only see the numbers again reloading the widget. I finally use this code: mp=parseInt(batterycore1.get("%LifeTime"),10) h1=parseInt(mp/60,10) m1=parseInt(mp%60,10) text1.text=h1+":"+m1 I put in the opening lines of code. (lines 1,2,3,4 of the script code area). should have put it somewhere else? (for example in the part of "text1 on change")? THANKS again! |
Author: | hamid [ December 20th, 2013, 4:04 pm ] |
Post subject: | Re: ${LifeTime} Seems to not work |
Author: | Armando [ December 20th, 2013, 7:34 pm ] |
Post subject: | Re: ${LifeTime} Seems to not work |
Hamid... GREAT!!! now it's working perfect!!! Thanks for all your help and teaching! I'm sure this will help others! |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |