XWidgetSoft Forum https://www.bbs.xwidget.com/ |
|
Net blinking funtion? https://www.bbs.xwidget.com/viewtopic.php?f=7&t=3193 |
Page 1 of 1 |
Author: | Jimking [ June 5th, 2013, 6:06 pm ] |
Post subject: | Net blinking funtion? |
I'm creating a net widget. I have two kind of arrows with different colours (png files) and I want to use them as one like this: Flash up when "reading", so when is active the download or upload. Is it possible...???? ![]() |
Author: | Jimking [ June 6th, 2013, 3:54 am ] |
Post subject: | Re: Net blinking funtion? |
Same question by Cov: viewtopic.php?f=8&t=3194 |
Author: | meme [ June 6th, 2013, 2:46 pm ] |
Post subject: | Re: Net blinking funtion? |
This seems to work function netmonitorcore1OnUpdate(Sender) { var NetInCheck = netmonitorcore1.get("%NetinSpeed"); if(NetInCheck.charAt(0) == 0) { text4.Text = "False"; // change image color to suit no download data flow } else { text4.Text = "True"; // change image color to suit download data flow is active } var NetOutCheck = netmonitorcore1.get("%NetoutSpeed"); if(NetOutCheck.charAt(0) == 0) { text3.Text = "False"; // change image color to suit no upload data flow } else { text3.Text = "True"; // change image color to suit upload data flow is active } } |
Author: | Jimking [ June 6th, 2013, 3:22 pm ] |
Post subject: | Re: Net blinking funtion? |
Thank you meme, but this code seems to be taken from a specific widget that is different from mine... I wanted to use 2in1 images that will alternate depending of the activity... But thank you anyway! ![]() |
Author: | meme [ June 6th, 2013, 3:59 pm ] |
Post subject: | Re: Net blinking funtion? |
Hi jimking I was aware you wanted to change the image but not sure or its exact location or name. So I wrote this code and thought you would just modify the lines "// change image color" to toggle the images you are using. Happy to assist if you provide a sample. ![]() |
Author: | meme [ June 7th, 2013, 1:08 am ] | ||
Post subject: | Re: Net blinking funtion? | ||
Hi jimking Hope you don't mind, I modified your "glass_(vclouds)_net" widget so the arrows change to yellow when uploads or downloads are active. Not the method you mentioned but the effect is the same, its hides the yellow arrow when no traffic is detected. What do you think ![]()
|
Author: | Cov [ June 7th, 2013, 2:53 pm ] |
Post subject: | Re: Net blinking funtion? |
I wonder why the values for transferspeed differ so much: click |
Author: | meme [ June 7th, 2013, 3:01 pm ] |
Post subject: | Re: Net blinking funtion? |
Hi Cov Quote: I wonder why the values for transferspeed differ so much: Make sure you only have one xwidget running at a time that is monitoring net traffic otherwise the values are not accurate, try each one separately. Also I noticed in this widget the upload and download speed text is not bound to a core, it should be to netmonitorcore1 Maybe if you want to run another widget with out interfering with the values then use netmonitorcore2 in the second widget. |
Author: | Cov [ June 7th, 2013, 3:12 pm ] |
Post subject: | Re: Net blinking funtion? |
Hi meme, I just closed down another widget (Simplicity) for monitoring net traffic and it really made a difference. However, I still had the Chameleon Glass (Windows standard) gadgets open at the same time. In comparison to the windows standard gadgets, the values of the xwidget were very unsteady, flickering up and down. Can there be any settings changed to make the numbers more steady? Thanks ![]() |
Page 1 of 1 | All times are UTC - 8 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |