home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3336
- ClientLeft = 4800
- ClientTop = 2952
- ClientWidth = 3768
- Height = 3660
- Left = 4752
- LinkTopic = "Form1"
- ScaleHeight = 3336
- ScaleWidth = 3768
- Top = 2676
- Width = 3864
- Begin VB.CommandButton cmdHangup
- Caption = "Hang up"
- Height = 492
- Left = 1920
- TabIndex = 2
- Top = 2760
- Width = 1332
- End
- Begin VB.CommandButton cmdDial
- Caption = "Dial"
- Height = 492
- Left = 120
- TabIndex = 1
- Top = 2760
- Width = 1572
- End
- Begin VB.TextBox Text1
- Height = 2652
- Left = -120
- TabIndex = 0
- Top = 0
- Width = 3852
- End
- Begin VB.Timer Timer1
- Interval = 1000
- Left = 3480
- Top = 2880
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Dim objVBTerm As Object
- Private Sub cmdDial_Click()
- ' Dial a number.
- objVBTerm.Dial InputBox("Number to dial: ")
- ' Trap text in the Terminal app.
- ' (retrieved/displayed by Timer event).
- objVBTerm.TrapText = True
- End Sub
- Private Sub cmdHangup_Click()
- objVBTerm.Hangup
- End Sub
- Private Sub Form_Load()
- ' Get the VBTerminal object.
- Set objVBTerm = GetObject("", "VBTerm.Application")
- End Sub
- Private Sub Timer1_Timer()
- Dim strResponse
- ' Get text from the terminal app.
- If objVBTerm.Changed Then
- Text1.TEXT = Text1.TEXT & objVBTerm.TEXT
- End If
- End Sub
-