home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / comm / qns311.zip / Q-LOGOFF.SCR < prev    next >
Text File  |  1991-02-19  |  1KB  |  24 lines

  1. ;┌──────────────────────────────────────────────────────────────────────────┐
  2. ;│ Q-LOGOFF.SCR       Copyright 1988-1991 by Rik Brown                      │
  3. ;│                                                                          │
  4. ;│                    Log off script                                        │
  5. ;└──────────────────────────────────────────────────────────────────────────┘
  6.  
  7.   WHEN                                 ; Clear WHENs
  8.   TIMEOUT 10          BREAK_CONNECTION ; 10 second max wait for command line
  9.   SEND "^M"                            ; Get command prompt
  10.   WAITFOR "ommand?"                    ; Pause script to wait command line
  11.   SEND "^~G^M"                         ; Get command prompt and say good bye
  12.   PAUSE 10000                          ; Give 10 sec chance for normal off
  13.  
  14. BREAK_CONNECTION:
  15.   HANGUP                               ; Insure a complete break
  16.   PAUSE 3000                           ; Pause to not overrun next command
  17.   SEND "^~ATH1M0^M"                    ; Take phone off hook (quiet speaker)
  18.   TURNOFF CAPTURE                      ; Close capture
  19.   TURNOFF LOG                          ; Close log
  20.  
  21. SCRIPT Q-FINISH.SCR
  22.  
  23. RETURN
  24.