home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.datacomm
- Path: sparky!uunet!tronsbox!dfrancis
- From: dfrancis@tronsbox.xei.com (Dennis Heffernan)
- Subject: GPFax rexx stuff
- Message-ID: <1992Nov7.190046.15899@tronsbox.xei.com>
- Keywords: GPFaxx, rexx, spam
- Organization: Xanadu Enterprises Inc.
- Date: Sat, 7 Nov 1992 19:00:46 GMT
- Lines: 93
-
- OK, you guys were right about the guard tones. My fax troubles
- disappeared after the local phone company checked out my lines.
-
- ANYway, I am now trying to write a script to fax stuff right out of my
- text editor, QED. Here's the script:
- --------------------------------------
- /* fax.qed -- fax directly from QED buffer */
-
- options results
-
- rcode.0 = 'Success'
- rcode.5 = 'RC_WARN5'
- rcode.10 = 'RC_ERROR'
- rcode.20 = 'RC_FATAL'
-
- FileName = 'temp:qed'||pragma('i')
-
- WRITE FileName
-
- address rexx_gpfax 'CONVERT 'FileName
-
- if rc ~= 0 then do
- MESSAGE "Fax conversion failed!"
- exit
- end
- else
- MESSAGE "Fax conversion complete!"
-
- FaxFile = FileName'_TFAX'
- FaxFile = 'GPFax:FAX_OUT/'||delstr(FaxFile,1,5)
-
- QSTRING 'Enter Destination Number'
-
- if rc = 1 then do
- MESSAGE "No number given - cancelled"
- exit
- end
-
- STATUS A
-
- if result = "" then do
- MESSAGE "No number - cancelled"
- exit
- end
-
- FaxNumber.0 = result
- NumFaxes = 0
-
- do x=1 while FaxNumber.0 ~= ""
-
- parse var FaxNumber.0 FaxNumber.x'\\'FaxNumber.0
- NumFaxes = NumFaxes+1
-
- end
-
- address rexx_gpfax
-
- do x=1 to NumFaxes
-
- /* FaxNumber.x = "'"||FaxNumber.x"'" */
- SENDFAX FaxFile TO FaxNumber.x
- address
- MESSAGE "GPFax reports "rcode.rc
- address
- REPORTLOG R 3
- FaxResult = result
- address
- QQUERY "Result: "result
- address
- if rc = 1 then exit
-
- end
- ----------------------
-
- First problem: SENDFAX simply doesn't understand any names or numbers,
- unless I give it the phone number just as a string of digits. I tried
- sending the name in quotes, and it didn't help.
-
- Second problem: REPORTLOG, along with PRINTLAST and VIEWLAST, doesn't
- work either. Even the sample 'printlast.rexx' didn't work. All three
- commands return 10, with nothing in RESULT.
-
- I'm using GPFax 2.041 S, under 1.3. (2.041S did clear up the problem I
- had with LISTEN and UNLISTEN, but it STILL won't print right from Final Copy
- 2.0.)
-
- Any hints?
-
-
- Dennis F. Heffernan dfrancis@tronsbox.xei.com e4461005@apollo.montclair.edu
- ----------------------------------------------------------------------------
- "I don't understand why you make such a big deal out of everything...haven't
- you learned; if it's not happenning to me it's not important?" -Murphy Brown
-