topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday December 15, 2024, 7:11 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Running an app if bandwidth use drops  (Read 5406 times)

nosh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,441
    • View Profile
    • Donate to Member
Running an app if bandwidth use drops
« on: November 17, 2007, 12:30 PM »
If I leave my download manager on while using Firefox, the browsing is not that smooth. I generally stop the bandwidth guzzlers when I browse but then I forget to start them if I walk off the PC or start working on offline apps. I've been trying to figure out how to start a bandwidth guzzling app automatically when my bandwidth stays below a specific limit for a certain amount of time. I've managed to do this in a roundabout way using DShutdown (a powerful app with a messy interface) and an app built on my own system in conjunction. Dshutdown does exactly what I want but it's built with powering off the system as its primary purpose, so it disables itself once it starts the download manager. My app helps to overcome this limitation by re-enabling Dshutdown.

I stayed away from bandwidth throttling tools assuming they would stop my download manager going full speed when I'm not using the net. I was wondering if I did a poor job of reinventing the wheel here. Is there a cleaner/more straightforward way to achieve this?

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: Running an app if bandwidth use drops
« Reply #1 on: November 17, 2007, 03:03 PM »
Would NetLimiter with the "Grants" system do the job?

Grant is a brand-new feature in NetLimiter 2. It could seem similar to limits, but it works differently. When you set grant for application or connection, then it means that you grant specified bandwidth for it. If other application/connections take too much bandwidth, then it is taken from them and is given to application/connection with granted bandwidth.

Hmmm, there MUST be some other alternative to NetLimiter though, but I'm not aware of any other...

nosh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,441
    • View Profile
    • Donate to Member
Re: Running an app if bandwidth use drops
« Reply #2 on: November 17, 2007, 03:22 PM »
From the face of it, I don't think it'd work in my case. Firefox is always running on my system, so I'm guessing, if I grant X kbps to Firefox that's always going to be reserved for Firefox, even when I'm not using it. Or is a grant only implemented when the application that's been granted the bandwidth demands it? I suppose it depends on how intelligently NetLimiter implements these things. When it comes to bandwidth throttling apps though I have a bad gut feeling that there will be some bandwidth lost from the total when I start capping apps.

Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: Running an app if bandwidth use drops
« Reply #3 on: November 17, 2007, 03:33 PM »
Check out the features. I think it's possible to create a rule that says: "If Firefox does not use x amount of banwidth for y amount time, grant bandwidth to z application".

But on second though, it would be better for you a application that worked like this: "If the computer is left unattended for x time, start apps y and z" and combine that with NetLimiter so the downloading apps could get some juice while Firefox is not using any bandwidth, or throttle them when Firefox is loading a page. Or ditch NetLimiter and kill apps yourself when you return to the computer ;D

I'm sure that an application capable of starting apps by itself complete with an internal timer can be done in AutoHotkey. A new Coding Snack! :)
« Last Edit: November 17, 2007, 03:37 PM by Lashiec »

nosh

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 1,441
    • View Profile
    • Donate to Member
Re: Running an app if bandwidth use drops
« Reply #4 on: November 17, 2007, 04:15 PM »
Thanks for the input, Lashiec.

This is getting complicated.  ;D

"If Firefox does not use x amount of banwidth for y amount time, grant bandwidth to z application".
OK, but what if I'm using another app, say Opera instead of Firefox? What if I've started a bittorrent download and don't need bandwidth for the download manager? Netlimiter seems to set hard and fast rules and looks like a problem waiting to happen in the long run. Unless an elegant solution comes along I'm going to have to stay with DShutdown + home made app.


Lashiec

  • Member
  • Joined in 2006
  • **
  • Posts: 2,374
    • View Profile
    • Donate to Member
Re: Running an app if bandwidth use drops
« Reply #5 on: November 17, 2007, 06:51 PM »
I think the best thing you can do is download a trial copy, and see if you can do what you want. This last question demands some complex rules I think, and the only way to check how it works and if it suits you is checking it live.

Or wait for someone to come up with a magic solution ;D