Jump to content

Dialing through a modem


Recommended Posts

People aren't generally receptive to posts labels "for pros only"

For a simple way:

First play around at the command prompt:

start->run->cmd

echo ATDT 5551212>com2

Where com2 is your modem port

To hang up

echo ATH0 >com2

google 'modem AT commands' to find other parameters to change such as shutting off the speaker, make sure you don't get any modem tones, etc.

#include <Process.au3>
 _RunDos("echo atdt 5551212>com2")
sleep(5000)
 _RunDos("echo ath0>com2")
Link to comment
Share on other sites

People aren't generally receptive to posts labels "for pros only"

For a simple way:

First play around at the command prompt:

start->run->cmd

echo ATDT 5551212>com2

Where com2 is your modem port

To hang up

echo ATH0 >com2

google 'modem AT commands' to find other parameters to change such as shutting off the speaker, make sure you don't get any modem tones, etc.

#include <Process.au3>
 _RunDos("echo atdt 5551212>com2")
sleep(5000)
 _RunDos("echo ath0>com2")
Thanks a lot :)

I thought dialing through a modem is a very hard and complicate thing, because my father wanted to pay someone to do this, and I thought I could do it myself in AutoIt, but I also thought it's something very complicate involving an UDF with hundreds of lines of code and hard to understand functions. Tomorrow he'll bring me a modem so I'll be able to start testing. :P

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...