MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » General Development (no feature request here!)


General Development (no feature request here!) You were able to fix an issue, or improved a feature? Post it here.

Reply
 
Thread Tools Display Modes
Old 2006-11-27, 08:30   #1 (permalink)
Portal Member
 
m.standish's Avatar
 
Join Date: Jul 2006
Location: Wakefield
Age: 27
Posts: 156
Thanks: 1
Thanked 1 Time in 1 Post

Country:

My System

Question Calling an external string? Help needed for newbie

Im trying to call an external string, and not sure how to do it. Ive been editing a few skins in the last 2 weeks and i got vis studio about 2 hours ago so i guess that classes me as a newbie eh!

Specifically Im trying to get cpu temp & load in the basic home screen. from my status plugin.

im getting this from visual c
I think its something like putting a contol, lable as #mediaportal.gui.guistatus.sensortypes

this is where im stuck as in vis studio ive got

MediaPortal.GUI.GUIStatus\
GUIstatus.sensortypes\
Listed in here is temperature,fan,hd

I believe these are the variables i want but i dont know how to format the lable so it calls these.
This is my guess at it and what i think they are there for

<control>
<description>actual sensor</description> --- my description, can be whatever i want??
<type>label</type>
<id>123123123</id> --- a unused number (at least in this page)
<posX>450</posX>
<posY>220</posY>
<label>#mediaportal.gui.guistatus.guistatus.sensor types.hd</label> -- called from mystatus, obviously wrong, im trying to follow the paths as they are in the class window
<font>font14</font>
<align>left</align>
<textcolor>ffffffff</textcolor>
</control>

Yeah i know, Im just guessing here but i dont really know where to start. once i get the theory round these im flying so if someone can help id really appreciate it!
__________________
Is there anything MP dosent do? Oh Yeah, Can someone write a Make Dinner Plugin?
m.standish is offline   Reply With Quote
Old 2006-11-27, 15:45   #2 (permalink)
Portal Member
 
Join Date: Apr 2005
Location: Southeast
Age: 36
Posts: 600
Thanks: 5
Thanked 34 Times in 23 Posts

Country:


Default

Quote:
Originally Posted by m.standish View Post
Im trying to call an external string, and not sure how to do it. Ive been editing a few skins in the last 2 weeks and i got vis studio about 2 hours ago so i guess that classes me as a newbie eh!

Specifically Im trying to get cpu temp & load in the basic home screen. from my status plugin.

im getting this from visual c
I think its something like putting a contol, lable as #mediaportal.gui.guistatus.sensortypes

this is where im stuck as in vis studio ive got

MediaPortal.GUI.GUIStatus\
GUIstatus.sensortypes\
Listed in here is temperature,fan,hd

I believe these are the variables i want but i dont know how to format the lable so it calls these.
This is my guess at it and what i think they are there for

<control>
<description>actual sensor</description> --- my description, can be whatever i want??
<type>label</type>
<id>123123123</id> --- a unused number (at least in this page)
<posX>450</posX>
<posY>220</posY>
<label>#mediaportal.gui.guistatus.guistatus.sensor types.hd</label> -- called from mystatus, obviously wrong, im trying to follow the paths as they are in the class window
<font>font14</font>
<align>left</align>
<textcolor>ffffffff</textcolor>
</control>

Yeah i know, Im just guessing here but i dont really know where to start. once i get the theory round these im flying so if someone can help id really appreciate it!

If I understand want you are wanting correctly I think you will have to check the
My Status plugin.

I think what you are looking for is a "Property" that would be set in the My Status
plugin and in turn be available in the skin.

Setting a property might look something like:
MediaPortal.GUI.Library.GUIPropertyManager.SetProp erty("#statusfanspeed", fanSpeed.ToString());

Note: I have never looked at the My Status plugin.

HTH,
patrick
patrick is offline   Reply With Quote
Reply

Bookmarks

Tags
calling, external, needed, newbie, string

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ASUS WDM TV/FM 7134 is supported River Mead General Support 6 2007-08-27 15:12
Help with TVServer and client rick78 Get Support 8 2006-12-12 18:48
[BUG] Unable to scan TV chanels and radio Bram pre 1.0 RC1 0 2006-11-05 13:45
Avermedia A169 Dual tuner - not supported!!! The Fan General Support 5 2005-12-25 10:52
RC2 causes laptop to hibernate every 5 mins ms2005 MediaPortal 1 Talk 6 2005-12-19 14:26


All times are GMT +1. The time now is 23:12.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress