Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Software & Software Development > Front Ends > Road Runner


Reply
 
Share Thread Tools Display Modes
Old 07-19-2008, 12:13 AM   #1
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
Laptop Battery status?

I searched but could not find.

I would like to have a slider or custom indicator that shows the laptop's battery status; charging, charged, what percent, etc.

Why? Well, I am installing the laptop in the car, and there will be times when I want to use it after I shut off the engine, and want to have some kind of indicator to show how much time I have left before it goes dead. Right now, I have to minimize RR, then highlight the icon in the tray, not easy to do without a mouse.

Any help would be appreciated.
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Advertisement
 
Advertisement
Sponsored links

Old 07-19-2008, 12:17 AM   #2
Constant Bitrate
 
slvrsol's Avatar
 
Join Date: Mar 2007
Posts: 148
slvrsol is an unknown quantity at this point
There is a plugin that uses labels out there somewhere.
slvrsol is offline   Reply With Quote
Old 07-19-2008, 12:23 AM   #3
The Last Good Gremlin
 
GizmoQ's Avatar
 
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
GizmoQ has a spectacular aura aboutGizmoQ has a spectacular aura about
Read this thread
http://www.mp3car.com/vbulletin/rr-p...light=powermon
__________________
HARDWARE: Fujitsu Stylistic ST5031w/WiFi and dock, internal MP3Car 80G HD,, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, Silabs FM, WinTV USB, XM Commander w/Timetrax USB, Delorme GPS, Saitek X-52 joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
GizmoQ is offline   Reply With Quote
Old 07-19-2008, 12:30 AM   #4
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
thanks, that did not come up when I searched...
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Old 07-19-2008, 12:32 AM   #5
The Last Good Gremlin
 
GizmoQ's Avatar
 
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
GizmoQ has a spectacular aura aboutGizmoQ has a spectacular aura about
Np
__________________
HARDWARE: Fujitsu Stylistic ST5031w/WiFi and dock, internal MP3Car 80G HD,, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, Silabs FM, WinTV USB, XM Commander w/Timetrax USB, Delorme GPS, Saitek X-52 joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
GizmoQ is offline   Reply With Quote
Old 07-19-2008, 01:13 PM   #6
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
Ok, I got that to work, but I'm having trouble making a slider for it.

I have the slider defined as such:

Code:
/, Y, Back Slider file path Y01,"battery\slider_*.gif" /, S, x, y, w, h, x1, y1, w1, h1, O, Style, Pointer file path, h2, Code;SLIDERCODES, Tooltip S01,5,460,30,14,-250,0,30,14,H,01," ",14,"$BATT$", .



Code:
"ONSKINSTART","StrRepl;BATTPERCENT;%;;BATTERY||EVAL;BATT;$BATTERY$*656",menu.skin .

And I have 21 images named "slider_*.gif" (0-20) in a folder called "battery" in my skin's folder.
The first time I load the skin, the slider is there and works. But if I send the command "RELOADSKIN" the slider dissappears.

What am I missing?
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Old 07-19-2008, 01:30 PM   #7
The Curator
 
Blue ZX3's Avatar
 
Join Date: Aug 2004
Location: Chicago area,IL
Posts: 3,527
Blue ZX3 will become famous soon enoughBlue ZX3 will become famous soon enough
to me and given info, could be a bug in the plugin?
__________________
RideRunner...The #1 FE, PERIOD.

RR Media >>HERE <<

RRExtended Plugin
Updated RR Config (Current Ver 1.0.2.0)
Old RR Versions
Complete CFX PSD Set
RRSkinEditor v.76c
DFX Btn Editor
Blue ZX3 is offline   Reply With Quote
Old 07-19-2008, 01:32 PM   #8
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
In which plugin?

RRStrings or Powermon?

Because the Label "BATTPERCENT" doesn't have any problems after reload. I would assume that if it were the powermon plugin, that label would go away as well, but it doesn't.
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 07-19-2008, 02:18 PM   #9
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
Let me see if I understand the way these plugins work;

Powermon:
Reads data from the laptop's "Power meter" interprets the data and creates four labels -
BATTSTATE - Label returned as text, one of two words (Charging or Discharging)
POWERSRC - Label returned as text, one of two words (Battery/External)
BATTLEVEL - Label returned as text, one of four words (High/Low/Critical/Charging)
BATTPERCENT - Label returned as a number, with the text "%" appended (xx%)

RRStrings, specifically StrRepl:
When the command is issued, it takes the command, and replaces one string of characters with another, and creates a new variable. So "StrRepl;BATTPERCENT;%;;BATTERY" will take the label "battpercent" and replace "%" with "" and make a new variable called "BATTERY" which is referenced as "$BATTERY$".

Now where I am confused is when are these codes valid?

On skin start (with the X code) but when do they expire? Reload? Exit?

