Sending a FAX with HomeVision
OverviewHomeVision has a variety of commands to support sending a FAX:
You should review the HomeVision documentation for these commands so you understand them thoroughly before proceeding. With these commands, the controller can perform just about any action you can with the keyboard. There are two different ways to use these commands to send a FAX:
No matter which approach you choose, you will need to determine the correct sequence of commands needed to send the FAX. The required commands (or keystrokes) will vary greatly depending on your FAX software and how your computer is configured. The best way to determine them is by sending a text FAX with your software and making a record of all the keystrokes required. Here are some tips:
What to FAXThere are two different ways to send information via FAX:
ExamplesThese examples assume you leave your FAX software running all the time, which is our recommended method. However, if you don't, you can use a command such as this to start it: Run program "C:\programs\FaxTalk\FaxTalk.exe"
Example 1This example shows how to FAX a file using the QuickLink software supplied with some U.S. Robotics modems. The controller sends commands to the QuickLink program to FAX a file named "Alarm.txt", which already exists on the computer. Step 1 - Activate the FAX software windowYou need to activate the program window so that subsequent keystrokes are sent to it. Here's the command: Activate window "QuickLink" Step 2 - Send keystrokesNow you send all the keystrokes needed to send the FAX. The notes at the end of each line explain what each command does. Send keys "%+S" (selects New FAX from menu)
Send keys "c:\Alarm.txt{ENTER}{ENTER}" (specifies file name to FAX)
Send keys "5551234" (number to send FAX to)
Send keys "{TAB}John Doe" (name of FAX recipient)
Send keys "%S" (sends FAX now)
These commands work with QuickLink; your program will likely be different. You should also note that you could put all these keystrokes in a single "send keys" command. However, spreading them out as done here makes it a little easier to understand what it's doing.
Example 2This example shows how to send a FAX using the FaxTalk For Windows software. The controller sends commands to the FaxTalk program to FAX a preset coversheet which includes a comment field where new text can be added. Step 1 - Activate the FAX software windowYou need to activate the program window so that subsequent keystrokes are sent to it. Here's the command: Activate window "FaxTalk" Step 2 - Send keystrokesNow you send all the keystrokes needed to send the FAX. Send keys "%FW" (selects New FAX from menu)
Send keys "%N" (moves to "Phonebook Names" field)
Send keys "{UP}" (selects first entry as recipient)
Send keys "%A" (selects "Add to recipient list")
Send keys "%E" (opens "Edit Cover Sheet" window)
Send keys "{TAB}X" (selects template file "X")
Send keys "{TAB 7}" (7 tabs to reach "Comment" field)
Send keys "The alarm is going off" (enters comment)
Send keys "%O" (selects "OK" and closes window)
Send keys "%S" (sends FAX)
Note two things about this FaxTalk procedure:
Example 3EtCetera is a useful shareware program that performs "batch" commands to control other programs. Listed below is an EtCetera batch file that sends a FAX using QuickLink. This is very similar to example 1, except here EtCetera controls the QuickLink software instead of HomeVision doing it directly. ;Start QuickLink. If it's already running, this will activate it:
Run "C:\QLMCW\QLMCW.EXE"
;Wait 5 seconds for it to start up:
Wait 5
;Select the "Send FAX" command from the menu (by entering Alt-Shift-S):
SendKeys "/A/SS"
;Enter the file name to FAX, including its path:
SendKeys "c:\alarm.txt"
SendKeys "{ENTER}{ENTER}"
;Enter the phone number and recipient's name:
SendKeys "5551234"
SendKeys "{TAB}John Doe"
;Finally, send the FAX (by entering Alt-S):
SendKeys "/AS"
Once you create the batch file (a simple text file), HomeVision can run it with a single command. For example, if the batch file name is "sendfax.etc" and the EtCetera program is named "Etc_130.exe", you would use this command: Run program "C:\Etc_130.exe sendfax.etc" There are several advantages to having EtCetera control the FAX process instead of HomeVision:
EtCetera and other similar programs are available at many shareware sites on the Internet. |