[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum • View topic - Net blinking funtion?

XWidgetSoft Forum

XWidget & XLaunchpad , Desktop customization
It is currently April 18th, 2024, 5:10 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 279 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:


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

Joined: June 18th, 2012, 12:07 am
Posts: 268


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


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 51 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:  
cron

Powered by phpBB® Forum Software © phpBB Group