This compared to the labels and codes that are hard coded in RR (TIME, for example) or codes in the exectbl.ini that don't expire or change with the status of RR.

Basically, I want to be able to show a 21 step slider AND a label that represent what the % charge of the laptop's battery is. I want this to not be affected by changing the text color or background, or other things that require RR to be reloaded.
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Old 07-19-2008, 02:24 PM   #10
The Curator
 
Blue ZX3's Avatar
 
Join Date: Aug 2004
Location: Chicago area,IL
Posts: 3,527
Blue ZX3 will become famous soon enoughBlue ZX3 will become famous soon enough
First I would check the values of both the labels and both of your vars after skin reload and see what the value are to see where exactly the error/prob is at.
__________________
RideRunner...The #1 FE, PERIOD.

RR Media >>HERE <<

RRExtended Plugin
Updated RR Config (Current Ver 1.0.2.0)
Old RR Versions
Complete CFX PSD Set
RRSkinEditor v.76c
DFX Btn Editor
Blue ZX3 is offline   Reply With Quote
Old 07-19-2008, 02:25 PM   #11
The Curator
 
Blue ZX3's Avatar
 
Join Date: Aug 2004
Location: Chicago area,IL
Posts: 3,527
Blue ZX3 will become famous soon enoughBlue ZX3 will become famous soon enough
I would highly req using the SkinTool if your not aready using it for doing said checkin easly.
__________________
RideRunner...The #1 FE, PERIOD.

RR Media >>HERE <<

RRExtended Plugin
Updated RR Config (Current Ver 1.0.2.0)
Old RR Versions
Complete CFX PSD Set
RRSkinEditor v.76c
DFX Btn Editor
Blue ZX3 is offline   Reply With Quote
Old 07-19-2008, 02:49 PM   #12
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
Ok, it turned out an indicator was covering the slider. So on reload, the indicator became the top most, and hid the slider. I moved it, now it works just fine.

__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Old 07-19-2008, 08:31 PM   #13
The Last Good Gremlin
 
GizmoQ's Avatar
 
Join Date: Nov 2004
Location: St Louis
Posts: 1,930
GizmoQ has a spectacular aura aboutGizmoQ has a spectacular aura about
Thanks Monkeyracer, now I gotta go and change my main menus to add battery sliders.

Learn something new everyday.
__________________
HARDWARE: Fujitsu Stylistic ST5031w/WiFi and dock, internal MP3Car 80G HD,, external 1TB HD, Sierra Wireless Aircard 550, DVD-RW, Silabs FM, WinTV USB, XM Commander w/Timetrax USB, Delorme GPS, Saitek X-52 joystick, BluSoleil Bluetooth, TPMS, FB, Elm327
GizmoQ is offline   Reply With Quote
Old 07-19-2008, 11:01 PM   #14
Wants to make it harder
 
monkeyracer's Avatar
 
Join Date: May 2007
Location: Lakehood, CO
Posts: 1,414
monkeyracer is an unknown quantity at this point
I figured something familiar to my current experience would be ideal. I'm used to seeing the little battery icon and when it's full, it's full, when it's empty, it's easy to tell.

I'll probably redesign my slider in the future, but I just stole the images from the ipod 5.5G firmware 1.2 since there was already 21 images.

Here's a pic of it working:



Bottom left corner...
__________________
2007 Chrysler PT Cruiser TE
Car PC Progress:
Planning.......[---------X-] 95%
Parts...........[---------X-] 90%
Fabrication...[---------X-] 90%
RR Skin........[---------X-] 95%
View my
Worklog
Road Runner Skins
Website
Favorite thread EVER!
monkeyracer is offline   Reply With Quote
Old 07-20-2008, 05:10 PM   #15
Low Bitrate
 
festy's Avatar
 
Join Date: Jun 2006
Location: Sydney, OZ
Posts: 108
festy is on a distinguished road
Powermon already supports a slider for battery level, but it's been so long since I looked at that plugin, I'm not sure whether I published the version has that code in it or not.
I better check...
festy is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Laptop w/dead battery goldiemike Newbie 1 08-30-2007 06:32 AM
i have a laptop with a dead battery can i run it from the battery joshcxcb Power Supplies 13 07-30-2006 07:09 PM
I got a idea - Use a 19.2 volt drill motor battery to power a laptop will1384 Off Topic 6 01-11-2006 08:18 PM
MPJA - MECI ASTEC DC-DC Converter Luc General Hardware Discussion 39 11-22-2004 10:31 PM
Laptop won't run on battery MoFo General Hardware Discussion 22 08-02-2004 12:34 AM



All times are GMT -5. The time now is 08:42 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.0
Copyright © 1999 - 2008 Mp3Car.com Inc.
"VaultWiki" powered by VaultWiki v2.5.2.
Copyright © 2008 - 2009, Cracked Egg Studios.Ad Management by RedTyger
Message Board Statistics