Dialing a phone number from vb app with out having

brmallesh
09-06-2000, 08:42 PM
Hello,
I am working on a project for my semister. I have been assigned the task of building an object that would take a phone number from a textbox and dial the number.....the tricky part is that the default windows phone dialer should not pop up....I have tried with tapiRequestMakeCall but then the default phone dialer is popping up.....I have searched the whole net but could not find a suitable sollution.....would you be able to help me out?

I would appreciate it very much if you could advice me on how to write an object that would take as its parameter a phone from number and dial that number....with out calling the default phone dialer.....

Thank you in advance...

Regards,
MB

BillSoo
09-07-2000, 01:37 PM
If that's all you have to do, use the mscomm control instead and send the codes directly to the modem.

It's been awhile since I've done this but I think it's something like:

mscomm1.CommPort = 3 'or wherever your modem is
mscomm1.settings = "9600,n,8,1 'or whatever you want
mscomm1.portopen = true 'open the serial port
mscomm1.output = "ATF0" 'send a setup string.
'check your modem manual
wait 1 'this is a function I wrote. It means wait 1 second
mscomm1.output = "ATDT555-5555" 'dials the number

There are other factors of course, such as checking for success (the modem returns result codes. Check your manual), closing the port, etc. but this should get you started.



"I have a plan so cunning you could put a tail on it and call it a weasel!" - Edmund Blackadder

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum