Visual Basic 6 / Modem Dial Script (Anywhere)
Posted by webmaster@craigslist.org on February 13, 2010
Miss the days of Visual Basic 6? Then I've got a little project that might spark your interest.Using the "Player Recorder ActiveX" and "TAPI Modem ActiveX" OCX controls found at http://www.smart-activex.com, I would like a simple dialer application created.
The application should be programmed as a function called DialAndPlay() that receives the following as input:
- a phone number
- the file location to a "greeting" wav file
- the file location to a "message" wav file
1) Dials the phone number passed to it
2) Plays "greeting" WAV file that prompts the other side to press "1" to hear a message
3) If the other side does not press '1' within ~5 seconds, replay the "greeting" message
4) If, after the "greeting" message is played a 2nd time and the other side does not press '1', hangup.
5) If other side presses 1, play the "message" wav file.
6) Hangup
These OCX's provide very solid examples. I have downloaded just the "TAPI Modem ActiveX" one and created a simple app to dial out to a phone number. It literally took minutes. I will be providing that example to you as a starting point (along with it's already bundled examples).
To complete this program you'll need the following:
- Visual Basic 6
- Computer with a voice modem (voice is key)
- OCX trial versions from the URL provided
If you don't have Visual Basic 6, I can provide remote access to a computer that has both a voice modem and Visual Basic 6.
Preference given those those who won't need remote access.
I am aware there are many auto-dialers out there with capability of dialing a number and playing a WAV. This is just one component of an overall application, so please do not send me emails letting me know about other solutions.
http://seattle.craigslist.org/see/cpg/1598821351.html