?
Solved

Hanging up modem after 30 minutes (TSR?)

Posted on 1997-09-13
2
Medium Priority
?
185 Views
Last Modified: 2010-04-04
I have dial-up internet connection and
I would like to know how can I hang up my modem
after I have been online 30 minutes (or 120 minutes or
what ever time I choose).

It would hang up modem when duration in Windows 95
dialer is 00:30:00 and redial immediately after that.
And again hang up after 30 minutes and redial (loop :)
So the program would start after I have connected
(like ICQ does).
 
I guess I need some kind of tsr, but how do I do it?
Give me so advice where to start. I can use Delphi 2 or 3.

BTW Sorry bad english

ToniTOP
0
Comment
Question by:tonitop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Expert Comment

by:joseramos
ID: 1344763
I'm not sure I understood the question, however it appears as
this could be a perfect case for a TTimer that would check the
time elapsed (or Dialer duration) every 30 minutes or so and take some action (Dial again or hangup the modem).
0
 
LVL 3

Accepted Solution

by:
Pegasus100397 earned 400 total points
ID: 1344764
ToniTop,
You do not need a TSR for this activity but rather a small Delphi program to get the list of running tasks (Dial Up Networking in this case) and it's associated window handle.

Once you've determined the handle of the "Dial Up Networking" application, check it's child windows until you come to the label containing the "On-line" time. It's this label your program will monitor.

Once the label (minutes portion) reaches 30 then issue a WM_Click message to the "Disconnect" button on the form to close the connection. Wait about 10 seconds and issue a WM_Click message to the "Connect" button on the form. This will connect and re-set the on-line timer where you program will wait for the minutes to reach "30" again, thereby repeating the cycle. Hope this helps.

Pegasus
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question