请问如何控制一个外部程序(调用我已经掌握了,就是不知如何控制它)而且让我调用的这个程序隐藏。(100分)

  • 主题发起人 主题发起人 yzy25
  • 开始时间 开始时间
实现的方法篇幅比较长,而且和你的情况有些不同,我是用语音卡作的,你用MODEM,
所以我只能给你一些思路和一些资料。具体问题还要探讨。
一般电话线路用的是DTMF(双音多频码)
DTMF信号实际是由两种音调的声音组合而成:低频和高频。DTMF信号是由两组频率合
成,低频群:697、770、852、941(HZ);高频群:1209、1336、1477、1633(HZ)。每
一个DTMF信号由一个低频和一个高频组成,共产生16种信号。
一个有效的双音频是由声音和间隔组成,声音又包括频率和幅度两个特征值。

你可以检测MODEM的声音是否是那一种即可。

说错了,上面是检测用户按键的方法,不能检测出线路信号音,MODEM的API好象是可
以检测到线路信号音的,请查阅相关资料。
 
这个函数不知道有没有用 RasConnectionNotification 。注意要在 uses 中加 WinInet 。
 
给你一些TAPI的单元,另外,D6的第二张光盘上也有相关的单元,
具体使用,请参照MSDN中的相关部分

下面是,torry上面的相关资源
http://www.torry.net/tapi.htm

1.Microsoft Telephony API (TAPI) header file

2.TAPI Support Kit v.3.0 FWS 41 Kb 19.02.97
By Alexander Staubo. Translated Telephony API (TAPI) 2.0 header files for Delphi. Now includes support for developing custom TAPI service providers. For more information about TAPI, check Microsoft Developer Network.

可参照的代码
3.TapiDial v.2.0 FWS 51 Kb 16.11.98
By Mihaela Mihaljevic Jakic. TAPI based component for dialing telephone numbers. Now supports TAPI 2.0.

Fully functional
Source: Included
Download: D3

4.TTAPILine v.1.4 FWS 238 Kb 31.08.98
By Juri Kornienko. TTAPILine based on Windows Telephone API (TAPI) service. Transfer data between two computers using modems installed in Windows, OnNewData event, direct access to your modems under Windows, dial and accept calls. Terminal emulator example is included.

Fully functional
Source: Included
Exe-demo included
Download: D2 D3


 
在VB中使用TAPI
http://www.vbip.com/miscellaneous/tapi-01.asp
 
TAPI Sample Programs for Telephony
http://www.exceletel.com/products/TeleTools/SamplePrograms/

http://public.planetmirror.com/pub/delphi/newl/d30/f038_001.htm
http://public.planetmirror.com/pub/delphi/ftp/d30free/bumerang_lite_v3.zip


TurboPower Async Professional(Now Open Source)

Async Professional is a comprehensive communications toolkit for Borland Delphi, C++Builder, & ActiveX environments. It provides direct access to serial ports, TAPI, and the Microsoft Speech API. It supports faxing, terminal emulation, VOIP, & more.
This release includes source code, packages, the latest PDF manual, & help files
released under Mozilla Public License 1.1 (MPL 1.1)


http://public.planetmirror.com/pub/delphi/ftp/d20free/tapidial.zip
[ tapidial.zip ] [ 18,899 bytes ] [ Freeware ] [ With Source ]
[ D2 | D3 ]
TTapiDial is simple dialing component, which implements dialing through TAPI interface, instead of writing to COM ports directly.
--------------------------------------------------------------------------------
Added: 12-10-1997 | Version: 1.0 | Downloads: 6321/6321/13
--------------------------------------------------------------------------------
Author: Mihaela Mihaljevic-Jakic [Homepage] [DSP files]

 
后退
顶部