Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Phone dialing
Message
 
To
24/07/1997 15:47:41
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00041396
Message ID:
00041577
Views:
44
>I tried this but it doesn't work. What am I missing? I have my modem plugged into the wall jack and my phone plugged into my modem. I can dial out using Outlook so I think the setup is correct. One of my modem lights come on when I open the port, but I see no evidence of dialing. I want to be able to talk on the phone once the modem dials. Any ideas?
>
>Thanks
>Elyse
>
>>Hi Elyse!
>>
>>You should do something like:
>>
>>with thisform.olecontrol1
>> .PortOpen=.t.
>> .Output = [atdt555-555-555]
>> .Portopen = .f.
>>endwith
>>
>>
>>Have a happy day
>>Vladimir Shevchenko
>>
>>> Does anyone know how I can use the MSCOMM32.OCX to dial phone numbers?

Elyse, first setup your OLE object with the correct parameters (right click, go to MSCOMM properties) Probably Comm Port is the only important one here.

Second, set up a button or whatever to dial the phone. The strings I have used are for my USRobotics Sportster:
thisform.olecomm1.output = 'AT' + chr(13)
cVal = thisform.olecomm1.input  
** This input should be "OK"
** If not, then the modem didn't respond correctly.
IF !cVal = "OK"
   return .f.
endif

thisform.olecomm1.output = 'atdt4153450152' + chr(13)
cVal = thisform.olecomm1.input
** Again, should return "OK"
if !cVal = "OK"
   return .f.
else
   return .t.
endif
This alerts the modem that it's going to dial, then sends the phone number to dial. Trap the return to check if the modem is responding correctly.

I used this on a button when I was first setting up MSCOMM32 (now it's happily coping with barcodes and other data from hand-held scanners).

Feel free to give me a call or e-mail if I can help further. Phone number is the one used in the test. I spent a fair amount of time answering my modem when I first started working on this :-)

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform