Command line auto phone dialler to Windows XP?

I

ITM

I'm looking for a program which I can launch from the command line,
which will dial a phone number and optionally play back a recorded
message. I want to use it in conjunction with a webcam home monitoring
program (Active Webcam).
This program has a number of options for alerting an incident (e.g.
sending an email or sounding an alarm), but no facility to send an
alert by phone. It does however have an option to launch a selected
program. I want to launch a program to dial my mobile phone number and
alert me to the alarm.
Can anyone recommend a method?
TIA for any tips.
 
A

Al Klein

This program has a number of options for alerting an incident (e.g.
sending an email or sounding an alarm), but no facility to send an
alert by phone.

How many people in your house would call your mobile phone and then
not say anything? If you get a call from your home number and no
one's there, can't you sort of assume that it's the program calling?
 
I

ITM

How many people in your house would call your mobile phone and then
not say anything? If you get a call from your home number and no
one's there, can't you sort of assume that it's the program calling?

Yes no problem if the call is silent - just need a dialling mechanism
that I can call from the command line
 
S

Steven Burn

ITM said:
Yes no problem if the call is silent - just need a dialling mechanism
that I can call from the command line

This do you?

http://www.itoolpad.com/products/rcl/

"RCL is a tiny Windows 95/98 command line utility for connecting to your
ISP. The available options include:

- Connect to an existing entry in the phone book
- Connect using a specified phone number
- List available phonebook entries
- Disconnect/Hangup
- Featured at Lockergnome"

Mentions 9x, but should work on 2K/XP aswell .......

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
 
K

K3

ITM said:
Yes no problem if the call is silent - just need a dialling mechanism
that I can call from the command line

Create a batch file with the following commands:

ECHO ATDT 999-9999 > COMx
CHOICE /T:Y, 20
ECHO ATH > COMx

999-9999 is the phone number to dial
x is the COM port that your modem is configured for
the CHOICE command will pause for 20 seconds while the phone rings

This will cause your modem to dial out the specified phone number, let it
ring for 20 seconds (or until someone pick up), and then hang up.

I'm using Win98se. I don't know if WinXP has some sorta "WAIT" command to
use instead of CHOICE.

--
Kendall F. Stratton III
Fort Fairfield, Maine USA
k3@(86_THE_SPAM)maine.rr.com
http://home.maine.rr.com/k3

"Support bacteria -- it's the only culture some people have!"
 
I

ITM

Create a batch file with the following commands:

ECHO ATDT 999-9999 > COMx
CHOICE /T:Y, 20
ECHO ATH > COMx

999-9999 is the phone number to dial
x is the COM port that your modem is configured for
the CHOICE command will pause for 20 seconds while the phone rings

This will cause your modem to dial out the specified phone number, let it
ring for 20 seconds (or until someone pick up), and then hang up.

I'm using Win98se. I don't know if WinXP has some sorta "WAIT" command to
use instead of CHOICE.

Thanks for the suggestion. When I run the bat file it fails at line 1:
"The process cannot access the file because it is being used by
another process."

Presumably it's referring to the COM port? (COM5 in this case). I'm
not aware of any process that's using it, but it seems that the bat
file doesn't have access to it.
Other applications seem to be able to access the modem via COM5,
however.
???
 
I

ITM

This do you?

http://www.itoolpad.com/products/rcl/

"RCL is a tiny Windows 95/98 command line utility for connecting to your
ISP. The available options include:

- Connect to an existing entry in the phone book
- Connect using a specified phone number
- List available phonebook entries
- Disconnect/Hangup
- Featured at Lockergnome"

Mentions 9x, but should work on 2K/XP aswell .......

Thanks. Unfortunately rcl doesn't appear to work under XP. I tried
executing a simple command from a bat file and it didn't have any
effect. No error message, but no effect. The command I tried was:
"rcl -n99999"
 
M

Mark R. Blain

I'm looking for a program which I can launch from the command line,
which will dial a phone number and optionally play back a recorded
message. I want to use it in conjunction with a webcam home monitoring
program (Active Webcam).
This program has a number of options for alerting an incident (e.g.
sending an email or sounding an alarm), but no facility to send an
alert by phone. It does however have an option to launch a selected
program. I want to launch a program to dial my mobile phone number and
alert me to the alarm.
Can anyone recommend a method?
TIA for any tips.

I wrote a crude AutoIt v2 script to load Windows Hyperterminal and
call my numeric pager, but Hyperterminal can't play an audio file so
you wouldn't want to dial a person with it.
 
C

charles

Thanks for the suggestion. When I run the bat file it fails at line 1:
"The process cannot access the file because it is being used by
another process."

Presumably it's referring to the COM port? (COM5 in this case). I'm
not aware of any process that's using it, but it seems that the bat
file doesn't have access to it.
Other applications seem to be able to access the modem via COM5,
however.
???

Try this syntax and different pause -

echo ATDT 999-9999 >COM5:
ping -n 20 127.0.0.1 >NUL
echo ATH >COM5:
 
I

ITM

Try this syntax and different pause -

echo ATDT 999-9999 >COM5:
ping -n 20 127.0.0.1 >NUL
echo ATH >COM5:
When I run this file it fails at exactly the same place (line 1):
"The process cannot access the file because it is being used by
another process."

???
 
I

ITM

I wrote a crude AutoIt v2 script to load Windows Hyperterminal and
call my numeric pager, but Hyperterminal can't play an audio file so
you wouldn't want to dial a person with it.

I haven't used AutoIT before, but would be interested to try it. Do
you still have a copy of your script?
 
I

ITM

Here's a pointer to an AutoIt V3 phone dialer I adapted using COM
http://www.autoitscript.com/forum/index.php?showtopic=19769&hl=

Dale

Thanks for this. I installed Netcomm and AutoIT, but get an "unknown
function name" error on line 2 of your script.

I've never used AutoIT before, so the only mod I made to your script
was to change the phone number and com port number. Is there anything
I may have missed in the setup of either AutoIT or Netcom?
 
D

DaleHohm

The script requires the beta version of AutoIt in order to run (this
has been a very long-running beta though and it is very stable). COM
support and the ObjEvent function that is erroring on you are not
available the current production release. The post does mention this,
but it is a common mistake.

To install the beta, scroll to the bottom of the Downloads page to find
the Betas link and then insall the latest AutoIt beta .exe from the
autoit folder.

I suggest that you use the AutoIt forum for questions as I don't
frequent this one much. It is very active and full of very helpful
folks.

Dale
 
M

Mark R. Blain

I haven't used AutoIT before, but would be interested to try it. Do
you still have a copy of your script?

My ugly little Pager script for AutoIt V2
(http://www.autoitscript.com/AutoIt/) is below. Fix the phone number:
555-1212 is directory assistance!

The example just dials a pager, sends the numeric message "12345" and
hangs up.

Before using it, (turn on your modem and connect the phone wire if
needed,) load HyperTerminal (Start | Programs | Accessories |
Communications), choose the "COM" port your modem is on, save settings
(which creates an *.HT file), then move your new .HT file to the same
folder as the script. In this example, I saved the settings as
"pager.ht". The double-backslashes in file paths are critical.

There are some built-in delays to give stuff time to happen (so be
patient), but no error checking whatsoever: if the thing fails, close
HyperTerminal if needed and stop the script (right-click the big "A"
in your system tray.)

I'm sure it could be improved or rewritten for AutoIt V3 or AutoHotKey
(http://www.autohotkey.com/), but I haven't played with it in a while.

PageMe.aut:
============

run,C:\\Program Files\\Windows NT\\hypertrm.exe pager.ht
sleep,1000
winactivate,Hyper
sleep,7000
send,{ESC}
sleep,4000
send,ATZ{ENTER}
sleep,3000
send,ATDT5551212@12345;{ENTER}
sleep,20000
send,ATH0{ENTER}
sleep,4000
send,!{F4}
sleep,2000
send,{ENTER}
sleep,4000
exit

Note: Win98 or WinME users should be able to use an MS-DOS batch
script like K3 (Kendall) suggested, which is much simpler. Later
versions of Windows don't let batch scripts talk to modems, and using
HyperTerminal is one way to work around that.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top