Hi:
I just got my 3310 LCD to work, but I'm having some problems with one of the plugins. Whenever I try to monitor my connection upload/download speeds, several things happen:
1) I get stuck at my netstat screen. I have coded it so that after 5 seconds goes back to the winamp2 screen. However, It does not.
2) My computer gets frozen for alternate 2 second periods. My Task Monitor says it's consuming 99% of CPU time, which it shouldn't.
However, if I only try just my winamp2 screen, works fine. Any hints?
Here's the code:
screen.xml
Code:
<screens>
<screenfile>winamp2\winamp2.xml</screenfile>
<screenfile>netstat\netstat.xml</screenfile>
</screens>
netstat.xml
Code:
<screen>
<name>Netstat</name>
<action>
<id>Core.ChangeScreen</id>
<parameter>Winamp2</parameter>
<delay>5000</delay>
</action>
<item type="image" x="0" y="0">
<imagebitmap>screens\Netstat\images\bg_netstat.bmp</imagebitmap>
<refresh>1000</refresh>
</item>
<item type="text" x="0" y="4">
<scrolltype>none</scrolltype>
<textpos>left</textpos>
<fieldsize>5</fieldsize>
<textdata>Up:</textdata>
<refresh>500</refresh>
</item>
<item type="plugintext" x="5" y="4">
<scrolltype>none</scrolltype>
<textpos>right</textpos>
<fieldsize>3</fieldsize>
<varid>NetStats.UploadSpeed1</varid>
<refresh>500</refresh>
</item>
<item type="text" x="10" y="4">
<scrolltype>none</scrolltype>
<textpos>right</textpos>
<fieldsize>4</fieldsize>
<textdata>kB/s</textdata>
<refresh>500</refresh>
</item>
<item type="text" x="0" y="5">
<scrolltype>none</scrolltype>
<textpos>left</textpos>
<fieldsize>5</fieldsize>
<textdata>Down:</textdata>
<refresh>500</refresh>
</item>
<item type="plugintext" x="5" y="5">
<scrolltype>none</scrolltype>
<textpos>right</textpos>
<fieldsize>3</fieldsize>
<varid>NetStats.DownloadSpeed1</varid>
<refresh>500</refresh>
</item>
<item type="text" x="10" y="5">
<scrolltype>none</scrolltype>
<textpos>right</textpos>
<fieldsize>4</fieldsize>
<textdata>kB/s</textdata>
<refresh>500</refresh>
</item>
</screen>
winamp2.xml
Code:
<screen>
<name>Winamp2</name>
<requireflag>Winamp2.Running</requireflag>
<action>
<id>Core.ChangeScreen</id>
<parameter>Netstat</parameter>
<delay>5000</delay>
</action>
<item type="image" x="0" y="0">
<imagebitmap>screens\Winamp2\images\bg_winamp.bmp</imagebitmap>
<refresh>1000</refresh>
</item>
<item type="pluginimage" x="10" y="0">
<imageid>Winamp2.SpectrumBar</imageid>
<refresh>100</refresh>
</item>
<item type="plugintext" x="1" y="4">
<scrolltype>left</scrolltype>
<textpos>left</textpos>
<fieldsize>13</fieldsize>
<varid>Winamp2.Title</varid>
<refresh>500</refresh>
</item>
<item type="plugintext" x="1" y="5">
<scrolltype>none</scrolltype>
<textpos>left</textpos>
<fieldsize>13</fieldsize>
<varid>Winamp2.Bitrate</varid>
<refresh>500</refresh>
</item>
</screen>
Thanks in advance!