XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently May 10th, 2025, 11:34 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Net blinking funtion?
PostPosted: June 5th, 2013, 6:06 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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...???? :roll:

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: June 6th, 2013, 3:54 am 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
Same question by Cov:
viewtopic.php?f=8&t=3194

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: June 6th, 2013, 2:46 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
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
}
}


Top
 Profile  
 
PostPosted: June 6th, 2013, 3:22 pm 
Offline
User avatar

Joined: December 5th, 2012, 5:52 pm
Posts: 4887
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! ;)

_________________
...and remember: don't take life too seriously...
My profile on Deviantart: http://jimking.deviantart.com/


Top
 Profile  
 
PostPosted: June 6th, 2013, 3:59 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
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. :)


Top
 Profile  
 
PostPosted: June 7th, 2013, 1:08 am 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
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 :?:


Attachments:
File comment: "glass_(vclouds)_net" with code
glass_(vclouds)_net.XWidgetPkg [88.86 KiB]
Downloaded 336 times
Top
 Profile  
 
PostPosted: June 7th, 2013, 2:53 pm 
Offline
User avatar

Joined: March 22nd, 2013, 3:49 am
Posts: 154
I wonder why the values for transferspeed differ so much: click


Top
 Profile  
 
PostPosted: June 7th, 2013, 3:01 pm 
Offline

Joined: June 18th, 2012, 12:07 am
Posts: 268
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.


Last edited by meme on June 7th, 2013, 4:41 pm, edited 3 times in total.

Top
 Profile  
 
PostPosted: June 7th, 2013, 3:12 pm 
Offline
User avatar

Joined: March 22nd, 2013, 3:49 am
Posts: 154
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
Image


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 38 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group