Calling an external string? Help needed for newbie (1 Viewer)

m.standish

Portal Pro
July 9, 2006
174
8
Wakefield
Home Country
United Kingdom United Kingdom
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.sensortypes.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!
 

patrick

Portal Pro
April 20, 2005
608
45
Southeast
Home Country
United States of America United States of America
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.sensortypes.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.SetProperty("#statusfanspeed", fanSpeed.ToString());

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

HTH,
patrick
 

Users who are viewing this thread

Top Bottom