TIP: Click on subject to list as thread! ANSI
echo: telix
to: ISAAC GROVER
from: MARK HARRISON
date: 1997-03-23 15:12:00
subject: Remote Script Initializat

(( QUOTING = From: Isaac Grover  To: All ))
 IG> Summary:  I want the script to call another script (the file
 IG> transfer script) after 8 incoming rings (a pre-determined number)
 IG> and a five-second delay (gives me time to hang up).
 IG> So would this work?
Hello Isaac,
There are a few things that you did not think about. The chances
of someoeone calling your house and letting it ring 8 times is
very possible. Or how about 2 people calling and letting it ring
4 times each? ;)  What I would suggest is have it trigger on a
single ring. That is one and only one ring in a ten second
period. The following is off the top of my head as one way to do
this. This script will continue to run forever until you hit ESC
and abort it. It will trigger each and every time it gets a
single ring as described above. For your mailruns I would have
linked scripts for each BBS (written by RECORD) that you want to
call that do each BBSs mailrun. Have your trigger script then run
DIALLOOP that I will put in the next message to you.
////////////////////////////////////////////////////////////////
// RING_TGR.SLT    RingTrigger v1.0    MPH SoftWare   3/23/97
// Mark Harrison   MPHsoft@aol.com     http://kom.net/~mphsoft
main()
{
  int cnt, t1, tmark;
  t1 = track ("RING",0);
  while(1)
    {
     while(1)
      {
       terminal();
       if(track_hit(t1))
         {
          tmark = timer_start(100);
          ++cnt;
         }
       if(cnt > 1)               //Rings more than once in 10 secs.
         {
          cnt = 0;
          timer_free(tmark);
          delay_scr(100);
          break;
         }
       if(cnt == 1 && time_up(tmark))  //Rings ONLY once in 10 secs,
         {
          // status_wind("Script is now launched..", 50);
          call("DIALLOOP");
          cnt = 0;
          timer_free(tmark);
          break;
         }
      }
    }
  }
////////////////////////////////////////////////////////////////
Mark Harrison   | MPHsoft@aol.com       | http://kom.net/~mphsoft
MPH Software    | BBS\FAX: 618-539-6254 | RECORD21 - PICKUP14 - RFW10
--- GoldED 3.00.Alpha4+
---------------
* Origin: > Custom Communication Automation (1:2250/23)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.