home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 3 Comm / 03-Comm.zip / pmcom233.zip / PMCOMM.HLP (.txt) < prev    next >
OS/2 Help File  |  1996-01-02  |  154KB  |  5,951 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Installation Help ΓòÉΓòÉΓòÉ
  3.  
  4. If you are using OS/2 1.3 you must use Pmcomm 1.11. If you are using OS/2 2.0 
  5. without the service pack then you can use either Pmcomm 1.11 or Pmcomm 2.01. 
  6. Pmcomm 2.10 and later can only be run on OS/2 2.1 or OS/2 2.0 with the service 
  7. pack. To obtain either Pmcomm 1.11 or 2.01 you may download them from our BBS 
  8. (541 883-8197). 
  9.  
  10. There are now two ways to install Pmcomm. First Pmcomm comes with an install 
  11. program which will install both Pmcomm and the host mode. To use this method 
  12. open the drive object for the drive that you are using to install Pmcomm from, 
  13. and double click on the install.exe program. This program will copy the files 
  14. to the specified directory and create objects on the Desktop for Pmcomm and 
  15. various other programs. 
  16.  
  17. The second method that can be used to install Pmcomm is to copy all of the 
  18. files on the distribution disk to a directory on your hard disk. Also, copy 
  19. RxPmcomm.dll and RxPmc32.dll into a .dll directory (i.e. C:\os2\dll). The 
  20. RxPmc32.dll can only be used with OS/2 2.0 or later. 
  21.  
  22. Note:  You must use the install program in order to install Pmcomm's Host Mode. 
  23. If you are upgrading from a previous version of Pmcomm, you must us the install 
  24. program to convert the dialing directories to the new format. 
  25.  
  26. Pmcomm can be run from a command line by typing pmcomm, but it is recommended 
  27. that it be installed in a "Group" under OS/2 1.3 or as an object under OS/2 2.0 
  28. or 2.1. If you used the install program the object will automatically be 
  29. created. 
  30.  
  31. To install Pmcomm in a group under OS/2 1.3, access the Program menu on the 
  32. "Group" menu and chose the New option. This will bring up a dialog box where 
  33. the following information must be entered. 
  34.  
  35. Program title: Pmcomm 
  36.  
  37. Path and filename: user_specified_path\pmcomm.exe 
  38.  
  39. Parameters: setup.dat 
  40.  
  41. Working directory: user_specified_path 
  42.  
  43. Program type: Presentation Manager 
  44.  
  45. The final step is to select the Add option at the bottom of the dialog box. 
  46.  
  47. Note:  setup.dat will be created if not in existence. 
  48.  
  49. To install Pmcomm as an object under OS/2 2.0 or 2.1, open the OS/2 System 
  50. object on the desktop and access the Template folder. Now, drag the Program 
  51. Object onto the desktop. When the settings dialog box comes up type the path to 
  52. Pmcomm and the filename Pmcomm.exe in the edit field reserved for that purpose. 
  53. Close the settings box and Pmcomm is on 
  54.  
  55. There is a program called timer.exe that is included with Pmcomm that will 
  56. allow you to execute Pmcomm at specified times. This will allow you to set up a 
  57. script to have Pmcomm dial numbers at certain times and capture mail, download 
  58. files, etc. 
  59.  
  60.  
  61. ΓòÉΓòÉΓòÉ 2. Command line options ΓòÉΓòÉΓòÉ
  62.  
  63. Pmcomm allows you to pass either the name of a setup file, or the name of a 
  64. script, on the command line. If the name of the file you pass has the extension 
  65. .dat, then the file will be treated as a setup file. If the .dat file does not 
  66. exist then Pmcomm will create it. If the file you pass has the extension .cmd 
  67. then it will be treated as a REXX script and executed on startup of Pmcomm. 
  68. Similarily, a file with the extension of .exe will be treated as an external 
  69. executable file. All other valid extensions, including the lack of an 
  70. extension, will be treated as an internal script. 
  71.  
  72.  
  73. ΓòÉΓòÉΓòÉ 3. Extended Help ΓòÉΓòÉΓòÉ
  74.  
  75. There is a collection of utilities in the File section such as; Scripts, 
  76. Capture, Log File, File Import, Extended Scroll Buffer, Print, and Stop Wave. 
  77.  
  78. In the Edit section there are commands such as Copy, Append, Paste, and 
  79. Clear_Screen. These commands will help you manipulate on-screen information. 
  80.  
  81. The Connect command allows you to connect to another computer, either through a 
  82. modem, using the Dial command or direct connect, using the Send_Break command. 
  83. The Initialize Modem command will send the modem initialization string to the 
  84. modem. This command allows the user to re-initialize the modem without exiting 
  85. and rerunning Pmcomm. 
  86.  
  87. Transfer allows the use of different protocols to send and receive files to or 
  88. from a remote computer. The protocol options are Xmodem_Checksum, Xmodem_CRC, 
  89. 1K-Xmodem, Ymodem(batch), Ymodem-g(batch), Zmodem, Kermit, CISB, ASCII, and 
  90. IND$FILE (for downloads). Zmodem is probably the best selection when available 
  91. on the remote computer. Ymodem-G should only be used with error correcting 
  92. modems. 
  93.  
  94. FTP allows files to be sent and received via TCP/IP and the FTP protocol. 
  95.  
  96. Hang-up sends the hang-up command string (see the Option menu) and optionally 
  97. drops the DTR line to the modem. Dropping DTR is the most effective if your 
  98. modem is setup to hang-up when DTR is dropped. Using a hang-up string is also 
  99. slower, because Pmcomm has to get the modem into the command state before 
  100. sending the hang-up string. If you have DTR on and delete the hangup string the 
  101. hang-up will be much faster. 
  102.  
  103. Option allows you to tailor Pmcomm to your own tastes. The areas in option are 
  104. Port, Dial_Setup, Modem, Protocols, Paths, Prompts, Macros_Setup, KeyMap, 
  105. Popup_Menu, Screen, Status_Line, Terminal, Multimedia, and Chat. The setup is 
  106. not automatically saved. This allows you to change things temporally without 
  107. changing your default setup file. If you do want to make the  changes permanent 
  108. be sure to save the setup file. To save the current setup file, use the 
  109. Save_setup command under the File menu option. 
  110.  
  111. Macros allows you to pick, with a mouse, the macro you wish to send. Macros can 
  112. also be selected with an Alt+corresponding number keystroke. Pmcomm allows you 
  113. to set up ten different macros. Scripts can be executed from macros by using 
  114. the shell command. An example of this would be: 
  115.  
  116. shell("c:\pmcomm\plane.cmd"); 
  117.  
  118. This would execute the REXX script called plane.cmd. This allows you a quick 
  119. and easy way to execute often used scripts. 
  120.  
  121. Multimedia files can be played from a macro as well, with the play_wave 
  122. command. The play_wave command will play any file that is supported by OS/2. 
  123. This includes wav, mid, and avi file formats. The syntax for this command is : 
  124.  
  125. play_wave("c:\mmos2\sounds\bach.mid"); 
  126.  
  127. The key mapping ability of Pmcomm allows a user to re-map the keyboard to meet 
  128. the requirements of the host computer. It also allows the user to map the keys, 
  129. so that often executed functions can be programmed to a certain key. This is 
  130. commonly called a "Hot Key". 
  131.  
  132.  
  133. ΓòÉΓòÉΓòÉ 3.1. Keys Help ΓòÉΓòÉΓòÉ
  134.  
  135. The following is a list of default "Hot keys" available. These keys can be 
  136. re-mapped to other functions, and the use of these keys may vary with the 
  137. terminal emulation used. 
  138.  
  139.  F1      =   Help. 
  140.  
  141.  F3      =   Exit. 
  142.  
  143.  Alt-D     =   Dialing directory. 
  144.  
  145.  Alt-H     =   Hangup. 
  146.  
  147.  Alt-Q     =   Dial Queue entries. 
  148.  
  149.  Alt-X     =   Exit. 
  150.  
  151.  Ctrl-Break  =   Send break. 
  152.  
  153.  Ctrl-Insert  =   Copy. 
  154.  
  155.  Alt-Insert  =   Append. 
  156.  
  157.  Shift-Insert  =  Paste. 
  158.  
  159.  Page-Dn   =   Download. 
  160.  
  161.  Page-Up   =   Upload. 
  162.  
  163.  Print Scrn  =   Prints text in the visible 
  164.           window (full line length). 
  165.  
  166. The up and down arrow keys default to scrolling the window. You can change this 
  167. in the setup terminal dialog box so that when in ANSI mode the arrow keys will 
  168. be sent to the modem. 
  169.  
  170. In VT100 mode, some keys have been changed to try to closely emulate the VT100 
  171. keyboard. F1-F4 are now the PF keys. Because of this the F1 key will not 
  172. display the normal help, and F3 will not exit the program. The PF keys will 
  173. send the following characters: 
  174.  
  175.   F1 = ESCOP 
  176.  
  177.   F2 = ESCOQ 
  178.  
  179.   F3 = ESCOR 
  180.  
  181.   F4 = ESCOS 
  182.  
  183. Where ESC is equal to the ASCII character hex 1B. All other default hot keys 
  184. will not be available, unless they have been re-mapped. 
  185.  
  186. In VT220 mode additional keys have been redefined. While in this mode Pmcomm is 
  187. not CUA compliant, because of the need to use some of the hot keys that OS/2 
  188. would normally use. In VT220 mode the F1-F4 keys will send the same characters 
  189. as in VT100. In addition VT220 will also use other functions keys as follows: 
  190.  
  191.   F5  = BREAK (sends a break signal) 
  192.  
  193.   F6  = CSI17~ 
  194.  
  195.   F7  = CSI18~ 
  196.  
  197.   F8  = CSI19~ 
  198.  
  199.   F9  = CSI20~ 
  200.  
  201.   F10 = CSI21~ 
  202.  
  203.   F11 = CSI23~ 
  204.  
  205.   F12 = CSI24~ 
  206.  
  207.   Alt/F1  = CSI23~  (VT220 F11 function key) 
  208.  
  209.   Alt/F2  = CSI24~  (VT220 F12 function key) 
  210.  
  211.   Alt/F3  = CSI25~  (VT220 F13 function key) 
  212.  
  213.   Alt/F4  = CSI26~  (VT220 F14 function key) 
  214.  
  215.   Alt/F5  = CSI28~  (VT220 F15 function key) 
  216.  
  217.   Alt/F6  = CSI29~  (VT220 F16 function key) 
  218.  
  219.   Alt/F7  = CSI31~  (VT220 F17 function key) 
  220.  
  221.   Alt/F8  = CSI32~  (VT220 F18 function key) 
  222.  
  223.   Alt/F9  = CSI33~  (VT220 F19 function key) 
  224.  
  225.   Alt/F10 = CSI34~  (VT220 F20 function key) 
  226. CSI will be one of two values, either the CSI character or the ANSI ESC[. If 
  227. you are connected with 8 data bits and the host supports the 8 bit sequence 
  228. then the CSI character will be used. When the num lock key is off the numerical 
  229. key pad will be in the application mode. If you are connecting to a VT220 Host 
  230. you can use these keys to send the VT220 PF key values. For example pressing 
  231. the 1 on the numeric key pad will send the VT220 PF1 key. Pressing the 3 on the 
  232. numeric key pad will send the VT220 PF3 key, and so on. With the num lock on 
  233. the numbers will be sent. The plus key has been re-mapped to be a comma, again 
  234. to be compatible with the VT100 keyboard. 
  235.  
  236.  
  237. ΓòÉΓòÉΓòÉ 3.2. Button Bar Help ΓòÉΓòÉΓòÉ
  238.  
  239. The Button Bar allows, with the click of a mouse button, the user to execute 
  240. various utilities and any user defined macros. The name of the macro will 
  241. appear on the button. 
  242.  
  243. Phone Button 
  244.  
  245. There are many options that can be accessed by the Phone Button. If the 
  246. telephone is on-hook (hung up) and you click on the button, Pmcomm will dial 
  247. any numbers that you have selected in the dialing directory. If there aren't 
  248. any numbers selected, Pmcomm will "pop" up the dialing directory. 
  249.  
  250. If you select a dialing directory in File Manager and hold down the right mouse 
  251. button you can drag the dialing directory to the phone button. Once the mouse 
  252. button is released over the phone button, Pmcomm will dial any selected 
  253. numbers. If there aren't any numbers selected, Pmcomm will "pop" up the dialing 
  254. directory. 
  255.  
  256. Once online the phone button will be taken off-hook. If the phone is off-hook 
  257. and you click on the button, Pmcomm will hang-up. If Monitor DCD is turned off 
  258. and you click on the button, Pmcomm will dial any selected numbers in the 
  259. dialing directory. If there aren't any numbers selected, Pmcomm will "pop" up 
  260. the dialing directory. 
  261.  
  262. Disk Button 
  263.  
  264. The Disk Button allows a quick and easy way to turn the Capture option on and 
  265. off. If only the disk appears on the button and you click on the button Pmcomm 
  266. will then prompt you for the filename of the capture file. If the disk appears 
  267. to have arrows pointing it, Pmcomm is already executing the Capture command. If 
  268. you click on the button when it is in this form, Pmcomm will cancel the Capture 
  269. command. 
  270.  
  271. Log Buttom 
  272.  
  273. By clicking on the Log Button, Pmcomm will turn logging on. When logging is on, 
  274. the log will appear with logging equipment (crosscut saw and an axe), if you 
  275. click on this button Pmcomm will turning logging off. 
  276.  
  277. Printer Button 
  278.  
  279. By clicking on the Printer Button you can print any selected text. If there 
  280. isn't any selected text, Pmcomm will execute the Print Continuous command. 
  281. Clicking on the button again will turn the Print Continuous command off. 
  282.  
  283. Generator Button 
  284.  
  285. Clicking on the Generator Button will turn on the Script Generator. Pmcomm will 
  286. then prompt you for a filename for the script. If you click on the button 
  287. again, Pmcomm will turn off the Script Generator. The Generator Button will 
  288. have yellow arrows pointing away from the generator when a script is being 
  289. generated. 
  290.  
  291. Book Button 
  292.  
  293. Clicking on the Book Button will execute a script. If Pmcomm is executing a 
  294. script, clicking on the button will cancel the script. You can also use the 
  295. drag and drop feature of Pmcomm to select any executable file (extensions .exe, 
  296. .cmd and .scr) from the File Manager and executing that file by dragging and 
  297. dropping the file on the Book Button. 
  298.  
  299. Port Button 
  300.  
  301. Clicking on the Port Button will access the Port Setup dialog box. This allows 
  302. the user to make any changes to the port setup as needed. 
  303.  
  304. Scroll Button 
  305.  
  306. Clicking on the Scroll Button accesses Pmcomm's Extended Scroll Buffer. 
  307.  
  308.  
  309. ΓòÉΓòÉΓòÉ 4. File ΓòÉΓòÉΓòÉ
  310.  
  311. There is a collection of utilities in this section such as; Save_setup, 
  312. Scripts, Capture, Log File, File Import, Extended Scroll Buffer, Print, and 
  313. Stop Wave. 
  314.  
  315.  
  316. ΓòÉΓòÉΓòÉ 4.1. Save Setup ΓòÉΓòÉΓòÉ
  317.  
  318. Saves user definable configurations as well as screen size and position. The 
  319. default file name that is used for the setup file is setup.dat. Different setup 
  320. file names can be used by specifying a different file name as a parameter when 
  321. starting Pmcomm. You can use any name as long as it has an extension of dat. 
  322.  
  323.  
  324. ΓòÉΓòÉΓòÉ 4.2. Capture ΓòÉΓòÉΓòÉ
  325.  
  326. Capture saves everything that is received from the modem to a file. For 
  327. example, you can capture all new messages and then read them after you hang up. 
  328. If you specify PRN as the filename everything will be captured to the printer. 
  329. If you have Monitor_DCD selected then the capture file will be closed when you 
  330. log off. This will happen if you started the capture file from the menu or from 
  331. a internal script. 
  332.  
  333.  
  334. ΓòÉΓòÉΓòÉ 4.2.1. Start Capture ΓòÉΓòÉΓòÉ
  335.  
  336. When selecting this option you will be prompted for a file name and then 
  337. everything that comes in from the modem will be saved to that file. If PRN is 
  338. selected then everything will be sent to the printer. If the file exists you 
  339. will be asked if you wish to overwrite the file. If you select no, the new 
  340. information will be appended to the end of the file. Select cancel if you wish 
  341. to abort the capture. 
  342.  
  343. You may also start the capture by clicking on the disk button located on the 
  344. Button_Bar. 
  345.  
  346.  
  347. ΓòÉΓòÉΓòÉ 4.2.2. Cancel Capture ΓòÉΓòÉΓòÉ
  348.  
  349. This command will turn off capture. This command will only work if capture was 
  350. started with the Start_Capture command. 
  351.  
  352. You may also cancel the capture command by clicking on the disk button located 
  353. on the Button_Bar. 
  354.  
  355.  
  356. ΓòÉΓòÉΓòÉ 4.3. Scripts ΓòÉΓòÉΓòÉ
  357.  
  358. Scripts allow you to have the computer perform certain tasks automatically. The 
  359. internal commands available are: 
  360.  
  361. wait_for 
  362. puts 
  363. sleep 
  364. call 
  365. capture_on 
  366. capture_off 
  367. change_option 
  368. dial 
  369. shell 
  370. exit 
  371.  
  372. The REXX commands that are available are: 
  373.  
  374. init_dll 
  375. init_32dll 
  376. setcom 
  377. sendb 
  378. dcd 
  379. char_avail 
  380. read_timeout 
  381. Get_ch 
  382. ring_detect 
  383. drop_dtr 
  384. raise_dtr 
  385. Wait_for 
  386. Wait_fore 
  387. Put_s 
  388. Sleep 
  389. beep 
  390. get_cursor_position 
  391. get_char_at 
  392. capture_on 
  393. capture_off 
  394. change_option 
  395. dial 
  396. get_dial_memo 
  397. clipboard_paste 
  398. clipboard_copy 
  399. clipboard_append 
  400. xmodem_send 
  401. xmodem_receive 
  402. xmodem_chk_send 
  403. xmodem_chk_receive 
  404. xmodem_1k_send 
  405. xmodem_1k_receive 
  406. ymodem_send 
  407. ymodem_receive 
  408. ymodemg_send 
  409. ymodemg_receive 
  410. zmodem_send 
  411. zmodem_receive 
  412. kermit_send 
  413. kermit_receive 
  414. ascii_send 
  415. ascii_receive 
  416. cisb_send 
  417. cisb_receive 
  418. set_download_path 
  419. os2_shell 
  420.  
  421. The 'C' library commands that are available are: 
  422.  
  423. init_lib 
  424. setcom 
  425. sendb 
  426. dcd 
  427. char_avail 
  428. read_timeout 
  429. get_ch 
  430. ring_detect 
  431. drop_dtr 
  432. raise_dtr 
  433. wait_for 
  434. wait_fore 
  435. put_s 
  436. sleep 
  437. beep 
  438. get_cursor_position 
  439. get_char_at 
  440. capture_on 
  441. capture_off 
  442. change_option 
  443. dial 
  444. get_dial_memo 
  445. clipboard_paste 
  446. clipboard_copy 
  447. clipboard_append 
  448. xmodem_send 
  449. xmodem_receive 
  450. xmodem_chk_send 
  451. xmodem_chk_receive 
  452. xmodem_1k_send 
  453. xmodem_1k_receive 
  454. ymodem_send 
  455. ymodem_receive 
  456. ymodemg_send 
  457. ymodemg_receive 
  458. zmodem_send 
  459. zmodem_receive 
  460. kermit_send 
  461. kermit_receive 
  462. ascii_send 
  463. ascii_receive 
  464. cisb_send 
  465. cisb_receive 
  466. set_download_path 
  467. os2_shell 
  468.  
  469. The scripts command is only available in the commercial version of Pmcomm. 
  470.  
  471.  
  472. ΓòÉΓòÉΓòÉ 4.3.1. Start Scripts ΓòÉΓòÉΓòÉ
  473.  
  474. With this command you can start a pre-written script at any time, just enter 
  475. the file name of the script when prompted. If only the file name is entered, 
  476. the script path will be searched for the file. Full path and file names are 
  477. allowed. 
  478.  
  479. You may also start a script be clicking on the book button located on the 
  480. Button_Bar. 
  481.  
  482.  
  483. ΓòÉΓòÉΓòÉ 4.3.2. Script Dialog ΓòÉΓòÉΓòÉ
  484.  
  485. The Script Dialog displays information and options about the current script. 
  486. When the dialog is displayed you have the option of either aborting the script, 
  487. closing the dialog box, or skipping the currently executing command. 
  488.  
  489.  
  490. ΓòÉΓòÉΓòÉ 4.3.3. Cancel Script ΓòÉΓòÉΓòÉ
  491.  
  492. This command is used to stop a script that is already running. The script will 
  493. be canceled at the time this is selected unless the script is at a sleep 
  494. command. In this case the script will stop after the sleep time interval has 
  495. expired. 
  496.  
  497. You may also cancel a script by clicking on the book button located on the 
  498. Button_Bar. 
  499.  
  500.  
  501. ΓòÉΓòÉΓòÉ 4.3.4. Start Script Generator ΓòÉΓòÉΓòÉ
  502.  
  503. This is the command that executes Pmcomm's script generator. The script 
  504. generator will write a script in either REXX or Internal script syntax. A REXX 
  505. script must have a cmd extension, and an Internal script must have a scr 
  506. extension. If you want a script that will log you on to a BBS turn the script 
  507. generator on and log on normally. Once finished logging on cancel the script 
  508. generator. You now have a script that will log you onto that BBS. If you start 
  509. the script generator before you dial the remote system a dial command will be 
  510. in the script. With this script you can just start the script and the script 
  511. will dial the number. If you start the script generator after connected to the 
  512. remote system, the script that will be created is designed to be entered into 
  513. the dialing directory. In some cases you may have to start the script generator 
  514. before you dial and then delete the dial command from the script. Some remote 
  515. systems send information as soon as you connect, this does not allow the user 
  516. enough time to start the script generator. 
  517.  
  518. You may also start the script generator by clicking on the generator button 
  519. located on the Button_Bar. 
  520.  
  521.  
  522. ΓòÉΓòÉΓòÉ <hidden> Filename ΓòÉΓòÉΓòÉ
  523.  
  524. Pmcomm allows you to choose either a path and filename or just the filename. If 
  525. only the filename is entered, Pmcomm will use the script directory that is 
  526. setup under the Paths option. Be sure that all REXX scripts have an extension 
  527. of .cmd and all Internal scripts have an extension of .scr. If these extensions 
  528. are not used Pmcomm will create the script but the script will not be able to 
  529. be executed. 
  530.  
  531.  
  532. ΓòÉΓòÉΓòÉ <hidden> Description ΓòÉΓòÉΓòÉ
  533.  
  534. This description will appear as the first line of the script. The description 
  535. will hopefully avoid any confusion about the purpose of the script at later 
  536. date. 
  537.  
  538.  
  539. ΓòÉΓòÉΓòÉ <hidden> REXX Script ΓòÉΓòÉΓòÉ
  540.  
  541. This will create a script using the REXX language. The filename must have an 
  542. extension of .cmd in order for it to be executed by the REXX interpreter. A 
  543. REXX script will execute a little slower than an Internal script, but it is 
  544. more flexible. 
  545.  
  546.  
  547. ΓòÉΓòÉΓòÉ <hidden> Internal Script ΓòÉΓòÉΓòÉ
  548.  
  549. This will create a script using Pmcomm's Internal script syntax. The filename 
  550. must have an .scr extension in order for it to be executed by Pmcomm. 
  551.  
  552.  
  553. ΓòÉΓòÉΓòÉ <hidden> Number of Characters in wait_fore ΓòÉΓòÉΓòÉ
  554.  
  555. The Number of Characters in wait_fore will decide the length of the wait_fore 
  556. statements. The default is 10 characters which for most purposes will be 
  557. adequate. 
  558.  
  559.  
  560. ΓòÉΓòÉΓòÉ 4.3.5. Cancel Script Generator ΓòÉΓòÉΓòÉ
  561.  
  562. This command turns off the script generator. You can also cancel the script 
  563. generator by clicking on the generator button located on the Button_Bar. 
  564.  
  565.  
  566. ΓòÉΓòÉΓòÉ 4.4. Log File ΓòÉΓòÉΓòÉ
  567.  
  568. Logging writes to a file named pmcomm.log in the main pmcomm directory. The 
  569. type of information written is the time, date and name of the number called. 
  570. The time, date, cps and name of files transferred will also be saved. If you 
  571. are setup to monitor DCD the time and date of when the call was terminated will 
  572. also be recorded. 
  573.  
  574.  
  575. ΓòÉΓòÉΓòÉ 4.4.1. Start Logging ΓòÉΓòÉΓòÉ
  576.  
  577. The file named pmcomm.log in the main pmcomm directory will be opened. Any 
  578. logging information will be appended to the end of the file. 
  579.  
  580. You may also start logging by clicking on the log button located on the 
  581. Button_Bar. 
  582.  
  583.  
  584. ΓòÉΓòÉΓòÉ 4.4.2. Cancel Logging ΓòÉΓòÉΓòÉ
  585.  
  586. The log file will be closed and no other information will be written to the log 
  587. file until it is reopened using the Start Log option. 
  588.  
  589. You may also cancel logging by clicking on the log button located on the 
  590. Button_Bar. 
  591.  
  592.  
  593. ΓòÉΓòÉΓòÉ 4.5. File Import ΓòÉΓòÉΓòÉ
  594.  
  595. This command copies a file from disk and sends it to a remotely connected 
  596. computer. This can be handy for sending previously saved files as messages, or 
  597. during a chat session. At times this is handier then using the clipboard. The 
  598. delay time specified in the file import delay parameter under Options, 
  599. Protocols, will pause the specified number of seconds after each line has been 
  600. sent. This can be useful if the receiver can not process the information as 
  601. fast as Pmcomm can send it. 
  602.  
  603.  
  604. ΓòÉΓòÉΓòÉ 4.6. Extended Scroll Buffer ΓòÉΓòÉΓòÉ
  605.  
  606. The extended scroll buffer allows a user to store information in memory, that 
  607. can later be displayed. As information comes in from the com port Pmcomm will 
  608. store it in both the regular scroll buffer (accessed by using the scroll bars), 
  609. and into the extended scroll buffer (accessed by using this command). The size 
  610. of the extended buffer can be set under Options, Screen. The extended scroll 
  611. buffer size will be rounded down to the nearest 4K (4096 bytes) in size. This 
  612. is to make the memory usage more efficient in OS/2. The user has the ability to 
  613. read and write to the extended scroll buffer. A user can copy information from 
  614. the extended scroll buffer into the OS/2 clipboard. Once in the OS/2 clipboard 
  615. the information can be pasted into word processors, spread sheets, etc.. A user 
  616. can also import a text file into the extended scroll buffer and then send the 
  617. file to the modem. 
  618.  
  619.  
  620. ΓòÉΓòÉΓòÉ 4.6.1. File ΓòÉΓòÉΓòÉ
  621.  
  622. There is a collection of functions under this menu option that allows a user to 
  623. transport the text in various ways. The functions are: 
  624.  
  625. Import text file 
  626.  
  627. Save as 
  628.  
  629. Print selected 
  630.  
  631. Print all 
  632.  
  633. Exit buffer 
  634.  
  635.  
  636. ΓòÉΓòÉΓòÉ 4.6.2. Import Text File ΓòÉΓòÉΓòÉ
  637.  
  638. This function allows the user to import a text file into the extended scroll 
  639. buffer. 
  640.  
  641.  
  642. ΓòÉΓòÉΓòÉ 4.6.3. Save as ΓòÉΓòÉΓòÉ
  643.  
  644. This function allows the user to save the text in the extended scroll buffer to 
  645. a file. 
  646.  
  647.  
  648. ΓòÉΓòÉΓòÉ 4.6.4. Print selected ΓòÉΓòÉΓòÉ
  649.  
  650. If any text in the buffer has been highlighted with the mouse, selecting this 
  651. function will send the selected text to the printer. 
  652.  
  653.  
  654. ΓòÉΓòÉΓòÉ 4.6.5. Print all ΓòÉΓòÉΓòÉ
  655.  
  656. This function will send all of the text, in the buffer, to the printer. 
  657.  
  658.  
  659. ΓòÉΓòÉΓòÉ 4.6.6. Exit buffer ΓòÉΓòÉΓòÉ
  660.  
  661. This will exit the extended scroll buffer and return you to the main screen of 
  662. Pmcomm. 
  663.  
  664.  
  665. ΓòÉΓòÉΓòÉ 4.6.7. Edit ΓòÉΓòÉΓòÉ
  666.  
  667. There are a collection of functions under this menu option that allow a user to 
  668. manipulate text in the extended scroll buffer. The functions are: 
  669.  
  670. Search 
  671.  
  672. Find next 
  673.  
  674. Copy 
  675.  
  676. Paste 
  677.  
  678. Cut 
  679.  
  680. Clear selected 
  681.  
  682. Clear all 
  683.  
  684. Undo 
  685.  
  686.  
  687. ΓòÉΓòÉΓòÉ 4.6.8. Search ΓòÉΓòÉΓòÉ
  688.  
  689. This function allows the user to search for any character sequence that may be 
  690. in the extended scroll buffer. The search always starts at the top of the 
  691. extended scroll buffer. 
  692.  
  693.  
  694. ΓòÉΓòÉΓòÉ 4.6.9. Find next ΓòÉΓòÉΓòÉ
  695.  
  696. This function allows the user to find the next occurrence of the selected 
  697. character sequence. 
  698.  
  699.  
  700. ΓòÉΓòÉΓòÉ 4.6.10. Copy ΓòÉΓòÉΓòÉ
  701.  
  702. This function copies any selected text into the clipboard. The text can then be 
  703. pasted into other applications as well as the main terminal screen of Pmcomm. 
  704.  
  705.  
  706. ΓòÉΓòÉΓòÉ 4.6.11. Paste ΓòÉΓòÉΓòÉ
  707.  
  708. This inserts any text that is in the clipboard into the extended scroll buffer. 
  709.  
  710.  
  711. ΓòÉΓòÉΓòÉ 4.6.12. Cut ΓòÉΓòÉΓòÉ
  712.  
  713. This command deletes the selected text from the extended scroll buffer but 
  714. saves a copy of the text in the clipboard so it can be pasted at another 
  715. location. 
  716.  
  717.  
  718. ΓòÉΓòÉΓòÉ 4.6.13. Clear selected ΓòÉΓòÉΓòÉ
  719.  
  720. This command deletes all selected text from the extended scroll buffer. 
  721.  
  722.  
  723. ΓòÉΓòÉΓòÉ 4.6.14. Clear all ΓòÉΓòÉΓòÉ
  724.  
  725. This command clears the entire extended scroll buffer of any text. 
  726.  
  727.  
  728. ΓòÉΓòÉΓòÉ 4.6.15. Undo ΓòÉΓòÉΓòÉ
  729.  
  730. This command will undo the last editing command. 
  731.  
  732.  
  733. ΓòÉΓòÉΓòÉ 4.6.16. Options ΓòÉΓòÉΓòÉ
  734.  
  735. There are two functions under this menu option that allows a user to manipulate 
  736. the screen appearance. The functions are: 
  737.  
  738. Font 
  739.  
  740. Color 
  741.  
  742.  
  743. ΓòÉΓòÉΓòÉ 4.6.17. Font ΓòÉΓòÉΓòÉ
  744.  
  745. This command allows the user to change the font characteristics in the extended 
  746. scroll buffer. All of the fonts available for OS/2 2.0 are recognized by 
  747. Pmcomm. 
  748.  
  749.  
  750. ΓòÉΓòÉΓòÉ 4.6.18. Color ΓòÉΓòÉΓòÉ
  751.  
  752. This command allows the user to set both the foreground and background colors 
  753. in extended scroll buffer. 
  754.  
  755.  
  756. ΓòÉΓòÉΓòÉ 4.7. Print ΓòÉΓòÉΓòÉ
  757.  
  758. Print allows you to send information that was previously received out to the 
  759. printer. You can either send the information that is displayed on the visible 
  760. part of the window, or you can print the whole scroll back buffer. The print 
  761. function uses PRN as the device name for printing. 
  762.  
  763.  
  764. ΓòÉΓòÉΓòÉ 4.7.1. Print visible screen ΓòÉΓòÉΓòÉ
  765.  
  766. This command can also be sent by pressing the Print Screen key. When Pmcomm 
  767. receives this message it prints all of the lines on the visible part of the 
  768. screen. 
  769.  
  770.  
  771. ΓòÉΓòÉΓòÉ 4.7.2. Print buffer ΓòÉΓòÉΓòÉ
  772.  
  773. When this is selected all of the scroll back buffer is sent out to the printer. 
  774. There are about 240 lines available in the scroll back buffer, so this command 
  775. may take awhile to complete. This does not mean that you can't do anything 
  776. else. Pmcomm will print in the background while you go on. 
  777.  
  778.  
  779. ΓòÉΓòÉΓòÉ 4.7.3. Print selected ΓòÉΓòÉΓòÉ
  780.  
  781. This will print previously selected text (by using the mouse) to the PRN 
  782. device. 
  783.  
  784. You may also print any selected text by clicking on the printer button located 
  785. on the Button_Bar. 
  786.  
  787.  
  788. ΓòÉΓòÉΓòÉ 4.7.4. Print continuous ΓòÉΓòÉΓòÉ
  789.  
  790. This will print everything that comes in from the communication port to the PRN 
  791. device. 
  792.  
  793.  
  794. ΓòÉΓòÉΓòÉ 4.7.5. Start continuous printing ΓòÉΓòÉΓòÉ
  795.  
  796. This will start continuous printing. Everything will be printed to the PRN 
  797. device. It is not recommended that you use this command unless you have the 
  798. OS/2 print spooler active. 
  799.  
  800. You may also start continuous printing by clicking on the printer button 
  801. located on the Button_Bar. 
  802.  
  803.  
  804. ΓòÉΓòÉΓòÉ 4.7.6. Cancel continuous printing ΓòÉΓòÉΓòÉ
  805.  
  806. This will cancel printing, that was started with the Start continuous printing 
  807. command. 
  808.  
  809. You may also cancel continuous printing by clicking on the printer button 
  810. located on the Button_Bar. 
  811.  
  812.  
  813. ΓòÉΓòÉΓòÉ 4.8. Product Information ΓòÉΓòÉΓòÉ
  814.  
  815. The product information box has information about this program, such as BBS 
  816. support telephone number, company name, version number, serial number, and 
  817. copyright information. 
  818.  
  819.  
  820. ΓòÉΓòÉΓòÉ 4.9. Stop Wave ΓòÉΓòÉΓòÉ
  821.  
  822. Stop Wave allows you to stop the playing of a Multimedia sound file, that was 
  823. started playing from within Pmcomm. This can be a file that was played when an 
  824. event occured (such as a BUSY signal), or from a Macro. Even though the command 
  825. is called Stop Wave, this command will stop any Multimedia file that is Played, 
  826. even video. 
  827.  
  828.  
  829. ΓòÉΓòÉΓòÉ 4.10. Exit ΓòÉΓòÉΓòÉ
  830.  
  831. Ends current session with Pmcomm. Before exiting Pmcomm will restore the state 
  832. of the com port. Pmcomm closes the communication port when exiting which drops 
  833. DTR. The hang-up string is also sent to the modem, after the main Pmcomm window 
  834. disappears. Because of this if Pmcomm is immediately rerun the com port may not 
  835. be able to be reopened until the previous execution of Pmcomm completes. If you 
  836. get a device open error when doing this, just wait a few seconds and try again. 
  837.  
  838.  
  839. ΓòÉΓòÉΓòÉ 5. Edit ΓòÉΓòÉΓòÉ
  840.  
  841. In this section there are commands such as Copy, Append, Paste, and 
  842. Clear_Screen. 
  843.  
  844.  
  845. ΓòÉΓòÉΓòÉ 5.1. Copy ΓòÉΓòÉΓòÉ
  846.  
  847. Copy transfers selected information from the screen and places it into the 
  848. Clipboard. Any information already in the Clipboard, will be deleted. Other 
  849. applications, such as a word processor, can then use this information. 
  850.  
  851.  
  852. ΓòÉΓòÉΓòÉ 5.2. Append ΓòÉΓòÉΓòÉ
  853.  
  854. Append adds selected text to information that is already in the Clipboard. If 
  855. there is existing information of the same type (CF_TEXT), then the selected 
  856. text will be added to the end of the existing information. One use of this 
  857. would be to save file names into the Clipboard, so they maybe used to download. 
  858.  
  859.  
  860. ΓòÉΓòÉΓòÉ 5.3. Paste ΓòÉΓòÉΓòÉ
  861.  
  862. Paste, copies information from the clipboard and sends it out to the modem. 
  863. Care must be taken that the information sent can be handled by the remote 
  864. computer. A use for this command would be that you could enter a message in a 
  865. word processor, copy that message into the clipboard and then paste it into 
  866. Pmcomm. 
  867.  
  868.  
  869. ΓòÉΓòÉΓòÉ 5.4. Clear Screen ΓòÉΓòÉΓòÉ
  870.  
  871. Clears the whole screen including the scroll back buffer and resets the 
  872. attribute to the attribute defined in the setup area. 
  873.  
  874.  
  875. ΓòÉΓòÉΓòÉ 6. Connect ΓòÉΓòÉΓòÉ
  876.  
  877. This command allows you to connect to another computer, either through a modem, 
  878. using the Dial command or direct connect, using the Send_Break command. 
  879.  
  880.  
  881. ΓòÉΓòÉΓòÉ 6.1. Dial ΓòÉΓòÉΓòÉ
  882.  
  883. Dial uses a dialing_directory to store phone numbers and other information 
  884. about the remote computer. This provides a easy way to connect to remote 
  885. computers. 
  886.  
  887.  
  888. ΓòÉΓòÉΓòÉ 6.1.1. Dial Dialog Help ΓòÉΓòÉΓòÉ
  889.  
  890. The dial dialog box allows you to add, select, modify, or delete entries in the 
  891. current dialing directory. An entry can also be selected to be automatically 
  892. selected (or optionally dialed) when Pmcomm is first started. 
  893.  
  894. To add an entry, select the add button in the dialog box. You will then be 
  895. prompted to enter the name of the new entry. The directory will be sorted and 
  896. the new entry will be selected. The cursor will be positioned at the number 
  897. entry field so that the number for the new entry can be entered. After the 
  898. number has been entered, pressing the enter key will save the dialing directory 
  899. and dial the number(s). Pressing the tab key will allow you to edit the other 
  900. fields. 
  901.  
  902. To select a number, using a mouse, "click" on the number (or numbers) that you 
  903. wish to dial. To deselect an entry "click" on the number once again. If you are 
  904. not using a mouse the arrow keys will move the highlight bar through the 
  905. directory. To select your choices press the space bar, a second time will 
  906. deselect the entry, then press enter. Multiple entries may be selected. This 
  907. will form a dialing queue, in which Pmcomm will dial the selected entries until 
  908. a connection is made. 
  909.  
  910. To modify an entry, select the entry to be edited and then use the tab key to 
  911. move the cursor to the field you wish to change. Use the Change button to 
  912. change the name of an entry. Pressing the save button will save the 
  913. modifications to the disk. 
  914.  
  915. To change a name, select the entry to be edited and then use press the change 
  916. button. The change will automatically be saved to the disk. 
  917.  
  918. To delete an entry, select the entry to be deleted and select the delete button 
  919. in the dialog box. 
  920.  
  921. Information for each number such as last time called, number of times called, 
  922. file cps on downloading, file cps on uploading, files downloaded, files 
  923. uploaded and protocol, can be accessed by selecting an entry and then clicking 
  924. on the Info button. 
  925.  
  926. CAUTION:
  927. If multiple entries are selected, only the first selected entry will be 
  928. deleted. 
  929.  
  930. The dial dialog box can also be accessed by clicking on the phone button on the 
  931. Button_Bar. 
  932.  
  933.  
  934. ΓòÉΓòÉΓòÉ 6.1.2. Dial Prefix ΓòÉΓòÉΓòÉ
  935.  
  936. Pmcomm sends the selected dial prefix to the modem before sending the phone 
  937. number. The default string for the prefixes is ATDT which tells the modem to 
  938. dial using tone (ie. touch tone). If your phone system does not support touch 
  939. tone then you could use the ATDP command. Pmcomm allows you to setup multiple 
  940. prefixes, so that if you need to dial a special code for long distance calls 
  941. you can set up a separate prefix for those calls. 
  942.  
  943.  
  944. ΓòÉΓòÉΓòÉ 6.1.3. Dial Suffix ΓòÉΓòÉΓòÉ
  945.  
  946. Pmcomm sends the selected dial suffix to the modem after sending the phone 
  947. number. The default string for the suffixes is ^M which is a carriage return 
  948. and line feed. 
  949.  
  950.  
  951. ΓòÉΓòÉΓòÉ 6.1.4. Automatically Selected ΓòÉΓòÉΓòÉ
  952.  
  953. If a dialing entry is marked as being automatically selected then each time 
  954. Pmcomm is started this entry will be selected to be dialed. You can have as 
  955. many entries automatically selected as you want, and this will form a dialing 
  956. queue. A dialing queue allows you to try the first number and if it is busy it 
  957. will then dial the next number in the queue. If the Dial Auto Selected Entries 
  958. on program Startup is selected then any entries in the dialing directory that 
  959. are marked as auto selected, will automatically be dialed. This option will 
  960. allow you to automatically dial selected numbers when Pmcomm is first invoked. 
  961.  
  962.  
  963. ΓòÉΓòÉΓòÉ 6.1.5. Dial List Box ΓòÉΓòÉΓòÉ
  964.  
  965. The Dial List Box is a multiple selection list box. This means that you can 
  966. select more than one entry at a time. The information on the right side of the 
  967. Dialog Box is on the first item selected. The reason for using a multiple 
  968. selection list box, is that you can select more than one item and these items 
  969. will be dialed in order. For example, if the first number selected is busy then 
  970. Pmcomm will dial the next number selected. If all selected numbers are busy, 
  971. Pmcomm will start over again. If you have multiple items selected and select 
  972. the Delete button, only the first item will be deleted. If an item is selected 
  973. and you double click on that item then the selected items will be dialed. 
  974.  
  975.  
  976. ΓòÉΓòÉΓòÉ 6.1.6. Dial Device ΓòÉΓòÉΓòÉ
  977.  
  978. A device name can be entered here (such as COM1, COM2, etc), or the word 
  979. Default, to use the device specified under Options, Port. Upon dialing the 
  980. current device will be closed (if already open), and the device specified will 
  981. be opened. The modem init string will also be sent to the device after the 
  982. device has been opened. 
  983.  
  984.  
  985. ΓòÉΓòÉΓòÉ 6.1.7. Baud Rate ΓòÉΓòÉΓòÉ
  986.  
  987. In the Dialing Dialog Box you can enter any baud supported by the device driver 
  988. you are using. Currently the maximum baud rate supported by the device driver 
  989. included with OS/2 is 115,200. Commonly used baud rates are: 300, 1200, 2400, 
  990. 9600, 19200 and 38,400. To select a baud rate use the drop down list box and 
  991. choose the appropriate rate. If you select the Default option for the baud rate 
  992. Pmcomm will use the baud rate set up under Options, Port and the default baud 
  993. option. 
  994.  
  995.  
  996. ΓòÉΓòÉΓòÉ 6.1.8. Parity ΓòÉΓòÉΓòÉ
  997.  
  998. The supported parities are: None, Even, Odd, Marked, and Space. To enter a 
  999. parity, type in one of the above words. The two most widely used parities are 
  1000. None and Even. If you are calling most BBS's you would want to enter None, but 
  1001. most packet networks (such as CompuServe and Telenet) normally require Even 
  1002. parity. 
  1003.  
  1004.  
  1005. ΓòÉΓòÉΓòÉ 6.1.9. Data Bits ΓòÉΓòÉΓòÉ
  1006.  
  1007. Currently supported data bits are 5, 6, 7, and 8. The most popular values are 7 
  1008. and 8. For most BBS's 8 data bits are necessary, however, for systems such as 
  1009. CompuServe, 7 data bits are required. 
  1010.  
  1011.  
  1012. ΓòÉΓòÉΓòÉ 6.1.10. Stop Bits ΓòÉΓòÉΓòÉ
  1013.  
  1014. Currently supported stop bits are 1, 1.5 and 2. Most systems will require 1 
  1015. stop bit. 
  1016.  
  1017.  
  1018. ΓòÉΓòÉΓòÉ 6.1.11. Dial Script ΓòÉΓòÉΓòÉ
  1019.  
  1020. The script name can be up to 12 characters long. The script must be in the 
  1021. script path (see Paths for more information). Any REXX script, Internal script, 
  1022. or any OS/2 executable can be executed. Once Pmcomm is connected to the remote 
  1023. computer this script will be executed. 
  1024.  
  1025.  
  1026. ΓòÉΓòÉΓòÉ 6.1.12. Dial Terminal ΓòÉΓòÉΓòÉ
  1027.  
  1028. The currently available terminal emulations are TTY, ANSI, VT100, and VT220. 
  1029. Pmcomm will switch to the terminal emulation listed once connected to the 
  1030. remote computer. 
  1031.  
  1032.  
  1033. ΓòÉΓòÉΓòÉ 6.1.13. Dial Memo ΓòÉΓòÉΓòÉ
  1034.  
  1035. The Dial Memo field allows a user to store information that pertains to that 
  1036. number. An example would be to store a password in this field, so that a user 
  1037. would not forget what their password is. A user can setup a macro key to send 
  1038. the information in the memo field (see Macros_Setup, for more information). 
  1039.  
  1040.  
  1041. ΓòÉΓòÉΓòÉ 6.1.14. Dial KeyMap ΓòÉΓòÉΓòÉ
  1042.  
  1043. The Dial KeyMap field allows a user to load a different key map for each 
  1044. dialing entry. If you wish to use a new key map, then just type the name of the 
  1045. key map (it must have a .map extension), in this field and a key map with some 
  1046. default definitions will be created. If you wish to use an existing key map 
  1047. just select it from the drop down list. If you select default then the default 
  1048. key map for the terminal emulation selected will be used. 
  1049.  
  1050.  
  1051. ΓòÉΓòÉΓòÉ 6.1.15. Phone Rate ΓòÉΓòÉΓòÉ
  1052.  
  1053. This field allows Pmcomm to calculate the amount of money that is being spent 
  1054. while online. This will only work if you have Pmcomm and your modem setup to 
  1055. Monitor_DCD. This value should be expressed in dollars ( or whatever currency). 
  1056. For example if it costs 23 cents a minute to connect to a number, then you 
  1057. should put .23 in this field. If it costs a dollar and 15 cents then 1.15 
  1058. should be entered. The value enter should be the cost per minute. 
  1059.  
  1060.  
  1061. ΓòÉΓòÉΓòÉ 6.2. Send Break ΓòÉΓòÉΓòÉ
  1062.  
  1063. Some computers when directly connected with a serial cable, need a break signal 
  1064. in order to initialize a connection. See your system administrator to see if 
  1065. this needs to be used with your system. 
  1066.  
  1067.  
  1068. ΓòÉΓòÉΓòÉ 6.3. Initialize Modem ΓòÉΓòÉΓòÉ
  1069.  
  1070. Pmcomm automatically sends the modem initialization string to the 
  1071. communications port when the user first starts Pmcomm. If for some reason you 
  1072. need to re-initialize the modem, you can use the Initialize Modem command to do 
  1073. so. 
  1074.  
  1075.  
  1076. ΓòÉΓòÉΓòÉ 6.4. Comm Error ΓòÉΓòÉΓòÉ
  1077.  
  1078. When this command is used, Pmcomm queries the com device driver to see if the 
  1079. com device driver has detected an error. There are four error messages that can 
  1080. be displayed. 
  1081.  
  1082. The first is "Receive queue overrun", which means that there was no room in the 
  1083. device driver receive queue for a character read in from the receive hardware. 
  1084. This is normally caused by the flow control not being setup correctly. Make 
  1085. sure that you have hardware flow control turned on, in both your modem and in 
  1086. Pmcomm. 
  1087.  
  1088. The second message is "Receive hardware overrun", and means that a character 
  1089. was not read from the hardware before the next character arrived causing a 
  1090. character to be lost. When this error is received, it normally means that you 
  1091. are trying to receive characters faster then your hardware is capable of. Try 
  1092. reducing the baud rate that you are connected at. This error is more likely to 
  1093. happen with a non-buffered UART, and on an ISA bus computer. 
  1094.  
  1095. The third message is "Hardware detected parity error", and the fourth message 
  1096. is "Hardware detected framing error". These last two messages are normally 
  1097. caused by phone line noise, and by themselves, are not normally a problem. 
  1098.  
  1099. After the errors are displayed, Pmcomm clears the errors and they will not be 
  1100. displayed again, unless the error occurs again. 
  1101.  
  1102.  
  1103. ΓòÉΓòÉΓòÉ 7. Transfer ΓòÉΓòÉΓòÉ
  1104.  
  1105. Transfer allows the use of different protocols to send and receive files from a 
  1106. remote computer. The protocol options are Xmodem_Checksum, Xmodem_CRC, 
  1107. 1K-Xmodem, Ymodem(batch), Ymodem-g(batch), Zmodem, Kermit, CISB, and ASCII. 
  1108. Zmodem is probably the best selection, when available on the remote computer. 
  1109. Ymodem-G should only be used with error correcting modems. 
  1110.  
  1111. IND$FILE is available for downloads using the VT100, and VT220 terminal 
  1112. emulations only. 
  1113.  
  1114. CAUTION:
  1115. IND$FILE currently does not have any error detection available in Pmcomm. 
  1116.  
  1117.  
  1118. ΓòÉΓòÉΓòÉ 7.1. Transfer Dialog Box Help ΓòÉΓòÉΓòÉ
  1119.  
  1120. This dialog box displays the current status of your file transfer. The box 
  1121. displays the latest status message from Pmcomm, the protocol being used, the 
  1122. file name of the file being transferred, the file size, bytes already 
  1123. transferred, the time remaining, and the current cps (characters per second). 
  1124. There is also a status bar that visually shows the approximate percentage of 
  1125. the file yet to be transferred. 
  1126.  
  1127. The file transfer dialog box has a "Show" button that when pushed will display 
  1128. the main window of Pmcomm. This option allows you to access the main window 
  1129. while doing a transfer. You may do anything you wish as long as it doesn't 
  1130. interfere with the com port (ie. changing the com port settings). One way this 
  1131. would be useful is in viewing the scroll buffer while doing a transfer. Once 
  1132. the show button has been pushed, the button will change to "Hide". If the 
  1133. button is pushed at this time the main window of Pmcomm will be hidden from 
  1134. view. 
  1135.  
  1136.  
  1137. ΓòÉΓòÉΓòÉ 7.2. Download ΓòÉΓòÉΓòÉ
  1138.  
  1139. The download command brings up a dialog box for you to select the proper 
  1140. protocol. If the protocol selected is not a batch protocol ( ASCII, 
  1141. Xmodem_Checksum, Xmodem_CRC or 1K-Xmodem ) you will be prompted for a filename. 
  1142. If you have Auto-Zmodem or Auto_CISB selected in the protocol options area, 
  1143. Pmcomm will automatically start transferring as soon as the remote computer 
  1144. starts to send. Zmodem is not available in the demonstration version. 
  1145.  
  1146.  
  1147. ΓòÉΓòÉΓòÉ 7.3. Upload ΓòÉΓòÉΓòÉ
  1148.  
  1149. When sending a file to a remote computer you must select the same protocol that 
  1150. the remote computer will use to receive the file. After selecting the proper 
  1151. protocol, a file open dialog box will have you select the file you wish to 
  1152. send. You can either double click on the file name or select the file and click 
  1153. on the OK button. If you have Auto_CISB selected in the protocol options area, 
  1154. Pmcomm will automatically start the transfer as soon as the remote computer 
  1155. sends the transfer request. With a CISB transfer the filename is specified on 
  1156. the host and the file open dialog box is not displayed. 
  1157.  
  1158. You may also use the drag and drop feature of Pmcomm. When files are dragged 
  1159. from a drive object and dropped onto Pmcomm, the transfer protocol that is 
  1160. listed for that phone number will be invoked and the file(s) will be sent to 
  1161. the remote computer. If you have Monitor_DCD selected then drag options will 
  1162. not be allowed until connected with another computer. 
  1163.  
  1164. To drag files from a drive object, select a file (or files) and then click on 
  1165. the selected file(s) with the LEFT mouse button and then press and hold the 
  1166. button RIGHT mouse button down. Once you have begun to drag the files with the 
  1167. mouse the mouse pointer will change shape. If the mouse pointer is over a 
  1168. program that does not accept drag and drop the pointer will again change shape. 
  1169. When the mouse pointer is over any part of Pmcomm you can release the right 
  1170. mouse button. This will drop the files onto Pmcomm and Pmcomm will send them. 
  1171. This will even work if Pmcomm is an icon. 
  1172.  
  1173. To change the protocol for the current phone number, select upload from the 
  1174. menu and then select the protocol you want (make sure that the save to dialing 
  1175. directory is selected). After pressing the OK button the file open dialog box 
  1176. will be displayed. Just press cancel and you can now use the drag and drop with 
  1177. the new protocol. 
  1178.  
  1179. If a file is dropped onto Pmcomm before it has been invoked, while it is an 
  1180. icon in a folder or on the Desktop, this file will be used as a setup file, and 
  1181. Pmcomm will be invoked. 
  1182.  
  1183.  
  1184. ΓòÉΓòÉΓòÉ 7.3.1. Xmodem Checksum ΓòÉΓòÉΓòÉ
  1185.  
  1186. Xmodem Checksum is one of the oldest protocols around and some people still use 
  1187. it exclusively. It is a moderately fast protocol that has fairly good error 
  1188. detection. 
  1189.  
  1190.  
  1191. ΓòÉΓòÉΓòÉ 7.3.2. Xmodem CRC ΓòÉΓòÉΓòÉ
  1192.  
  1193. Xmodem CRC and Xmodem_Checksum are similar except CRC has better error 
  1194. detection than Checksum. Almost anywhere you call will offer at least one of 
  1195. these protocols. 
  1196.  
  1197.  
  1198. ΓòÉΓòÉΓòÉ 7.3.3. 1k-Xmodem ΓòÉΓòÉΓòÉ
  1199.  
  1200. 1k-Xmodem uses the same error detection as Xmodem_CRC, but uses 1024 byte 
  1201. blocks instead of 128 byte blocks. This allows for greater throughput (higher 
  1202. characters per second) with roughly the same error detection. 
  1203.  
  1204.  
  1205. ΓòÉΓòÉΓòÉ 7.3.4. Ymodem ΓòÉΓòÉΓòÉ
  1206.  
  1207. Ymodem uses the same error detection and block size as 1k-Xmodem but is a batch 
  1208. protocol. This means that in the first block the file size and name are sent. 
  1209. This keeps the receiver from having to type in the filename. It also allows you 
  1210. to send more than one file without having to start the transfer again. This 
  1211. protocol is second to Zmodem, in our opinion, when using non-error correcting 
  1212. modems. 
  1213.  
  1214.  
  1215. ΓòÉΓòÉΓòÉ 7.3.5. Ymodem-g ΓòÉΓòÉΓòÉ
  1216.  
  1217. Ymodem-g is identical to Ymodem except it has no error correction. If an error 
  1218. is detected the transfer aborts. Because of this Ymodem-g should only be used 
  1219. with error correcting modems. Pmcomm will allow you to use this protocol 
  1220. anytime, but again care should be taken on what hardware it is used with. With 
  1221. the proper hardware Ymodem-g has the fastest cps (characters per second). 
  1222.  
  1223.  
  1224. ΓòÉΓòÉΓòÉ 7.3.6. Zmodem ΓòÉΓòÉΓòÉ
  1225.  
  1226. Zmodem is almost as fast as Ymodem-g, however Zmodem does support error 
  1227. correction and file recovery. It only takes one aborted Ymodem-g transfer to 
  1228. lose all it's advantages. Zmodem has many advantages as far as the user is 
  1229. concerned. It is probably the easiest protocol to use. If using Pmcomm with the 
  1230. Auto-Zmodem download feature, the whole download is done automatically from the 
  1231. Pmcomm end. You have to select the file from the sender (BBS etc..) and once 
  1232. the sender starts sending, the transfer will begin on Pmcomm. It may take a 
  1233. moment before the sender sends the first sequence, so wait a moment. Some of 
  1234. the advanced features of Zmodem are listed below. Zmodem supports: 
  1235.  
  1236.  1. CRC-32 and CRC-16. The additional error detection of 32 bit CRC is 
  1237.     supported. 
  1238.  
  1239.  2. File recovery. If a Zmodem download is aborted for any reason the transfer 
  1240.     will resume at the point where it was  aborted. You don't have to start the 
  1241.     whole transfer over. 
  1242.  
  1243.  3. Auto-Download. When a Zmodem sending program starts up it first sends a rz 
  1244.     and then a carriage return. Pmcomm will monitor for the startup sequence 
  1245.     and automatically start the Zmodem download. Great care has been taken to 
  1246.     make sure that it really is a Zmodem transfer and not someone typing it in 
  1247.     at the keyboard (at either end). This feature makes downloading with Zmodem 
  1248.     much faster and much easier. 
  1249.  
  1250.  4. Variable length headers. This reduces the amount of overhead that accrues 
  1251.     with sending Zmodem headers. This is only used if supported by both the 
  1252.     sender and receiver. 
  1253.  
  1254.  5. Escape Control Characters. This option is useful if you are connecting via 
  1255.     a media that processes control characters. 
  1256.  
  1257.  6. Variable length receive buffers. Some Zmodem receive programs have problems 
  1258.     with writing to the disk and receiving from the communication port at the 
  1259.     same time. If necessary Zmodem will wait for an ACK from the receiver after 
  1260.     the specified buffer size has been sent. This will only be done if it is 
  1261.     requested by the receiver. 
  1262.  
  1263.  7. Retains original file size. Some people say that because Zmodem headers are 
  1264.     larger that there is two much overhead. This really isn't the case. For 
  1265.     example if comparing Zmodem to Ymodem-g (full flow Ymodem), Ymodem-g has 
  1266.     less overhead with each packet. However Ymodem-g rounds the file size up to 
  1267.     an even 128 byte size. In some cases it is even rounded up 1024 bytes. This 
  1268.     is done because Ymodem (g or otherwise) only supports two block sizes, 128 
  1269.     and 1024 (the block size is actually 133 and 1029 to allow for the block 
  1270.     header, STX or SOH, and the CRC value), so it has to send full blocks. 
  1271.     However, Zmodem uses variable block sizes. The block sizes adjust from 32 
  1272.     bytes to 1024 bytes. If telephone line quality is poor smaller blocks are 
  1273.     sent so that if an error does occur less data will have to be resent. As 
  1274.     the line quality improves the size of the blocks will be increased. The 
  1275.     starting block size is variable depending on the connected baud rate. 
  1276.  
  1277.  8. Error recovery. Because Zmodem can resend from any place in the file, 
  1278.     aborted transfers are rare. 
  1279.  
  1280. By reading this you can tell our favorite protocol is Zmodem. Once you have 
  1281. used Zmodem it's hard to get used to using other protocols. 
  1282.  
  1283.  
  1284. ΓòÉΓòÉΓòÉ 7.3.7. ASCII ΓòÉΓòÉΓòÉ
  1285.  
  1286. The ASCII protocol can be used to transfer text files. There is no error 
  1287. detection or correction available with this protocol. It is recommended that 
  1288. one of the other protocols be used, even with text files. 
  1289.  
  1290.  
  1291. ΓòÉΓòÉΓòÉ 7.3.8. CISB ΓòÉΓòÉΓòÉ
  1292.  
  1293. The CIS B protocol can be used to transfer files to and from CompuServe. 
  1294. CompuServe B, B+ and Quick B are supported. Quick B is the fastest variant of 
  1295. the B protocol and is automatically selected when it is supported on the host 
  1296. computer. The CIS B protocol is an automatic protocol where the host initiates 
  1297. the transfer and Pmcomm will automatically go into the send or receive mode. If 
  1298. you are sending a file, the file must exist in the download directory of 
  1299. Pmcomm. If Pmcomm is unable to find the file then the transfer will abort. 
  1300. Pmcomm can be configured to ignore the CIS B protocol by deselecting the 
  1301. Automatic CIS B option in the Protocol Option Dialog. Pmcomm may run slightly 
  1302. faster in terminal mode without this selection. Under most systems the 
  1303. difference will not be detectable. 
  1304.  
  1305. Another option for CIS B is for file recovery. What this option will do is if 
  1306. you started a download and aborted the transfer you can then restart the 
  1307. transfer and CIS B will resume from the place where it was aborted. This can be 
  1308. very handy in poor phone line conditions. The packet size for CIS B is adjusted 
  1309. by the connecting baud rate. For example, if you are connected to CompuServe at 
  1310. 2400 baud the packet size will be 1024 bytes. If you connect at 1200 baud the 
  1311. packet size will be 512 bytes. This allows for speedy error recovery in case a 
  1312. error occurs because of phone line noise. Downloads will automatically be 
  1313. placed in the Pmcomm download directory and the download directory will 
  1314. automatically searched for any uploaded files. If you specify a path with the 
  1315. filename when CompuServe asks for a filename for your computer, then this path 
  1316. will be used. CIS B should be the protocol used when transferring files to and 
  1317. from CompuServe. 
  1318.  
  1319. CAUTION:
  1320. If you are having throughput problems with the CISB transfer protocol, due to 
  1321. multiple errors, you should switch to a different com driver. The com driver 
  1322. that is currently being shipped with OS/2 has problems handling the CISB 
  1323. transfer protocol at higher baud rates. There is a com driver on our support 
  1324. BBS called SIO*.zip (the asterick is the lastest version, search on that file 
  1325. name), that corrects the IBM com driver problem. You can also select Ymodem 
  1326. from CompuServe, and then Ymodem-g from Pmcomm, and you will receive the file 
  1327. at a high baud rate. This should only be attempted if you have an error 
  1328. correction connection. 
  1329.  
  1330.  
  1331. ΓòÉΓòÉΓòÉ 7.3.9. Kermit ΓòÉΓòÉΓòÉ
  1332.  
  1333. Kermit is the slowest protocol offered here and should only be used when no 
  1334. other protocol is available. Kermit does have advantages and it is offered on 
  1335. many minicomputers as well as mainframes. Kermit will also transfer binary 
  1336. files when connected at 7,E,1. The maximum packet size that is allowed is 94 
  1337. bytes which is one of the reasons that makes Kermit slow. There is a variation 
  1338. of Kermit that allows larger packet size, but it is not implemented in Pmcomm. 
  1339. Kermit allows batch transfers, both in sending and receiving, and will attempt 
  1340. to preserve the file names. If Pmcomm gets an error when trying to create the 
  1341. file name received from the sender it will convert it to a "8.3" type of file 
  1342. name. Kermit allows variable packet sizes so the original file size is 
  1343. maintained. 
  1344.  
  1345. Pmcomm allows you to change the "End of Line" character (also called end of 
  1346. packet), the "Quoting character" (sent before control codes), the "pad 
  1347. character", and the number of pad characters you want. You can also tell Pmcomm 
  1348. to force an 8 bit transfer even if it is on at 7,E,1. This comes in handy if 
  1349. you are downloading files from CompuServe. If this option is not selected and 
  1350. you are on at 7 data bits, Pmcomm will use what is called the 7 bit quoting. 
  1351. The 7 bit quote character that Pmcomm uses is a &. 
  1352.  
  1353.  
  1354. ΓòÉΓòÉΓòÉ 7.3.10. IND$FILE ΓòÉΓòÉΓòÉ
  1355.  
  1356. IND$FILE currently is only supported under VT100 and VT220 terminal emulations 
  1357. through a 3708 protocol converter. Because of problems with character 
  1358. conversion through the protocol converter error detection is not currently 
  1359. available. Because of this, files received using IND$FILE maybe CORRUPTED! Use 
  1360. this protocol at your own risk! IND$FILE is not a very efficient protocol 
  1361. because every byte that is transferred must be checked to see if it will pass 
  1362. through a 7 bit data stream and escaped if it will not. This can greatly reduce 
  1363. the amount of data that can be sent in each packet. 
  1364.  
  1365.  
  1366. ΓòÉΓòÉΓòÉ <hidden> PC File Name ΓòÉΓòÉΓòÉ
  1367.  
  1368. This is the file name which will be used on the receiver. If a full path and 
  1369. file name are used the file will reside at that address. If just a file name is 
  1370. specified the file will be stored in the upload directory set in the Paths menu 
  1371. option. This file name must be specified or the transfer will not work. 
  1372.  
  1373.  
  1374. ΓòÉΓòÉΓòÉ <hidden> Host File Name ΓòÉΓòÉΓòÉ
  1375.  
  1376. This is the file name as it resides on the Host. If this filename is not 
  1377. specified, Pmcomm will default to the PC File Name as the Host File Name. 
  1378.  
  1379.  
  1380. ΓòÉΓòÉΓòÉ <hidden> Binary ΓòÉΓòÉΓòÉ
  1381.  
  1382. This option will tell the Host to send the file as a Binary file. 
  1383.  
  1384.  
  1385. ΓòÉΓòÉΓòÉ <hidden> Ascii ΓòÉΓòÉΓòÉ
  1386.  
  1387. This option will tell the Host to send the file as an Ascii file. 
  1388.  
  1389.  
  1390. ΓòÉΓòÉΓòÉ <hidden> CRLF ΓòÉΓòÉΓòÉ
  1391.  
  1392. This option will tell the Host to send a "carriage return line feed" after each 
  1393. record. This option will be needed on most Ascii file transfers while rarely 
  1394. needed with a Binary file transfer. 
  1395.  
  1396.  
  1397. ΓòÉΓòÉΓòÉ 7.3.11. Save to Dial Directory ΓòÉΓòÉΓòÉ
  1398.  
  1399. When this option is selected the file transfer protocol that is selected will 
  1400. be saved into the dialing directory for this number. The next time a file 
  1401. transfer is used when connected to this number this same protocol will be 
  1402. selected and all the user will have to do is press the OK button. If you do not 
  1403. want this protocol save then deselect this option. 
  1404.  
  1405.  
  1406. ΓòÉΓòÉΓòÉ 8. FTP ΓòÉΓòÉΓòÉ
  1407.  
  1408. The FTP command allows users to send/receive files to/from FTP servers. IBM's 
  1409. TCP/IP must be installed for this command to function. Once this command has 
  1410. been selected a dialog box will prompt the user, for necessary information to 
  1411. complete the file transfer. There is also a ping button that will attempt to 
  1412. ping the remote host. This allows the user to make sure that the remote host is 
  1413. up and able to answer requests. 
  1414.  
  1415. CAUTION:
  1416. Once an FTP transfer has been started, it can not be canceled, except by 
  1417. re-booting the computer. If Pmcomm is closed, it may take sometime before the 
  1418. transfer stops, and Pmcomm actually closes. If Pmcomm is closed during an FTP 
  1419. transfer the file will not completely transfer. 
  1420.  
  1421.  
  1422. ΓòÉΓòÉΓòÉ 8.1. FTP Host Name ΓòÉΓòÉΓòÉ
  1423.  
  1424. This field is for the remote host name that you wish to connect to. You can 
  1425. enter either the IP address or the name. For example to connect to the FTP site 
  1426. here, at Multi-Net Communications, you would enter ftp.multinet.com. 
  1427.  
  1428.  
  1429. ΓòÉΓòÉΓòÉ 8.2. FTP User Name ΓòÉΓòÉΓòÉ
  1430.  
  1431. This field is for the user name that you wish to use when connecting to the 
  1432. remote host. For example to log onto our anonymous FTP site you would enter the 
  1433. word anonymous as the user name. 
  1434.  
  1435.  
  1436. ΓòÉΓòÉΓòÉ 8.3. FTP Password ΓòÉΓòÉΓòÉ
  1437.  
  1438. The password required by the host system for the user name you are using should 
  1439. be entered in this field. Most anonymous systems require that the user enter 
  1440. there mail id, such as username@multinet.com. 
  1441.  
  1442.  
  1443. ΓòÉΓòÉΓòÉ 8.4. FTP Account ΓòÉΓòÉΓòÉ
  1444.  
  1445. Most host FTP servers do not require an account, but if the server you are 
  1446. connecting to does, you would enter it is this field. 
  1447.  
  1448.  
  1449. ΓòÉΓòÉΓòÉ 8.5. FTP Local File Name ΓòÉΓòÉΓòÉ
  1450.  
  1451. The local file name will be use for both the put and the get transfer 
  1452. direction. For the put direction, the local file name is the one that will be 
  1453. sent to the FTP server. For the get direction, the local file name will be used 
  1454. when creating the received file. The file name must include the full drive and 
  1455. path name. 
  1456.  
  1457.  
  1458. ΓòÉΓòÉΓòÉ 8.6. FTP Remote File Name ΓòÉΓòÉΓòÉ
  1459.  
  1460. The remote file name, is that name of the file that will be retrieved from the 
  1461. remote FTP server (get) or created on the remote FTP server with the put 
  1462. direction. 
  1463.  
  1464.  
  1465. ΓòÉΓòÉΓòÉ 8.7. FTP Write Options ΓòÉΓòÉΓòÉ
  1466.  
  1467. The write options are only in effect with the get direction. With the append 
  1468. mode the incoming file will be added to the end of the file if it already 
  1469. exists. With the overwrite mode the file will be deleted before any new 
  1470. information is received. 
  1471.  
  1472.  
  1473. ΓòÉΓòÉΓòÉ 8.8. FTP Transfer Options ΓòÉΓòÉΓòÉ
  1474.  
  1475. There are two transfer options, Binary, and Ascii. For text file the Ascii 
  1476. option can be used, and the binary option should be used for all other file 
  1477. types. 
  1478.  
  1479.  
  1480. ΓòÉΓòÉΓòÉ 8.9. FTP Transfer Direction ΓòÉΓòÉΓòÉ
  1481.  
  1482. The FTP in Pmcomm allows you to both send and receive files. The get direction 
  1483. transfers files from the remote FTP server to your computer, and the put 
  1484. direction sends a file from your computer to the remote FTP server. 
  1485.  
  1486.  
  1487. ΓòÉΓòÉΓòÉ 8.10. FTP Ping Host ΓòÉΓòÉΓòÉ
  1488.  
  1489. The ping host button, sends a message to the remote host and waits for a 
  1490. response, from the remote host. Pmcomm then displays a message tell the user 
  1491. how long it took to receive the response, or that the host did not respond. 
  1492. Your TCP/IP link must be active or this command may hang the computer. 
  1493.  
  1494.  
  1495. ΓòÉΓòÉΓòÉ 9. Hangup ΓòÉΓòÉΓòÉ
  1496.  
  1497. Hang-up sends the hang-up command string (see the Option menu) and optionally 
  1498. drops the DTR line to the modem. Dropping DTR is the most effective if your 
  1499. modem is setup to hang-up when DTR is dropped. Using a hang-up string is also 
  1500. slower because Pmcomm has to get the modem into the command state before 
  1501. sending the hang-up string. If you have DTR on and delete the hang-up string 
  1502. the hang-up will be much faster. The default string is : +++~~~~ATH^M. The +++ 
  1503. is the default modem attention string, which puts the modem into the command 
  1504. state. The ~~~~ will make Pmcomm pause 2 seconds (.5 seconds per ~) and then 
  1505. the ATH will force the modem to go on-hook (hangup). The ^M sends a carriage 
  1506. return line feed combination. 
  1507.  
  1508.  
  1509. ΓòÉΓòÉΓòÉ 10. Options ΓòÉΓòÉΓòÉ
  1510.  
  1511. Option allows you to tailor Pmcomm to your own tastes. The areas in option are: 
  1512. Port, Dial_Setup, Modem, Protocols, Paths, Prompts, Macros_Setup, KeyMap, 
  1513. Popup_Menu, Screen, Terminal, Multimedia, and Chat. The setup is not 
  1514. automatically saved. This allows you to change things temporally without 
  1515. changing your default setup file. If you do want to make the  changes permanent 
  1516. be sure to save the setup file. To save the current setup file, use the 
  1517. Save_setup command under the File menu option. 
  1518.  
  1519.  
  1520. ΓòÉΓòÉΓòÉ 10.1. Port ΓòÉΓòÉΓòÉ
  1521.  
  1522. The device name should be a valid communication device name. Some third party 
  1523. device drivers allow you to use names other then COM1, COM2, etc., so Pmcomm 
  1524. does not limit you to these names. Hardware flow control and DTR should be on 
  1525. for most modems. 
  1526.  
  1527.  
  1528. ΓòÉΓòÉΓòÉ 10.1.1. Device Open Error Retries ΓòÉΓòÉΓòÉ
  1529.  
  1530. This is the number of attempts Pmcomm will try to open a device. After the 
  1531. specified number of attempts Pmcomm will exit. If 0 is entered, Pmcomm will not 
  1532. retry the device. This option is generally used to access a shared 
  1533. communication port (i.e. modem pool). 
  1534.  
  1535.  
  1536. ΓòÉΓòÉΓòÉ 10.1.2. Seconds Between Retries ΓòÉΓòÉΓòÉ
  1537.  
  1538. This is the number of seconds Pmcomm will wait before retrying to open a 
  1539. device. 
  1540.  
  1541.  
  1542. ΓòÉΓòÉΓòÉ 10.1.3. Device Name ΓòÉΓòÉΓòÉ
  1543.  
  1544. The device name should be a valid communication device name. Some third party 
  1545. device drivers allow you to use, and in some cases require that you use, names 
  1546. other then COM1, COM2, etc., so Pmcomm does not limit you to these names. If 
  1547. you are using Pmcomm across a LAN then normally there will be an Alias name for 
  1548. the communication port you are using on the server. See your LAN administrator 
  1549. for the Alias name(s) that you should use to access the modem(s). If you get a 
  1550. device open error when trying to open a com port, you can change the com port 
  1551. by just typing in a new com port name. For example if you had COM1 as the 
  1552. device name, and that device is used by your mouse, you will get a dialog box 
  1553. that will allow you to change the name by just typing in the new name. To see 
  1554. if a device is valid, you can go to an OS/2 prompt and type in mode COM1 (where 
  1555. COM1 is the device you want to check). If you get an error from OS/2 about the 
  1556. device not being available, the one of the follow problems exists: 1. Device 
  1557. already in use. 2. The com.sys driver is not installed in your config.sys (not 
  1558. needed if use a com port on a server). 3. OS/2 could not install that com port 
  1559. when you booted your computer. 
  1560.  
  1561. If this last problem exists then you should contact IBM OS/2 defect support for 
  1562. help getting your com port to install. 
  1563.  
  1564.  
  1565. ΓòÉΓòÉΓòÉ 10.1.4. Hardware Flow Control ΓòÉΓòÉΓòÉ
  1566.  
  1567. Hardware Flow Control is generally the most reliable method of flow control. 
  1568. There are two basic times when flow control is needed. First, if Pmcomm is 
  1569. sending information to the modem faster than the modem is able to send the 
  1570. information flow control is needed. If flow control is not enabled then a 
  1571. transmission error will occur. Second if the modem is sending information to 
  1572. Pmcomm faster then Pmcomm can receive it, then Pmcomm will try to tell the 
  1573. modem to stop sending the information. This can occur when an excessive amount 
  1574. of processing is being performed on the computer. Hardware Flow Control uses 
  1575. two modem signals to control the flow of information. For send flow control the 
  1576. CTS modem line is used. For receive flow control the RTS modem line is used. If 
  1577. your modem supports these flow control signals, then setup your modem and 
  1578. Pmcomm for Hardware Flow Control. 
  1579.  
  1580.  
  1581. ΓòÉΓòÉΓòÉ 10.1.5. XON/XOFF Flow Control ΓòÉΓòÉΓòÉ
  1582.  
  1583. Xon/Xoff Flow Control should only be used when Hardware_Flow_Control is not 
  1584. available and when flow control is necessary. The only two file transfers that 
  1585. will work correctly with Xon/Xoff are ASCII and Zmodem. The only other protocol 
  1586. that should need flow control is Ymodem-g. 
  1587.  
  1588.  
  1589. ΓòÉΓòÉΓòÉ 10.1.6. Use DTR ΓòÉΓòÉΓòÉ
  1590.  
  1591. DTR stands for Data Terminal Ready, which by lowering DTR you can signal the 
  1592. device you are communicating with (usually a modem) that you wish to go off 
  1593. line. If you are connected to a modem you should set the modem up to go on-hook 
  1594. when the modem detects a drop in DTR. The command for a Hayes 2400 baud modem 
  1595. is AT&D2. If this option is selected in Pmcomm, then DTR will be dropped when 
  1596. the hangup command is selected, or after each redial attempt. 
  1597.  
  1598.  
  1599. ΓòÉΓòÉΓòÉ 10.1.7. Monitor DCD ΓòÉΓòÉΓòÉ
  1600.  
  1601. DCD stands for Data Carrier Detect and is pin 8 on an RS-232C cable. When a 
  1602. carrier is detected by the modem, Pmcomm assumes that you are connected to a 
  1603. remote computer. If DCD is not supported by your modem or other hardware, then 
  1604. this option should be turned off. With this option turned on, if no DCD is 
  1605. present then Pmcomm will not Hangup, or go into a file transfer. The drag and 
  1606. drop from the file manager will also be disabled. The command for a Hayes 2400 
  1607. baud modem is AT&C1. This will have the modem track the state of DCD. 
  1608.  
  1609.  
  1610. ΓòÉΓòÉΓòÉ 10.1.8. Default Baud ΓòÉΓòÉΓòÉ
  1611.  
  1612. The default baud is the baud rate that the communication port is set to when 
  1613. Pmcomm is first executed. The baud rate is changed to the value in the dialing 
  1614. directory when a number is dialed. Normally the default baud should be set to 
  1615. the highest baud rate supported by your modem. If you have Pmcomm connected 
  1616. directly to another computer with a NULL modem cable, then you want to set this 
  1617. baud to the same baud rate that the other computer is using. 
  1618.  
  1619.  
  1620. ΓòÉΓòÉΓòÉ 10.1.9. Default Data Bits ΓòÉΓòÉΓòÉ
  1621.  
  1622. This selection allows you to select the number of data bits that will be used 
  1623. when the communications port is initially opened. This option will be 
  1624. overridden with the parameters listed in the dialing directory once you have 
  1625. connected with a remote computer. 
  1626.  
  1627.  
  1628. ΓòÉΓòÉΓòÉ 10.1.10. Default Parity ΓòÉΓòÉΓòÉ
  1629.  
  1630. This selection allows you to select the parity that will be used when the 
  1631. communications port is initially opened. This option will be overridden with 
  1632. the parameters listed in the dialing directory once you have connected with a 
  1633. remote computer. 
  1634.  
  1635.  
  1636. ΓòÉΓòÉΓòÉ 10.1.11. Default Stop Bits ΓòÉΓòÉΓòÉ
  1637.  
  1638. This selection allows you to select the number of stop bits that will be used 
  1639. when the communications port is initially opened. This option will be 
  1640. overridden with the parameters listed in the dialing directory once you have 
  1641. connected with a remote computer. 
  1642.  
  1643.  
  1644. ΓòÉΓòÉΓòÉ 10.1.12. Exit on Hangup ΓòÉΓòÉΓòÉ
  1645.  
  1646. This selection will cause Pmcomm to exit, once you have called a remote 
  1647. computer and then DCD has dropped. You must have monitor dcd selected in order 
  1648. for this command to work. This command is useful if you wish to just call one 
  1649. number and then have Pmcomm exit. 
  1650.  
  1651.  
  1652. ΓòÉΓòÉΓòÉ 10.2. Dial Setup ΓòÉΓòÉΓòÉ
  1653.  
  1654. This allows you to select a dialing_directory from a list box and also lets you 
  1655. setup the prefix and suffix of the number to be dialed. There is a list box 
  1656. that will allow you to select how the dialing directory will be sorted. You can 
  1657. sort the dialing directory by name, number, baud rate, last on, number of times 
  1658. called, download cps, upload cps, dial prefix, and dial suffix. You can also 
  1659. select either ascending or descending order. 
  1660.  
  1661.  
  1662. ΓòÉΓòÉΓòÉ 10.2.1. Queue Dial On Hangup ΓòÉΓòÉΓòÉ
  1663.  
  1664. If this option is selected, Pmcomm will automatically start dialing the 
  1665. selected entries in the dialing directory, once the current connection has 
  1666. disconnected. In order for this option to work, you must have Monitor DCD 
  1667. selected, under Options, Port. This option is useful if you routinely call a 
  1668. number of dialing directory entries at a time. 
  1669.  
  1670.  
  1671. ΓòÉΓòÉΓòÉ 10.2.2. Dial Auto Selected Entries ΓòÉΓòÉΓòÉ
  1672.  
  1673. If the Dial Auto Selected Entries on program Startup is selected then any 
  1674. entries in the dialing directory that are marked as automatically_selected , 
  1675. will automatically be dialed. This option will allow you to automatically dial 
  1676. selected numbers when Pmcomm is first invoked. This can be very useful if you 
  1677. dial the same numbers each time you run Pmcomm. 
  1678.  
  1679.  
  1680. ΓòÉΓòÉΓòÉ 10.2.3. Sort Dialing Directory ΓòÉΓòÉΓòÉ
  1681.  
  1682. The dialing_directory can be sorted by either the name, phone number, baud 
  1683. rate, last time called, number of times called, download characters per second, 
  1684. upload characters per second, dial prefix, or dial suffix. The directory can be 
  1685. sorted in either ascending or descending order. For example you can sort the 
  1686. dialing directory by last time called in descending order, and all the most 
  1687. recently called numbers will be displayed at the top of the dialing directory. 
  1688.  
  1689.  
  1690. ΓòÉΓòÉΓòÉ 10.2.4. Dialing Directory List ΓòÉΓòÉΓòÉ
  1691.  
  1692. A list of the available dialing_directories are displayed in a list box, so 
  1693. that a default directory can be selected. The selected directory will 
  1694. automatically be loaded when Pmcomm is started. You can add additional 
  1695. directories by pressing the add button. 
  1696.  
  1697.  
  1698. ΓòÉΓòÉΓòÉ 10.3. Modem ΓòÉΓòÉΓòÉ
  1699.  
  1700. The initialization string should have the commands in it to enable word result 
  1701. codes, hang-up when DTR is dropped and enable hardware flow control. Not all of 
  1702. these are supported by all modems but use them when possible. Pause before 
  1703. redial is the time Pmcomm waits before trying to redial a number. "Seconds to 
  1704. wait for carrier" is how long Pmcomm will wait for a connection before 
  1705. redialing. 
  1706.  
  1707. By clicking on the configure button you may add new modems to Pmcomm. 
  1708.  
  1709.  
  1710. ΓòÉΓòÉΓòÉ 10.3.1. Modem Name ΓòÉΓòÉΓòÉ
  1711.  
  1712. These are the names of the modems that you have stored in Pmcomm. The 
  1713. initialization string for that particular modem shows in the Modem 
  1714. Initialization String edit field. To add a new modem or change an existing 
  1715. modem, click on the configure button. 
  1716.  
  1717.  
  1718. ΓòÉΓòÉΓòÉ 10.3.2. Modem Initialization String ΓòÉΓòÉΓòÉ
  1719.  
  1720. Initialization string should have the commands in it to enable word result 
  1721. codes, hang-up when DTR is dropped and enable hardware flow control. Not all of 
  1722. these are supported by all modems, but use them when possible. Pmcomm's default 
  1723. modem string is for a Hayes 2400 baud modem. This is the default string: 
  1724.  
  1725. AT&F&D2&C1M0Q0S2=255S10=30X4 
  1726.  
  1727.  
  1728. ΓòÉΓòÉΓòÉ 10.3.3. Modem Pause Before Redial ΓòÉΓòÉΓòÉ
  1729.  
  1730. Pmcomm will pause for the specified number of seconds before attempting to 
  1731. redial a phone number. Some phone systems take a few seconds before you can 
  1732. redial a phone number. The default value is 3 seconds and should work for most 
  1733. phone systems. 
  1734.  
  1735.  
  1736. ΓòÉΓòÉΓòÉ 10.3.4. Modem Dial Timeout ΓòÉΓòÉΓòÉ
  1737.  
  1738. Pmcomm will wait for a Connect or Carrier message from the modem for up to 64 
  1739. seconds. The S7 register of the modem must also be set to a value at least as 
  1740. great as the dial timeout value. This can be done by issuing the following 
  1741. command to the modem: ATS7=30. This would set the modem to timeout after 30 
  1742. seconds. Setting the dial timeout to a value greater then 30 would not be 
  1743. effective because the modem would still timeout after 30 seconds. The default 
  1744. timeout value for Pmcomm is 60 seconds. 
  1745.  
  1746.  
  1747. ΓòÉΓòÉΓòÉ 10.4. Protocols ΓòÉΓòÉΓòÉ
  1748.  
  1749. The options under protocols are: 
  1750.  
  1751. Auto Zmodem Download. 
  1752.  
  1753. Auto Zmodem String. 
  1754.  
  1755. Overwrite Existing Files 
  1756.  
  1757. Rename Duplicate Files 
  1758.  
  1759. Zmodem Resume. 
  1760.  
  1761. Compare File Dates. 
  1762.  
  1763. Ignore File Dates. 
  1764.  
  1765. Zmodem CRC-32. 
  1766.  
  1767. Zmodem CRC-16. 
  1768.  
  1769. Zmodem Variable Headers. 
  1770.  
  1771. Auto CISB Transfer. 
  1772.  
  1773. CISB file recovery. 
  1774.  
  1775. Import File line delay. 
  1776.  
  1777. View GIF during transfer. 
  1778.  
  1779. Force 8 bit transfer. 
  1780.  
  1781. End of line character. 
  1782.  
  1783. Control quote character. 
  1784.  
  1785. Number of pad characters. 
  1786.  
  1787. Pad character. 
  1788.  
  1789. IND$FILE. 
  1790.  
  1791. Auto Zmodem makes Pmcomm check for a Zmodem start sequence. The string that 
  1792. Pmcomm checks for can be changed. This is the Auto Zmodem String. The standard 
  1793. string is an rz followed by a carriage return (to enter a carriage return hold 
  1794. down the ALT key and press 1,3 on the numeric key pad). When this string is 
  1795. received, Pmcomm will automatically start receiving the file. 
  1796.  
  1797. The options to overwrite or rename existing files only are in effect if a 
  1798. Zmodem resume fails. If you have rename selected, and a file exists with that 
  1799. name then Pmcomm will rename the new file with a number for an extension. For 
  1800. example if you have a file called allfiles.txt in your download directory, and 
  1801. you download a file with the same name (without Zmodem resume) the new file 
  1802. will be named allfile1.txt. If allfile1.txt exists then the new file will be 
  1803. called allfile2.txt. 
  1804.  
  1805. Zmodem resume allows Zmodem to resume a file transfer that was previously 
  1806. aborted. The compare and ignore file dates options, determines if Pmcomm will 
  1807. check the date of the file on the disk, to see if it should resume the 
  1808. transfer. These options are only in effect if the Zmodem resume is selected. 
  1809. Some Zmodem systems do not send the date in the Zmodem header. If a resume is 
  1810. required for these systems, then ignore file dates should be selected. 
  1811.  
  1812. CRC-32 has improved error correction but is slightly slower. If CRC-32 is not 
  1813. available Pmcomm will switch to CRC-16. 
  1814.  
  1815. If the Zmodem Variable headers has been selected then Pmcomm will allow for 
  1816. variable length headers. Use this option only if it is supported by the host. 
  1817.  
  1818. Zmodem is only available on commercial versions. 
  1819.  
  1820. Auto CISB is similar to Auto Zmodem except that both uploads and downloads can 
  1821. be started this way. This feature is for the CISB file transfer protocol. CISB 
  1822. file recovery allows CISB to resume a file transfer that was previously 
  1823. aborted. 
  1824.  
  1825. The IND$FILE protocol may also be selected for downloads. 
  1826.  
  1827. CAUTION:
  1828. The IND$FILE file transfer protocol in Pmcomm, currently, does not support any 
  1829. error detection. 
  1830.  
  1831. The View Gif during transfer option, will allow the user to view a GIF file 
  1832. while it is being downloaded. The GIF file viewer can be cancel anytime during 
  1833. the transfer by pressing F3. The GIF file viewer is not available with the 
  1834. IND$FILE or Ascii file transfer protocol. If you have a slow video or computer 
  1835. it is recommended that this option be turned off. The GIF file viewer does not 
  1836. support 24 bit color dithering, to speed up the display of the GIF. Because of 
  1837. this the image may appear differently once it has been downloaded, and viewed 
  1838. using a GIF viewer. 
  1839.  
  1840. The rest are Kermit options and should be made to match your host. 
  1841.  
  1842.  
  1843. ΓòÉΓòÉΓòÉ 10.5. Paths ΓòÉΓòÉΓòÉ
  1844.  
  1845. The working path MUST be set to the path that Pmcomm is installed in. The 
  1846. working path is stored in the os2.ini file. This is done so that the pmcomm.exe 
  1847. file can reside on a server, but yet each requester can have there own 
  1848. setup.dat file. The download path allows you to have the files that you 
  1849. download put into a different directory. The upload path is the path that the 
  1850. fileopen dialog will default to when doing a upload. The script path is where 
  1851. Pmcomm looks for the scripts listed in the dialing directory. The startup 
  1852. script is a script that will be executed each time Pmcomm is started. The 
  1853. default name is startup.scr. 
  1854.  
  1855. The printer device, is the device that you want any printing to be sent to. The 
  1856. default is PRN, but can be changed to other devices, such as LPT1, LPT2. 
  1857.  
  1858. The capture path is where all screen captures are stored. These paths must 
  1859. contain a valid directory. It defaults to the directory that Pmcomm was started 
  1860. from. There is also a call logging option here which when turned on will start 
  1861. call logging as soon as Pmcomm is run. 
  1862.  
  1863.  
  1864. ΓòÉΓòÉΓòÉ 10.6. Prompts ΓòÉΓòÉΓòÉ
  1865.  
  1866. This option allows the user to set Pmcomm up to prompt them when certain 
  1867. conditions occur. 
  1868.  
  1869.  
  1870. ΓòÉΓòÉΓòÉ 10.6.1. Hangup Prompt ΓòÉΓòÉΓòÉ
  1871.  
  1872. When this prompt is turned on, the user will be prompted to verify that they 
  1873. wish to hangup the phone. If monitor DCD is also turned on, then the user will 
  1874. only be prompted if DCD is not present. 
  1875.  
  1876.  
  1877. ΓòÉΓòÉΓòÉ 10.6.2. Save Screen Size ΓòÉΓòÉΓòÉ
  1878.  
  1879. By default Pmcomm will prompt the user whenever the screen size has changed, 
  1880. when exiting Pmcomm. By turning this option off, the user will not be prompted 
  1881. and the new screen size will not be saved. If the Pmcomm setup file is saved 
  1882. then the screen size will also be saved. 
  1883.  
  1884.  
  1885. ΓòÉΓòÉΓòÉ 10.6.3. Save Setup Prompt ΓòÉΓòÉΓòÉ
  1886.  
  1887. If the Pmcomm setup has been changed, Pmcomm will prompt the user, asking if 
  1888. they would like to save the setup file. By turning off this option, the user 
  1889. will not be prompted and the setup file will not be saved. 
  1890.  
  1891.  
  1892. ΓòÉΓòÉΓòÉ 10.6.4. Capture Prompt ΓòÉΓòÉΓòÉ
  1893.  
  1894. Normally if capture is turned on in Pmcomm and the file already exists, then 
  1895. the user will be informed, and asked if they wish to overwrite the file. With 
  1896. this option turned off, the user will not be prompted and the file will be 
  1897. overwritten. 
  1898.  
  1899.  
  1900. ΓòÉΓòÉΓòÉ 10.7. Macros Setup ΓòÉΓòÉΓòÉ
  1901.  
  1902. There are 10 user definable keyboard macros. These can be invoked by holding 
  1903. down the Alt key and pressing 1-0 or by clicking on the appropriate button on 
  1904. the Button Bar. Use this option to setup your macros. 
  1905.  
  1906.  
  1907. ΓòÉΓòÉΓòÉ 10.7.1. Macro Command ΓòÉΓòÉΓòÉ
  1908.  
  1909. Macros can be implemented by using combinations of the following commands. 
  1910.  
  1911. Use ^M to send a carriage return. When the macro is invoked it will send the 
  1912. string that you have defined to the modem. Once you have setup the macro 
  1913. string, it can also be selected from the main menu using a mouse. Other special 
  1914. characters are: 
  1915.  
  1916. ^H = tab character. 
  1917.  
  1918. ^J = carriage return without a line feed. 
  1919.  
  1920. ^L = form feed. 
  1921.  
  1922. ^[ = escape character (Ascii 27) 
  1923.  
  1924. ^C = send the Ctrl-C character (Ascii 3) 
  1925.  
  1926. ^K = XON character 
  1927.  
  1928. ^S = XOFF character 
  1929.  
  1930. ~  = sleep for half a second 
  1931.  
  1932. You can also send any other special character by holding down the Alt key and 
  1933. typing in the ASCII number on the numeric key pad. For example, if you want to 
  1934. enter the escape character into a macro you could hold down the Alt key and 
  1935. then press the two and the seven on the numeric key pad (while still holding 
  1936. down the Alt key). When you then release the Alt key the escape character would 
  1937. be inserted into the macro. Scripts can be executed from macros by using the 
  1938. shell command. An example of this would be: 
  1939.  
  1940. shell("c:\pmcomm\plane.cmd"); 
  1941.  
  1942. This would execute the REXX script called plane.cmd. This allows you a quick 
  1943. and easy way to execute often used scripts. 
  1944.  
  1945. The information in a memo field (in the dialing directory), for the number 
  1946. connected, can also be sent by entering the word memo in a macro. This would 
  1947. allow a user to send information (such as a password) to the remote computer. 
  1948. By doing this it allows a user to use the same macro key to send different 
  1949. passwords, for each dialing directory entry. 
  1950.  
  1951. Multimedia files can be played from a macro as well, with the play_wave 
  1952. command. The play_wave command will play any file that is supported by OS/2. 
  1953. This includes wav, mid, and avi file formats. The syntax for this command is : 
  1954.  
  1955. play_wave("c:\mmos2\sounds\bach.mid"); 
  1956.  
  1957.  
  1958. ΓòÉΓòÉΓòÉ 10.7.2. Macro Name ΓòÉΓòÉΓòÉ
  1959.  
  1960. Enter the name of your macro in this field. We suggest using names that will be 
  1961. meaningful to you at a later date. 
  1962.  
  1963.  
  1964. ΓòÉΓòÉΓòÉ 10.8. Keymap ΓòÉΓòÉΓòÉ
  1965.  
  1966. The Key Map function of Pmcomm allow you to re-map the keys on the board to 
  1967. different functions. The name of the current key map will be displayed in the 
  1968. title bar of the Key Map dialog box. Different default key maps can be assigned 
  1969. to each terminal emulation. Key maps can also be selected for each dialing 
  1970. entry in the dialing directory, and this dialing entry will be the one used 
  1971. once connected to the remote computer. This key map will still be in effect 
  1972. until the next number is dialed, even after being disconnected from the remote 
  1973. computer. 
  1974.  
  1975. Keys can be re-mapped to send different characters, for example you could 
  1976. re-map the z key to send a Z, or any other character. 
  1977.  
  1978. Keys can also send strings instead of single characters. The same rules applies 
  1979. to the strings in key mapping as it does to the macro commands (see Macro 
  1980. Command for more information). 
  1981.  
  1982. Keys can be re-mapped to perform any of the Pmcomm menu commands, or OS/2 
  1983. system menu commands (see Key Command for more information). 
  1984.  
  1985. Combination keys can also be re-mapped. An example is if you wanted to re-map 
  1986. the ^P key ( sent by holding down the Ctrl button on the key board and then 
  1987. pressing the P key). To re-map this key you would select the P button (on the 
  1988. Key Map dialog box), and the Control check box. 
  1989.  
  1990. Note:  The alpha numeric keys (a-z, 1-0, etc) are Caps Lock sensitive. For 
  1991. example if you want re-map the ^P key you must have the Caps check box selected 
  1992. in the Key Map dialog box. If you want to re-map the ^p key then the Caps check 
  1993. box would not be selected. Also, ^P with the Caps check box selected, is not 
  1994. the same as ^P and the Shift check box selected. Selecting the Shift check box, 
  1995. means that you will be holding down the shift key when you press the other key, 
  1996. or keys. The keys on the numeric key pad are sensitive to the state of the Num 
  1997. Lock, in much the same way. This allows you to define both the 1, and the End 
  1998. keys (for example) on the numeric key pad. 
  1999.  
  2000. You can also use multiple combinations, such as Control, Alt, P. Normally the 
  2001. biggest confusion when using the key map is that you can define so many 
  2002. combinations. Make sure that you do define all the combinations that you are 
  2003. going to use (ie. caps lock on, caps lock off, etc). 
  2004.  
  2005. The Shift check box would be selected when you plan on holding down the shift 
  2006. key when press the other key. The same follow for the Control and Alt check 
  2007. boxes. You can also combine these, for example you could re-map a key that you 
  2008. want to have the Control and Shift key pressed. 
  2009.  
  2010. Note:  The Lone Key check box is a special case, and can not be used in most 
  2011. cases. The only time that it can be used is in conjuction with the Shift, Ctrl, 
  2012. and Alt keys on your keyboard, when you wish to re-map just those keys. If one 
  2013. of these keys are pressed and released without another key being pressed then 
  2014. Pmcomm will check to see if one of these keys have been re-mapped with the Lone 
  2015. key option. 
  2016.  
  2017. By selecting the Lone Key check box you can assign a map to the shift, ctrl, or 
  2018. alt, keys and not effect there operation when they are used with other keys. 
  2019.  
  2020.  
  2021. ΓòÉΓòÉΓòÉ 10.8.1. Key Command ΓòÉΓòÉΓòÉ
  2022.  
  2023. There are four types of commands: 
  2024.  
  2025. Character. 
  2026.  
  2027. String. 
  2028.  
  2029. Pmcomm menu. 
  2030.  
  2031. OS/2 system menu. 
  2032.  
  2033. Characters are sent just by typing the character you want to send in the 
  2034. Current Key Assignment combination box in the Key Map dialog box. Single 
  2035. characters are not parsed in anyway, but just sent directly to the com port. 
  2036.  
  2037. Strings are series of characters that you type into the Key Map dialog box, and 
  2038. are parsed just as Macros are (see Macro Command for more information). 
  2039.  
  2040. Pmcomm menu commands are any of the commands that you can execute from the 
  2041. Pmcomm menu. These commands can be selected from the Key Assignment combination 
  2042. box. They are as follows: 
  2043.  
  2044. <HELP> 
  2045.  
  2046. <DIAL> 
  2047.  
  2048. <QUEUE DIAL> 
  2049.  
  2050. <EXIT> 
  2051.  
  2052. <KEY MAP> 
  2053.  
  2054. <SCROLL BUFFER> 
  2055.  
  2056. <COM ERROR> 
  2057.  
  2058. <CHAT> 
  2059.  
  2060. <ABOUT> 
  2061.  
  2062. <DOWNLOAD> 
  2063.  
  2064. <UPLOAD> 
  2065.  
  2066. <HANGUP> 
  2067.  
  2068. <SETUP PORT> 
  2069.  
  2070. <SETUP MODEM> 
  2071.  
  2072. <SETUP PROTOCOL> 
  2073.  
  2074. <SETUP PATHS> 
  2075.  
  2076. <SETUP STATUS> 
  2077.  
  2078. <SETUP SCREEN> 
  2079.  
  2080. <SETUP TERMINAL> 
  2081.  
  2082. <SETUP MACROS> 
  2083.  
  2084. <SETUP DIAL> 
  2085.  
  2086. <SAVE SETUP> 
  2087.  
  2088. <SEND BREAK> 
  2089.  
  2090. <INIT MODEM> 
  2091.  
  2092. <CANCEL SCRIPT> 
  2093.  
  2094. <START SCRIPT> 
  2095.  
  2096. <START SCRIPT GEN> 
  2097.  
  2098. <CANCEL SCRIPT GEN> 
  2099.  
  2100. <SHOW SCRIPT DIALOG> 
  2101.  
  2102. <START CAPTURE> 
  2103.  
  2104. <CANCEL CAPTURE> 
  2105.  
  2106. <CLIPBOARD PASTE> 
  2107.  
  2108. <CLIPBOARD COPY> 
  2109.  
  2110. <CLIPBOARD APPEND> 
  2111.  
  2112. <PRINT SCREEN> 
  2113.  
  2114. <PRINT SCREEN BUFFER> 
  2115.  
  2116. <PRINT SELECTED> 
  2117.  
  2118. <START CONTINUOUS PRINTING> 
  2119.  
  2120. <CANCEL CONTINUOUS PRINTING> 
  2121.  
  2122. <FILE IMPORT> 
  2123.  
  2124. <START LOGGING> 
  2125.  
  2126. <CANCEL LOGGING> 
  2127.  
  2128. <CLEAR SCREEN> 
  2129.  
  2130. <SEND MACRO 1> 
  2131.  
  2132. <SEND MACRO 2> 
  2133.  
  2134. <SEND MACRO 3> 
  2135.  
  2136. <SEND MACRO 4> 
  2137.  
  2138. <SEND MACRO 5> 
  2139.  
  2140. <SEND MACRO 6> 
  2141.  
  2142. <SEND MACRO 7> 
  2143.  
  2144. <SEND MACRO 8> 
  2145.  
  2146. <SEND MACRO 9> 
  2147.  
  2148. <SEND MACRO 10> 
  2149.  
  2150. OS/2 system commands are commands that OS/2 processes. These commands can also 
  2151. be selected from the Key Assignment combination box. They are as follows: 
  2152.  
  2153. <SC_CLOSE> 
  2154.  
  2155. <SC_MOVE> 
  2156.  
  2157. <SC_MINIMIZE> 
  2158.  
  2159. <SC_MAXIMIZE> 
  2160.  
  2161. <SC_SIZE> 
  2162.  
  2163. <SC_NEXT> 
  2164.  
  2165. <SC_APPMENU> 
  2166.  
  2167. <SC_SYSMENU> 
  2168.  
  2169. <SC_RESTORE> 
  2170.  
  2171. <SC_TASKMANAGER> 
  2172.  
  2173. <SC_HELPKEYS> 
  2174.  
  2175. <SC_HELPINDEX> 
  2176.  
  2177. <SC_HELPEXTENDED> 
  2178.  
  2179. <SC_HIDE> 
  2180.  
  2181. There are three variables that can also be used to send special characters. 
  2182. They are: 
  2183.  
  2184. <CSI> 
  2185.  
  2186. <SS3> 
  2187.  
  2188. <ESC> 
  2189.  
  2190. The < and > must be used, and they are case sensitive. These variables are very 
  2191. useful when using the VT100 and VT220 terminal emulations. The <CSI> and the 
  2192. <SS3> will change depending on if you are using 7 or 8 data bits, and if your 
  2193. host wants 7 or 8 bit escape codes. The CSI is generally used for the leading 
  2194. characters of the function keys. The SS3 is used for the leading characters for 
  2195. the application keys (the numeric key pad keys). The default for CSI in 7 bit 
  2196. mode is ESC[ and for SS3 it's ESCO, where ESC is the escape character (Ascii 
  2197. 0x1b). If a key map has not re-mapped the keys then Pmcomm defaults to the 
  2198. standard VT100 and VT220 key definitions as in past versions. 
  2199.  
  2200. Pmcomm will allow you to send control characters by using the ^. For example if 
  2201. you want to send a control J (linefeed) you would enter a ^J in the edit field. 
  2202. This will work for control A thru control Z. 
  2203.  
  2204.  
  2205. ΓòÉΓòÉΓòÉ 10.9. Popup Menu ΓòÉΓòÉΓòÉ
  2206.  
  2207. The Popup Menu is a user definable menu that is activated by clicking the RIGHT 
  2208. mouse button on the Pmcomm screen. Any of the menu items in the normally Pmcomm 
  2209. menu can be added to the Popup Menu along with any of the OS/2 system menu 
  2210. commands. The main advantage to using the Popup Menu over the normal Pmcomm 
  2211. menu is that when you click with the right mouse button the menu comes up near 
  2212. the location of the mouse pointer. This allows quick and easy access to menu 
  2213. commands that you regularly use. 
  2214.  
  2215.  
  2216. ΓòÉΓòÉΓòÉ 10.9.1. Current Popup Menu ΓòÉΓòÉΓòÉ
  2217.  
  2218. This is a list box that shows the current Popup Menu. Items in the list box can 
  2219. be selected, and then either deleted, or insert a new item above it. If you 
  2220. insert an item without first selecting an item in the list box, the item will 
  2221. be added to the end of the menu. This allows you to insert items to the bottom 
  2222. of the menu, because when you select an item, it is always inserted above it. 
  2223. You must press the Ok button in order for your changes to be saved. 
  2224.  
  2225.  
  2226. ΓòÉΓòÉΓòÉ 10.9.2. Available Commands ΓòÉΓòÉΓòÉ
  2227.  
  2228. The available commands combo box allows you to select a command to be inserted 
  2229. in the current Popup Menu. All the available commands are listed in the combo 
  2230. box. Just select a command from the list and then press the insert button. 
  2231.  
  2232.  
  2233. ΓòÉΓòÉΓòÉ 10.9.3. Default Menu ΓòÉΓòÉΓòÉ
  2234.  
  2235. The default menu is the name of the menu currently in use. The file name must 
  2236. have a .men extension. New menus can be createc by just typing in a new file 
  2237. name in the edit field, and then inserting commands from the Available Commands 
  2238. combo box. 
  2239.  
  2240.  
  2241. ΓòÉΓòÉΓòÉ 10.10. Screen ΓòÉΓòÉΓòÉ
  2242.  
  2243. This command allows you to tailor the screen handling to your tastes. The best 
  2244. thing to do is try them to see if you like them. Some features like the 
  2245. automatic horizontal scroll will probably only be used when typing messages and 
  2246. chatting. The save/restore screen and scroll options, will save and restore the 
  2247. previous information. The more information that is on the screen and in the 
  2248. extended scroll back buffer the longer it will take for Pmcomm to exit and 
  2249. start up. Reducing the size of the extended scroll back buffer will speed up 
  2250. the starting and exiting of Pmcomm. 
  2251.  
  2252.  
  2253. ΓòÉΓòÉΓòÉ 10.10.1. Font ΓòÉΓòÉΓòÉ
  2254.  
  2255. Allows you to select from a list of font sizes. The sizes depend on the display 
  2256. adapter and version of OS/2 you are using. Pmcomm queries the video device 
  2257. driver to see what font sizes it supports and lists them for you to select. 
  2258.  
  2259.  
  2260. ΓòÉΓòÉΓòÉ 10.10.2. Foreground ΓòÉΓòÉΓòÉ
  2261.  
  2262. Sets up the color to be used for the text used in the Pmcomm window. There are 
  2263. 16 different background and foreground colors available, allowing for 256 
  2264. different color combinations. 
  2265.  
  2266.  
  2267. ΓòÉΓòÉΓòÉ 10.10.3. Background ΓòÉΓòÉΓòÉ
  2268.  
  2269. Sets up the color to be used for the Pmcomm window background. There are 16 
  2270. different background and foreground colors available, allowing for 256 
  2271. different color combinations. 
  2272.  
  2273.  
  2274. ΓòÉΓòÉΓòÉ 10.10.4. Save/Restore Screen ΓòÉΓòÉΓòÉ
  2275.  
  2276. When this option is selected, Pmcomm will save the information that is 
  2277. displayed on the screen, and restore it when Pmcomm is started again. This will 
  2278. allow you to view the information that was on the screen from a previous Pmcomm 
  2279. session. When this option is selected, it will take Pmcomm slightly long to 
  2280. start and exit, as it has to read/write about 61,000 bytes of information 
  2281. to/from the disk. 
  2282.  
  2283.  
  2284. ΓòÉΓòÉΓòÉ 10.10.5. Save/Restore Extended Scroll ΓòÉΓòÉΓòÉ
  2285.  
  2286. The Save/Restore Extended Scroll option, will save and restore the information 
  2287. in the extended scroll back buffer, between Pmcomm sessions. Caution should be 
  2288. taken, with the size of the extended scroll back buffer. The amount of 
  2289. information that has to be saved can grow very large. This will slow down the 
  2290. exiting and starting of Pmcomm. If you have the Extended Scroll size set to 1 
  2291. megabyte, then once the Extended Scroll back buffer fills up, 1 megabyte will 
  2292. have to be read and written each time you run Pmcomm. 
  2293.  
  2294.  
  2295. ΓòÉΓòÉΓòÉ 10.10.6. Extended Scroll Size ΓòÉΓòÉΓòÉ
  2296.  
  2297. The Extended Scroll Size options allows you to set the maximum size of the 
  2298. buffer that Pmcomm will use to store the extended scroll information into. When 
  2299. this buffer fills up Pmcomm will delete the oldest information, to allow room 
  2300. for new information. Pmcomm will only allocate memory as it is needed to store 
  2301. the scroll information, and it will not allocate more memory then is set in the 
  2302. Extended Scroll Size option. If the size is set to 0 then Pmcomm will not use 
  2303. the Extended Scroll buffer. 
  2304.  
  2305.  
  2306. ΓòÉΓòÉΓòÉ 10.10.7. German Umlaut Filter ΓòÉΓòÉΓòÉ
  2307.  
  2308. This feature will display some special characters that appear in the German 
  2309. language. The translations are as follows: 
  2310.  
  2311. ^U  =  @ 
  2312.  
  2313.  ╨₧  =  [ 
  2314.  
  2315.  ╨⌐  =  \ 
  2316.  
  2317.  ╨¬  =  ] 
  2318.  
  2319.  ╨ö  =  { 
  2320.  
  2321.  ╨ñ  =  | 
  2322.  
  2323.  ╨æ  =  } 
  2324.  
  2325.  ╤ü  =  ~ 
  2326.  
  2327.  
  2328. ΓòÉΓòÉΓòÉ 10.10.8. Hide Window While Dialing ΓòÉΓòÉΓòÉ
  2329.  
  2330. The hide window while dialing option will make the screen less "busy" while 
  2331. dialing. 
  2332.  
  2333.  
  2334. ΓòÉΓòÉΓòÉ 10.10.9. Hide Window During a File Transfer ΓòÉΓòÉΓòÉ
  2335.  
  2336. The hide window during a file transfer option will make the screen less "busy" 
  2337. while executing a file transfer. If you use the show button on the file 
  2338. transfer dialog box, the main window will reappear. 
  2339.  
  2340.  
  2341. ΓòÉΓòÉΓòÉ 10.10.10. Automatic Vertical Scroll ΓòÉΓòÉΓòÉ
  2342.  
  2343. The Automatic vertical scroll option will make Pmcomm keep the cursor 
  2344. vertically in the Pmcomm window. 
  2345.  
  2346.  
  2347. ΓòÉΓòÉΓòÉ 10.10.11. Automatic Horizontal Scroll ΓòÉΓòÉΓòÉ
  2348.  
  2349. The Automatic horizontal scroll option will keep the cursor horizontally in the 
  2350. Pmcomm window. 
  2351.  
  2352.  
  2353. ΓòÉΓòÉΓòÉ 10.10.12. Retain Dialing Dialog's Position ΓòÉΓòÉΓòÉ
  2354.  
  2355. The retain dialing dialog's position option will make Pmcomm restore the last 
  2356. position of the dialing dialog each time it is invoked. If this option is not 
  2357. selected then OS/2 will decide where to place the dialog boxes. 
  2358.  
  2359.  
  2360. ΓòÉΓòÉΓòÉ 10.10.13. Retain Transfer Dialog's Position ΓòÉΓòÉΓòÉ
  2361.  
  2362. The retain transfer dialog's position option will make Pmcomm restore the last 
  2363. position of the transfer dialog each time it is invoked. If this option is not 
  2364. selected then OS/2 will decide where to place the dialog boxes. 
  2365.  
  2366.  
  2367. ΓòÉΓòÉΓòÉ 10.10.14. Show Dial Message Box ΓòÉΓòÉΓòÉ
  2368.  
  2369. The Show Dial Message Box option makes Pmcomm display a message box and beeps 
  2370. at the user, when Pmcomm obtains a remote connection, until the OK button is 
  2371. pressed. This will make sure you notice that Pmcomm has a remote connection. 
  2372.  
  2373.  
  2374. ΓòÉΓòÉΓòÉ 10.10.15. Local Echo On ΓòÉΓòÉΓòÉ
  2375.  
  2376. The local echo on option will make Pmcomm echo all keystrokes to the local 
  2377. screen as well as to the remote computer. 
  2378.  
  2379.  
  2380. ΓòÉΓòÉΓòÉ 10.10.16. Turn Sound On ΓòÉΓòÉΓòÉ
  2381.  
  2382. The turn sound on option will make Pmcomm alert the user when certain functions 
  2383. have been completed. The sound must also be turned on in OS/2 for this option 
  2384. to work. In the System Setup object in the OS/2 System folder there is an 
  2385. object labeled Sound. Make sure the Warning Beep box is checked. 
  2386.  
  2387.  
  2388. ΓòÉΓòÉΓòÉ 10.11. Status Line ΓòÉΓòÉΓòÉ
  2389.  
  2390. This option will activate Pmcomm's Status Line. The Status Line shows the time 
  2391. connected to a remote computer and the terminal type. If the mouse cursor is 
  2392. moved over the top of a button on the button bar, the Status Line also shows a 
  2393. brief description of the button. If the mouse cursor is moved over the top of 
  2394. the port button, the current port statistics are displayed on the Status Line. 
  2395.  
  2396. The elapsed timer starts as soon as you are connected to another computer. The 
  2397. timer displays the elapsed time in hours and minutes. You may also set two 
  2398. warning levels. The first will change the connect time to yellow and the second 
  2399. level will turn the connect time red. These warning levels are useful to keep 
  2400. track of how of the time you are connected to a remote computer. 
  2401.  
  2402.  
  2403. ΓòÉΓòÉΓòÉ 10.11.1. Show Status Line ΓòÉΓòÉΓòÉ
  2404.  
  2405. The "Show status line" option will display Pmcomm's Status Line at the bottom 
  2406. of the Pmcomm window. For more information see Status_Line. 
  2407.  
  2408.  
  2409. ΓòÉΓòÉΓòÉ 10.11.2. Connect time for first warning ΓòÉΓòÉΓòÉ
  2410.  
  2411. After the amount of time specified in this option expires, Pmcomm will turn the 
  2412. connect time yellow. The time must be specified in the hh:mm format. 
  2413.  
  2414.  
  2415. ΓòÉΓòÉΓòÉ 10.11.3. Connect time for second warning ΓòÉΓòÉΓòÉ
  2416.  
  2417. After the amount of time specified in this option expires, Pmcomm will turn the 
  2418. connect time red. The time must be specified in the hh:mm format. 
  2419.  
  2420.  
  2421. ΓòÉΓòÉΓòÉ 10.12. File Open ΓòÉΓòÉΓòÉ
  2422.  
  2423. Pmcomm uses the standard OS/2 file open dialog, when the user needs to open an 
  2424. existing file. When multiple files can be opened (such as when doing batch 
  2425. uploads), Pmcomm allows the user to select multiple files. If a user types in a 
  2426. file name with wild cards, such as *.cmd, then all the files that end with a 
  2427. cmd extension will be displayed in the File list box. A user may also type in 
  2428. the file name directly, instead of selecting the file with the mouse. 
  2429.  
  2430. Different disk drives may be selected with the drive combo box, and different 
  2431. directories can be selected using the directory list box. Pmcomm will display 
  2432. either the Pmcomm working directory, or the script directory (if starting a 
  2433. script), or the upload directory (if uploading or importing a file). If a user 
  2434. uploads a file from other then the upload directory, the next time (as long as 
  2435. Pmcomm is not closed) the user uploads a file Pmcomm will display that 
  2436. directory. The same thing works when starting scripts. 
  2437.  
  2438.  
  2439. ΓòÉΓòÉΓòÉ 10.13. Terminal ΓòÉΓòÉΓòÉ
  2440.  
  2441. Terminal allows you to select which emulation you wish to use. There are also 
  2442. some options for the different emulations. 
  2443.  
  2444.  
  2445. ΓòÉΓòÉΓòÉ 10.13.1. Default Key Map ΓòÉΓòÉΓòÉ
  2446.  
  2447. The default key map combination box allows you to select a different default 
  2448. key map for each terminal emulation. This key map may be overridden by a key 
  2449. map that is selected in the dialing directory. If you wish to create a new key 
  2450. map, just type in the name of the key map you wish to create (key map's must 
  2451. have a .map extension). If you wish to use an existing key map just select it 
  2452. from the drop down list box. 
  2453.  
  2454.  
  2455. ΓòÉΓòÉΓòÉ 10.13.2. TTY emulation ΓòÉΓòÉΓòÉ
  2456.  
  2457. The TTY emulation makes Pmcomm act as a teletype device. Generally this is the 
  2458. least used emulation, however, it is also the fastest. The reason for this is 
  2459. that there are very few special commands that Pmcomm has to process. None of 
  2460. the special ANSI control codes are processed. 
  2461.  
  2462.  
  2463. ΓòÉΓòÉΓòÉ 10.13.3. ANSI emulation ΓòÉΓòÉΓòÉ
  2464.  
  2465. The ANSI emulation is probably the most used. It will execute the special ANSI 
  2466. screen control commands. This allows the remote program to be able to clear the 
  2467. screen, position the cursor and change the colors. There are other screen 
  2468. control commands but these are the most commonly used ones. There are also 
  2469. options to have Pmcomm ignore the ANSI color changes so that you can use the 
  2470. colors you want, instead of the ones the remote computer uses, and to send the 
  2471. ANSI cursor position commands with the arrow keys. When using the ANSI 
  2472. emulation you can also have Pmcomm strip off the ANSI commands before saving 
  2473. the information into a capture file. This will make the capture file much more 
  2474. readable. You can also change the length of the page, to correspond to the size 
  2475. of your screen. The default for the ANSI page length is 25 lines, and under 
  2476. most cases should be left there. 
  2477.  
  2478.  
  2479. ΓòÉΓòÉΓòÉ 10.13.4. VT100 and VT220 emulation ΓòÉΓòÉΓòÉ
  2480.  
  2481. In VT100 and VT220 emulation, some keys have been changed to try to more 
  2482. closely emulate the VT100 keyboard. F1-F4 are now the PF keys. Because of this 
  2483. the F1 key will not display the normal help and F3 will not exit the program. 
  2484. The PF keys will send the following characters: 
  2485.  
  2486.   F1 = ESCOP 
  2487.  
  2488.   F2 = ESCOQ 
  2489.  
  2490.   F3 = ESCOR 
  2491.  
  2492.   F4 = ESCOS 
  2493.  
  2494. Where ESC is equal to the ASCII character hex 1B. All other hot keys will not 
  2495. be available. When the num lock key is off, the numerical key pad will be in 
  2496. the application mode. If you are connecting to a VT220 Host you can use these 
  2497. keys to send the VT220 PF key values. For example pressing the 1 on the numeric 
  2498. key pad will send the VT220 PF1 key. Pressing the 3 on the numeric key pad will 
  2499. send the VT220 PF3 key, and so on. With the num lock on the numbers will be 
  2500. sent. The plus key has been re-mapped to be a comma, again to be compatible 
  2501. with the VT100 keyboard. In most cases it is best to tell the host that you are 
  2502. a VT220 terminal. The VT100 emulation of Pmcomm supports most of the VT220 
  2503. commands, and will allow you to use the extra support that VT220 allows. If you 
  2504. tell the host that you are a VT220 terminal, for example, you will be able to 
  2505. use the Ctrl-R for reset and the Ctrl-C for clear. These are just a couple of 
  2506. examples of the additional benefit that you can get from VT220. 
  2507.  
  2508. The VT page length allows you to set Pmcomm to support different number of 
  2509. rows, when using VT100 or VT220 terminal emulations. The default is 25 rows, 
  2510. but on most UNIX host systems you can change the host default by using the stty 
  2511. command. For example to set the number of rows on a UNIX host to 43 rows, you 
  2512. would issue this command, stty rows 43. You would also have to set the VT page 
  2513. length in Pmcomm to 43. 
  2514.  
  2515. The send DEL for backspace option is the default for many VT100 keyboards. When 
  2516. this is selected, Pmcomm will send a hex 7f character instead of the backspace 
  2517. character. You can still send a backspace character by pressing Ctrl-Backspace. 
  2518. This allows you to have both these characters available at one time. 
  2519.  
  2520. The translate CR/LF for LF option will act as if it received a carriage return 
  2521. and a line feed, each time it receives a line feed. 
  2522.  
  2523. The line wrap option will make Pmcomm wrap the line if the line is longer than 
  2524. the page width. If this option is off the line will be truncated. 
  2525.  
  2526. The Insert mode option will allow you to insert characters into the middle of a 
  2527. line and the rest of the line will be shifted to the right to allow room for 
  2528. the new characters. 
  2529.  
  2530. The cursor visible option determines if the cursor will be shown on the screen 
  2531. or not. 
  2532.  
  2533. The Screen origin relative option determines if Pmcomm will keep everything on 
  2534. a 25 line screen or allow it to use the scroll back buffer. In most cases this 
  2535. option should be selected. 
  2536.  
  2537. The last two options are to set the width of the screen. Either 80 or 132 
  2538. columns are supported. 
  2539.  
  2540. Most of these options can be changed from the host. The default setup should 
  2541. work for most applications, and the host can change the options to meet 
  2542. different needs. 
  2543.  
  2544.  
  2545. ΓòÉΓòÉΓòÉ 10.14. Multimedia ΓòÉΓòÉΓòÉ
  2546.  
  2547. The Multimedia setup allows you to have Pmcomm play Multimedia files during 
  2548. certain events. The files can be any Multimedia file supported by OS/2, 
  2549. including video. The playing of the file can be stopped at anytime, by 
  2550. selecting Stop Wave, from the menu. The Stop Wave can also be re-mapped to any 
  2551. key. 
  2552.  
  2553.  
  2554. ΓòÉΓòÉΓòÉ 10.14.1. Incoming Beep ΓòÉΓòÉΓòÉ
  2555.  
  2556. This file will be played when the remote computer sends a beep (ASCII 7). This 
  2557. will be done with any of the terminal emulations. The file listed must be the 
  2558. full path name including the file name, and can be any OS/2 supported 
  2559. Multimedia file. 
  2560.  
  2561.  
  2562. ΓòÉΓòÉΓòÉ 10.14.2. Connect ΓòÉΓòÉΓòÉ
  2563.  
  2564. This file will be played when a connection has been established through the 
  2565. dialing directory. The file listed must be the full path name including the 
  2566. file name, and can be any OS/2 supported Multimedia file. 
  2567.  
  2568.  
  2569. ΓòÉΓòÉΓòÉ 10.14.3. No DCD ΓòÉΓòÉΓòÉ
  2570.  
  2571. This file will be played when your modem reports that DCD (Data Carrier Detect) 
  2572. has been droped. Monitor DCD must be selected under Options, Port, inorder for 
  2573. this file to be played. The file listed must be the full path name including 
  2574. the file name, and can be any OS/2 supported Multimedia file. 
  2575.  
  2576.  
  2577. ΓòÉΓòÉΓòÉ 10.14.4. Busy ΓòÉΓòÉΓòÉ
  2578.  
  2579. This file will be played when your modem reports a BUSY signal.The file listed 
  2580. must be the full path name including the file name, and can be any OS/2 
  2581. supported Multimedia file. 
  2582.  
  2583.  
  2584. ΓòÉΓòÉΓòÉ 10.14.5. Transfer Complete ΓòÉΓòÉΓòÉ
  2585.  
  2586. This file will be played when Pmcomm has sucessfully complete a file transfer. 
  2587. The file listed must be the full path name including the file name, and can be 
  2588. any OS/2 supported Multimedia file. 
  2589.  
  2590.  
  2591. ΓòÉΓòÉΓòÉ 10.14.6. Transfer Aborted ΓòÉΓòÉΓòÉ
  2592.  
  2593. This file will be played when a file transfer has been aborted. The file listed 
  2594. must be the full path name including the file name, and can be any OS/2 
  2595. supported Multimedia file. 
  2596.  
  2597.  
  2598. ΓòÉΓòÉΓòÉ 10.15. Chat ΓòÉΓòÉΓòÉ
  2599.  
  2600. This sets up Pmcomm to "chat" when connected to another computer that is also 
  2601. running Pmcomm. This mode automatically sets Pmcomm to echo characters locally 
  2602. and to send a carriage return line feed combination when the enter key is 
  2603. pressed. 
  2604.  
  2605.  
  2606. ΓòÉΓòÉΓòÉ 11. Macros ΓòÉΓòÉΓòÉ
  2607.  
  2608. Allows you to pick, with a mouse, the macro you wish to send. Can also be 
  2609. selected with an Alt+corresponding number keystroke. Pmcomm allows you to set 
  2610. up ten different macros. Scripts can be executed from macros by using the shell 
  2611. command. An example of this would be: 
  2612.  
  2613. shell("c:\pmcomm\plane.cmd"); 
  2614.  
  2615. This would execute the REXX script called plane.cmd. This allows you a quick 
  2616. and easy way to execute your most popular scripts. 
  2617.  
  2618. Multimedia files can be played from a macro as well, with the play_wave 
  2619. command. The play_wave command will play any file that is supported by OS/2. 
  2620. This includes wav, mid, and avi file formats. The syntax for this command is : 
  2621.  
  2622. play_wave("c:\mmos2\sounds\bach.mid"); 
  2623.  
  2624.  
  2625. ΓòÉΓòÉΓòÉ 12. Script Syntax ΓòÉΓòÉΓòÉ
  2626.  
  2627. Both, internal and REXX, syntaxes are described in this section. 
  2628.  
  2629.  
  2630. ΓòÉΓòÉΓòÉ 12.1. REXX Functions ΓòÉΓòÉΓòÉ
  2631.  
  2632. This describes the function calls that are available in the rxpmcomm.dll. 
  2633. Before using any of these calls you must include these lines in your REXX 
  2634. program: 
  2635.  
  2636. Call RxFuncadd " init_dll ","RxPmcomm","init_dll" 
  2637.  
  2638. Parse arg port portname screen_handle dde_output dde_input semaphore 
  2639.  
  2640. Call init_dll 
  2641.  
  2642. The rxpmcomm.dll must reside in a directory listed in your LIBPATH statement in 
  2643. config.sys. One of the default directories is \os2\dll. If you are using OS/2 
  2644. 2.0 or later, then you can use the init_32dll, which is in the RxPmc32.dll. 
  2645. This is a 32 bit dll, which will use less memory and maybe faster in some 
  2646. cases. These functions are designed to make it easier to preform tasks 
  2647. necessary when writing scripts for asynch communications. To invoke a REXX 
  2648. program from a script, use the shell( ) function in the script. The format of 
  2649. the shell function is as follows: 
  2650.  
  2651. shell("\path\filename.cmd"); 
  2652. where filename.cmd is your REXX program. These functions have been tested with 
  2653. the REXX that comes with OS/2 1.3 and 2.0, but should work with any totally 
  2654. function compatible REXX. There are some sample REXX programs included. 
  2655.  
  2656.  
  2657. ΓòÉΓòÉΓòÉ 12.1.1. init_dll ΓòÉΓòÉΓòÉ
  2658.  
  2659. The init_dll function will register the functions in the rxpmcomm.dll, with 
  2660. REXX. This function must be called before any other rxpmcomm.dll function is 
  2661. called. The RxFuncadd must be called before init_dll to register this function 
  2662. with REXX. 
  2663.  
  2664.  
  2665. ΓòÉΓòÉΓòÉ 12.1.2. init_32dll ΓòÉΓòÉΓòÉ
  2666.  
  2667. The init_32dll function will register the functions in the rxpmc32.dll, with 
  2668. REXX. This function must be called before any other rxpmc32.dll function is 
  2669. called. The RxFuncadd must be called before init_32dll to register this 
  2670. function with REXX. The rxpmc32.dll and the init_32dll function can only be 
  2671. used with OS/2 2.0 and later. 
  2672.  
  2673.  
  2674. ΓòÉΓòÉΓòÉ 12.1.3. os2_shell ΓòÉΓòÉΓòÉ
  2675.  
  2676. os2_shell port,port 
  2677.  
  2678. Example 
  2679.  
  2680. Call os2_shell port,port 
  2681.  
  2682. Description 
  2683.  
  2684. This command will allow a caller to shell to OS/2, remotely. The first 
  2685. parameter is the input handle and the second is the output handle. In the 
  2686. example above, the command will receive and send the information to the 
  2687. communication port. 
  2688.  
  2689. Returns 
  2690.  
  2691. 1 if successful and 0 if unsuccessful. 
  2692.  
  2693.  
  2694. ΓòÉΓòÉΓòÉ 12.1.4. set_download_path ΓòÉΓòÉΓòÉ
  2695.  
  2696. set_download_path directory,dde_output 
  2697.  
  2698. Example 
  2699.  
  2700. Call set_download_path "c:\pmcomm",dde_output 
  2701.  
  2702. Description 
  2703.  
  2704. The above example will set the download path to c:\pmcomm. This will store all 
  2705. of the files received in that directory. The dde_output, is the dde_output 
  2706. value passed on the command line. 
  2707.  
  2708. Returns 
  2709.  
  2710. 1 if successful and 0 if unsuccessful. 
  2711.  
  2712.  
  2713. ΓòÉΓòÉΓòÉ 12.1.5. setcom ΓòÉΓòÉΓòÉ
  2714.  
  2715. setcom baud,parity,data_bit,stop_bits,port 
  2716.  
  2717. Example 
  2718.  
  2719. Call setcom "2400","N","8","1",port 
  2720.  
  2721. Description 
  2722.  
  2723. This would set the communication port to 2400 baud, no parity, 8 data bits, 1 
  2724. stop bit. Baud can be from 300 to 19200 with the standard OS/2 device driver. 
  2725. Parity can be N(none), O(odd), E(even), M(marked), or S(spaced). Data bits can 
  2726. be 5, 6, 7 or 8. Stop bits can be 1 or 2 (2 can only be used with 5 data bits). 
  2727. If a parameter is an empty string (i.e. setcom "","E","7","1",port) this leaves 
  2728. the baud at the current rate but set the line characteristics to 7, Even, 1. 
  2729.  
  2730. Returns 
  2731.  
  2732. 1 if successful and 0 if unsuccessful. 
  2733.  
  2734.  
  2735. ΓòÉΓòÉΓòÉ 12.1.6. sendb ΓòÉΓòÉΓòÉ
  2736.  
  2737. sendb length,port 
  2738.  
  2739. Example 
  2740.  
  2741. Call sendb "300",port 
  2742.  
  2743. Description 
  2744.  
  2745. This call sends a break signal a certain time in milliseconds. The above 
  2746. example would send a break signal for 300 milliseconds. This call is mostly 
  2747. used to establish direct connects (not using a modem). Three hundred 
  2748. milliseconds should be okay for most situations. 
  2749.  
  2750. Returns 
  2751.  
  2752. 1 if successful and 0 if unsuccessful. 
  2753.  
  2754.  
  2755. ΓòÉΓòÉΓòÉ 12.1.7. dcd ΓòÉΓòÉΓòÉ
  2756.  
  2757. dcd port 
  2758.  
  2759. Example 
  2760.  
  2761. Call dcd port 
  2762.  
  2763. Description 
  2764.  
  2765. This call checks to see if there is a carrier detected on the modem. You can 
  2766. use this to see if Pmcomm is still online to a remote computer. For this 
  2767. information to be correct the modem must support dcd and the modem must be 
  2768. configured to support dcd. To find the command refer to your owner's manual. 
  2769.  
  2770. Returns 
  2771.  
  2772. 1 if carrier detected and 0 if no carrier. 
  2773.  
  2774.  
  2775. ΓòÉΓòÉΓòÉ 12.1.8. char_avail ΓòÉΓòÉΓòÉ
  2776.  
  2777. char_avail port 
  2778.  
  2779. Example 
  2780.  
  2781. Call char_avail port 
  2782.  
  2783. Description 
  2784.  
  2785. This call checks to see how many characters are available in the device 
  2786. driver's receive buffer. You can use this function to check to see if the 
  2787. device driver has received any characters from the communication port. 
  2788.  
  2789. Returns 
  2790.  
  2791. Number of characters in device driver receive queue. 
  2792.  
  2793.  
  2794. ΓòÉΓòÉΓòÉ 12.1.9. read_timeout ΓòÉΓòÉΓòÉ
  2795.  
  2796. read_timeout timeout,port 
  2797.  
  2798. Example 
  2799.  
  2800. Call read_timeout 20000,port 
  2801.  
  2802. Description 
  2803.  
  2804. This call sets the length of time (in milliseconds) that wait_for, wait_fore, 
  2805. Get_ch will wait for a character from the communication port. The above example 
  2806. will make the functions wait for 20 seconds. 
  2807.  
  2808. Returns 
  2809.  
  2810. 1 if successful and 0 if unsuccessful. 
  2811.  
  2812.  
  2813. ΓòÉΓòÉΓòÉ 12.1.10. Get_ch ΓòÉΓòÉΓòÉ
  2814.  
  2815. Get_ch port 
  2816.  
  2817. Example 
  2818.  
  2819. Call Get_ch port 
  2820.  
  2821. Description 
  2822.  
  2823. This call will get a character from the communication port. If no character is 
  2824. available by the time set with read_timeout the function will return with a 
  2825. value of -1. Otherwise the function will return with the character read. 
  2826.  
  2827. Returns 
  2828.  
  2829. char value if successful and -1 if unsuccessful. 
  2830.  
  2831.  
  2832. ΓòÉΓòÉΓòÉ 12.1.11. ring_detect ΓòÉΓòÉΓòÉ
  2833.  
  2834. ring_detect port 
  2835.  
  2836. Example 
  2837.  
  2838. Call ring_detect port 
  2839.  
  2840. Description 
  2841.  
  2842. This call can be used to inform a program if the phone is ringing. 
  2843.  
  2844. Returns 
  2845.  
  2846. 1 if ring detected, 0 if no ring, and 2 if invalid number of parameters. 
  2847.  
  2848.  
  2849. ΓòÉΓòÉΓòÉ 12.1.12. drop_dtr ΓòÉΓòÉΓòÉ
  2850.  
  2851. drop_dtr port 
  2852.  
  2853. Example 
  2854.  
  2855. Call drop_dtr port 
  2856.  
  2857. Description 
  2858.  
  2859. This call is usually used to make a modem hang up. The modem must be configured 
  2860. to allow this. To find the command for your modem, check your owner's manual. 
  2861. Dtr needs to be dropped for about 2-3 seconds to make sure the modem sees the 
  2862. drop in DTR. After that length of time raise_dtr can be called to bring DTR 
  2863. back up. On a Hayes 2400 the above command will also keep the modem from doing 
  2864. an auto answer until you raise_dtr again. 
  2865.  
  2866. Returns 
  2867.  
  2868. 1 if successful and 0 if unsuccessful. 
  2869.  
  2870.  
  2871. ΓòÉΓòÉΓòÉ 12.1.13. raise_dtr ΓòÉΓòÉΓòÉ
  2872.  
  2873. raise_dtr port 
  2874.  
  2875. Example 
  2876.  
  2877. Call raise_dtr port 
  2878.  
  2879. Description This call is usually used after drop_dtr to allow the modem to 
  2880. process commands and enable it to answer the phone. 
  2881.  
  2882. Returns 
  2883.  
  2884. 1 if successful and 0 if unsuccessful. 
  2885.  
  2886.  
  2887. ΓòÉΓòÉΓòÉ 12.1.14. Wait_for (REXX) ΓòÉΓòÉΓòÉ
  2888.  
  2889. Wait_for string,string,string...,port 
  2890.  
  2891. Example 
  2892.  
  2893. Call Wait_for "first name?","last name?",port 
  2894.  
  2895. Description 
  2896.  
  2897. The above example would wait for either first name?, or last name?, from the 
  2898. communication port. The function will return the index of the string that 
  2899. matched. For example if the Wait_for received last name?, then the result would 
  2900. be 2. You can specify any number of strings depending on memory available. 
  2901.  
  2902. Returns 
  2903.  
  2904. Index of matched string or zero if timeout or error. 
  2905.  
  2906.  
  2907. ΓòÉΓòÉΓòÉ 12.1.15. Wait_fore ΓòÉΓòÉΓòÉ
  2908.  
  2909. Wait_fore string,string,string...,port,screen_handle 
  2910.  
  2911. Example 
  2912.  
  2913. Call Wait_fore "first name?","last name?",port,screen_handle 
  2914.  
  2915. Call Wait_fore "first name?",port,1 
  2916.  
  2917. Call Wait_fore "first name?","raw",port,1 
  2918.  
  2919. Description 
  2920.  
  2921. The first example would wait for either first name?, or last name?, from the 
  2922. communication port and echo the out_put to the Pmcomm screen. The second 
  2923. example would do the same except it would write the out put to StdOut(value 1) 
  2924. which would be the REXX screen. The third example would look for an exact match 
  2925. coming across the communication port, including any ANSI sequences. 
  2926.  
  2927. Returns 
  2928.  
  2929. Index of matched string or zero if timeout or error. 
  2930.  
  2931.  
  2932. ΓòÉΓòÉΓòÉ 12.1.16. Put_s ΓòÉΓòÉΓòÉ
  2933.  
  2934. Put_s string,port 
  2935.  
  2936. Example 
  2937.  
  2938. Call Put_s "first name",port 
  2939.  
  2940. Description 
  2941.  
  2942. This call will send string out to port. In the above example first name will be 
  2943. sent to the communication port. If port is not specified then 'string' will be 
  2944. sent to the REXX screen. If screen_handle is specified instead of port then the 
  2945. string will be sent to the Pmcomm screen. 
  2946.  
  2947. Returns 
  2948.  
  2949. Length of string actually written. 
  2950.  
  2951.  
  2952. ΓòÉΓòÉΓòÉ 12.1.17. Sleep (REXX) ΓòÉΓòÉΓòÉ
  2953.  
  2954. Sleep time 
  2955.  
  2956. Example 
  2957.  
  2958. Call Sleep "1000" 
  2959.  
  2960. Description 
  2961.  
  2962. This call will delay the program for the amount of milliseconds specified. The 
  2963. above example will delay the computer for one second. 
  2964.  
  2965. Returns 
  2966.  
  2967. Unconditionally 0. 
  2968.  
  2969.  
  2970. ΓòÉΓòÉΓòÉ 12.1.18. beep ΓòÉΓòÉΓòÉ
  2971.  
  2972. beep frequency,duration 
  2973.  
  2974. Example 
  2975.  
  2976. Call beep 495,100 
  2977.  
  2978. Description 
  2979.  
  2980. The above example will beep the speaker. 
  2981.  
  2982. Returns 
  2983.  
  2984. 1 if successful and 0 if unsuccessful. 
  2985.  
  2986.  
  2987. ΓòÉΓòÉΓòÉ 12.1.19. get_cursor_position ΓòÉΓòÉΓòÉ
  2988.  
  2989. get_cursor_position axis,dde_output,dde_input 
  2990.  
  2991. Example 
  2992.  
  2993. Call get_cursor_position "column",dde_output,dde_input 
  2994.  
  2995. Description 
  2996.  
  2997. The above will return the column that the cursor is in. To get the current row, 
  2998. you would issue this call with "row" instead of "column". The row value that is 
  2999. returned is relative to the top of the scroll back buffer. The top row of the 
  3000. scroll back buffer and the first column would be 0,0. 
  3001.  
  3002. Returns 
  3003.  
  3004. Cursor position. 
  3005.  
  3006.  
  3007. ΓòÉΓòÉΓòÉ 12.1.20. get_char_at ΓòÉΓòÉΓòÉ
  3008.  
  3009. get_char_at row,column,number,dde_output,dde_input 
  3010.  
  3011. Example 
  3012.  
  3013. Call get_char_at 0,0,80,dde_output,dde_input 
  3014.  
  3015. Description 
  3016.  
  3017. The above will return the characters at the first line of the scroll back 
  3018. buffer. It will return 80 characters, even if the characters are spaces. The 
  3019. maximum number of characters that can be returned at one time is 200. 
  3020.  
  3021. Returns 
  3022.  
  3023. Character(s) at the specified row and column. 
  3024.  
  3025.  
  3026. ΓòÉΓòÉΓòÉ 12.1.21. REXX capture_on ΓòÉΓòÉΓòÉ
  3027.  
  3028. capture_on filename,dde_output,dde_input 
  3029.  
  3030. Example 
  3031.  
  3032. Call capture_on "c:\pmcomm\cap.txt", dde_output, dde_input 
  3033.  
  3034. Description 
  3035.  
  3036. The above will turn capture on so that everything will be saved into a file. If 
  3037. you have strip ANSI configured in Pmcomm then the text only will be saved in 
  3038. ANSI, VT100, and VT220 terminal emulations. If the file already exists it will 
  3039. be overwritten. 
  3040.  
  3041. Returns 
  3042.  
  3043. 1 if successful and 0 if not. 
  3044.  
  3045.  
  3046. ΓòÉΓòÉΓòÉ 12.1.22. REXX capture_off ΓòÉΓòÉΓòÉ
  3047.  
  3048. capture_off dde_output,dde_input 
  3049.  
  3050. Example 
  3051.  
  3052. Call capture_off dde_output,dde_input 
  3053.  
  3054. Description 
  3055.  
  3056. The above will turn capture off. The capture may have been started from a 
  3057. script or from the menu. 
  3058.  
  3059. Returns 
  3060.  
  3061. 1 if successful and 0 if not. 
  3062.  
  3063.  
  3064. ΓòÉΓòÉΓòÉ 12.1.23. REXX change_option ΓòÉΓòÉΓòÉ
  3065.  
  3066. change_option "option",dde_output,dde_input 
  3067.  
  3068. This command will allow a script to change certain options in Pmcomm. The 
  3069. options that can be changed are: 
  3070.  
  3071. device. This option will allow you to change the current device that Pmcomm is 
  3072. using. For example to change the current device to COM2, the syntax would be: 
  3073. Call change_option "device=COM2",dde_output,dde_input 
  3074.  
  3075. hardware. This option will allow you to turn hardware flow control on or off. 
  3076. If you want to turn hardware flow control off the syntax would be: Call 
  3077. change_option "hardware=OFF",dde_output,dde_input To turn hardware flow control 
  3078. on you would replace the OFF with ON. 
  3079.  
  3080. XON/XOFF. This option will allow you to turn Xon/Xoff flow control on or off. 
  3081. If you want to turn Xon/Xoff flow control off the syntax would be: Call 
  3082. change_option "XON/XOFF=OFF",dde_output,dde_input 
  3083.  
  3084. To turn Xon/Xoff flow control on you would replace the OFF with ON. 
  3085.  
  3086. dtr. If this option is turned on the DTR will be lowered when hangup is 
  3087. selected. If you want to turn this option off the syntax would be: Call 
  3088. change_option "dtr=OFF",dde_output,dde_input 
  3089.  
  3090. stop bits. This option will allow you to set the number of stop bits that the 
  3091. communication port is set to. The communication port will be changed before the 
  3092. command is completed, and the default stop bits will be set to the new value. 
  3093. To set the communication port to 1 stop bit, the syntax would be: Call 
  3094. change_option "stop bits=1",dde_output,dde_input 
  3095.  
  3096. The communication port can only be set to 1 or 2 stop bits from a script. 
  3097.  
  3098. data bits. This option will allow you to set the number of data bits that the 
  3099. communication port is set to. The communication port will be changed before the 
  3100. command is completed, and the default data bits will be set to the new value. 
  3101. To set the communication port to 8 data bits, the syntax would be: Call 
  3102. change_option "data bits=8",dde_output,dde_input 
  3103.  
  3104. The communication port can be set to 8, 7, 6 or 5 data bits. 
  3105.  
  3106. parity. This option will allow you to set the parity for the current 
  3107. communication port. The communication port will be changed before the command 
  3108. is completed, and the default parity will be set to the new value. To set the 
  3109. communication port to Even parity, the syntax would be: Call change_option 
  3110. "parity=Even",dde_output,dde_input 
  3111.  
  3112. The communication port can be set to None, Even , Odd, Mark or Space parity. 
  3113.  
  3114. initialization string. This option allows you to change the modem 
  3115. initialization string that Pmcomm uses. To change the string the syntax would 
  3116. be: Call change_option "initialization string=ATZ",dde_output,dde_input 
  3117.  
  3118. dial timeout. This option will allow you to set the number of seconds that 
  3119. Pmcomm will wait when dialing a remote computer. If you wanted to set the 
  3120. number of seconds to 60 the syntax for the command would be: Call change_option 
  3121. "dial timeout=60",dde_output,dde_input 
  3122.  
  3123. redial delay. This option will allow you to set the number of seconds that 
  3124. Pmcomm will wait between dialing attempts. If you wanted to set the number of 
  3125. seconds to 6 the syntax for the command would be: Call change_option "redial 
  3126. delay=6",dde_output,dde_input 
  3127.  
  3128. hangup string. This option allows you to change the modem hangup string that 
  3129. Pmcomm uses. To change the string the syntax would be: Call change_option 
  3130. "hangup string=+++~~~ATH^M",dde_output,dde_input 
  3131.  
  3132. auto zmodem string. Some host systems do not send a standard auto zmodem 
  3133. string. This command allows you to change the string that Pmcomm looks for, 
  3134. when the host starts a zmodem send file transfer. When Pmcomm finds a match it 
  3135. will start a zmodem receive file transfer. To change the auto zmodem string the 
  3136. syntax would be: 
  3137.  
  3138. Call change_option "auto zmodem string=B00000",dde_output,dde_input 
  3139.  
  3140. zmodem date. This option allows you turn on and off whether Pmcomm will compare 
  3141. the file dates during a zmodem resume file transfer. The syntax to turn the 
  3142. date compare off would be: 
  3143.  
  3144. Call change_option "zmodem date=OFF",dde_output,dde_input To turn this option 
  3145. on you would replace the OFF with ON. 
  3146.  
  3147. zmodem rename. This option allows you turn on and off whether Pmcomm will 
  3148. rename duplicate files, if a resume fails (or is turned off). If this option is 
  3149. on Pmcomm will rename the new file with a number for an extension. The syntax 
  3150. to turn the zmodem rename off would be: 
  3151.  
  3152. Call change_option "zmodem rename=OFF",dde_output,dde_input To turn this option 
  3153. on you would replace the OFF with ON. 
  3154.  
  3155. auto zmodem. This option will allow you to turn the auto zmodem feature on or 
  3156. off. If you want to turn auto zmodem off the syntax would be: Call 
  3157. change_option "auto zmodem=OFF",dde_output,dde_input To turn auto zmodem on you 
  3158. would replace the OFF with ON. 
  3159.  
  3160. zmodem recovery. This option will allow you to turn the zmodem recovery feature 
  3161. on or off. If you want to turn zmodem recovery off the syntax would be: Call 
  3162. change_option "zmodem recovery=OFF",dde_output,dde_input To turn zmodem 
  3163. recovery on you would replace the OFF with ON. 
  3164.  
  3165. zmodem crc. This option allows you to select either the 32 bit or 16 bit zmodem 
  3166. CRC error detection option. To select the 32 bit option the syntax would be: 
  3167. Call change_option "zmodem crc=32",dde_output,dde_input 
  3168.  
  3169. download directory. To change the current download directory the syntax would 
  3170. be: Call change_option "download directory=c:\pmcomm\",dde_output,dde_input 
  3171.  
  3172. hide dial. This option allows you to select if the main terminal window is 
  3173. hidden while Pmcomm is dialing a remote computer. To allow the main window to 
  3174. remain visible while dialing the syntax would be: Call change_option "hide 
  3175. dial=OFF",dde_output,dde_input To turn hide dial on you would replace the OFF 
  3176. with ON. 
  3177.  
  3178. hide transfer. This option allows you to select if the main terminal window is 
  3179. hidden while Pmcomm is doing a file transfer. To allow the main window to 
  3180. remain visible while doing file transfers the syntax would be: Call 
  3181. change_option "hide transfer=OFF",dde_output,dde_input To turn hide transfer on 
  3182. you would replace the OFF with ON. 
  3183.  
  3184. auto vertical. This option determines if Pmcomm will automatically scroll the 
  3185. terminal window vertically to keep the current cursor position in the window. 
  3186. To turn this option off the syntax would be: Call change_option "auto 
  3187. vertical=OFF",dde_output,dde_input To turn this option on you would replace the 
  3188. OFF with ON. 
  3189.  
  3190. auto horizontal. This option determines if Pmcomm will automatically scroll the 
  3191. terminal window horizontally to keep the current cursor position in the window. 
  3192. To turn this option off the syntax would be: Call change_option "auto 
  3193. horizontal=OFF",dde_output,dde_input To turn this option on you would replace 
  3194. the OFF with ON. 
  3195.  
  3196. save dial. If this option is on then Pmcomm will store the position of the 
  3197. dialing dialog box, and use it the next time a number is dialed. To turn this 
  3198. option off the syntax would be: Call change_option("save 
  3199. dial=OFF",dde_output,dde_input To turn this option on you would replace the OFF 
  3200. with ON. 
  3201.  
  3202. save transfer. If this option is on then Pmcomm will store the position of the 
  3203. transfer dialog box, and use it the next time a file is transferred dialed. To 
  3204. turn this option off the syntax would be: Call change_option "save 
  3205. transfer=OFF",dde_output,dde_input To turn this option on you would replace the 
  3206. OFF with ON. 
  3207.  
  3208. sound. This option allows you to turn the warning beeps in Pmcomm, on or off. 
  3209. To turn this option off the syntax would be: Call change_option 
  3210. "sound=OFF",dde_output,dde_input To turn this option on you would replace the 
  3211. OFF with ON. 
  3212.  
  3213. monitor dcd. If this option is on, then Pmcomm will monitor the presence of 
  3214. data carrier detect (DCD). To turn this option off the syntax would be: Call 
  3215. change_option "monitor dcd=OFF",dde_output,dde_input To turn this option on you 
  3216. would replace the OFF with ON. 
  3217.  
  3218. page length. This option allows you to set the ANSI page length from a script. 
  3219. Following is an example of how to set the page length to 25 lines. Call 
  3220. change_option "page length=25",dde_output,dde_input 
  3221.  
  3222. terminal. This option allows you to change the type of terminal from within a 
  3223. Pmcomm script. The following example would set the terminal type to ANSI. Call 
  3224. change_option "terminal=ANSI",dde_output,dde_input The available valid terminal 
  3225. types are TTY, ANSI, VT100 or VT220. 
  3226.  
  3227. foreground. This option allows you to change the foreground color from within a 
  3228. Pmcomm script. The available colors are: 
  3229.  
  3230. black 
  3231. blue 
  3232. green 
  3233. cyan 
  3234. red 
  3235. magenta 
  3236. brown 
  3237. white 
  3238. dark grey 
  3239. light blue 
  3240. light green 
  3241. light cyan 
  3242. light red 
  3243. pink 
  3244. yellow 
  3245. bright white 
  3246.  
  3247. The syntax to change the foreground color to cyan would be: Call change_option 
  3248. "foreground=cyan",dde_output,dde_input 
  3249.  
  3250. background. This option allows you to change the background color from within a 
  3251. Pmcomm script. The available colors are: 
  3252.  
  3253. black 
  3254. blue 
  3255. green 
  3256. cyan 
  3257. red 
  3258. magenta 
  3259. brown 
  3260. white 
  3261. dark grey 
  3262. light blue 
  3263. light green 
  3264. light cyan 
  3265. light red 
  3266. pink 
  3267. yellow 
  3268. bright white 
  3269.  
  3270. The syntax to change the background color to black would be: Call change_option 
  3271. "background=black",dde_output,dde_input 
  3272.  
  3273. echo. This option allows you turn on and off the local keystroke echo. The 
  3274. syntax to turn echo off would be: Call change_option 
  3275. "echo=OFF",dde_output,dde_input To turn this option on you would replace the 
  3276. OFF with ON. 
  3277.  
  3278. prefix1 
  3279. prefix2 
  3280. prefix3 
  3281.  
  3282.  These options allow you to change the dialing prefixes. For example to change 
  3283. prefix1 you would use the following syntax: Call change_option 
  3284. "prefix1=ATDT",dde_output,dde_input 
  3285.  
  3286. suffix1 
  3287. suffix2 
  3288. suffix3 
  3289.  
  3290.  These options allow you to change the dialing suffixes. For example to change 
  3291. suffix1 you would use the following syntax: Call change_option 
  3292. "suffix1=^M",dde_output,dde_input 
  3293.  
  3294. strip ansi. This option allows you to select if Pmcomm will strip the ANSI 
  3295. commands from a capture file. The syntax to turn off the stripping of the ANSI 
  3296. commands would be: Call change_option "strip ansi=OFF",dde_output,dde_input To 
  3297. turn this option on you would replace the OFF with ON. 
  3298.  
  3299. macro1 
  3300. macro2 
  3301. macro3 
  3302. macro4 
  3303. macro5 
  3304. macro6 
  3305. macro7 
  3306. macro8 
  3307. macro9 
  3308. macro10 
  3309.  
  3310. These options allow you to change the keyboard macros. For example to change 
  3311. macro1 you would use the following syntax: Call change_option 
  3312. "macro1=ATZ",dde_output,dde_input 
  3313.  
  3314. phone directory. 
  3315.  
  3316. phone directory. To change the current phone directory the syntax would be: 
  3317. Call change_option "phone directory=c:\pmcomm\pmcomm.fon",dde_output,dde_input 
  3318. This would change the file used as the Pmcomm phone file. 
  3319.  
  3320. script directory. To change the current script directory the syntax would be: 
  3321. Call change_option "script directory=c:\pmcomm\script",dde_output,dde_input 
  3322.  
  3323. capture directory. To change the current capture file directory the syntax 
  3324. would be: Call change_option "capture 
  3325. directory=c:\pmcomm\capture",dde_output,dde_input 
  3326.  
  3327. chat. This option allows you to turn the Pmcomm chat mode on or off. The syntax 
  3328. to turn off chat mode is: Call change_option "chat=OFF",dde_output,dde_input To 
  3329. turn this option on you would replace the OFF with ON. 
  3330.  
  3331. auto cisb. This option allows you to turn the automatic CISB file transfer on 
  3332. or off. The syntax to turn off auto CISB is: Call change_option "auto 
  3333. cisb=OFF",dde_output,dde_input To turn this option on you would replace the OFF 
  3334. with ON. 
  3335.  
  3336. cisb recovery. This option allows you to turn the CISB file recovery on or off. 
  3337. The syntax to turn off the CISB file recovery is: Call change_option "cisb 
  3338. recovery=OFF",dde_output,dde_input To turn this option on you would replace the 
  3339. OFF with ON. 
  3340.  
  3341. baud. This option allows you to change the current baud rate. This will also 
  3342. change the default baud rate saved in the setup file. The syntax for this 
  3343. command is: Call change_option "baud=19200",dde_output,dde_input 
  3344.  
  3345. startup script. Use this command to change the name of the script that will be 
  3346. executed upon startup of Pmcomm. The syntax of this command is: 
  3347. change_option("startup script=c:\pmcomm\startup.scr"); 
  3348.  
  3349. exit on hangup. This command allows you to have Pmcomm exit once data carrier 
  3350. detect (DCD) has dropped. This will only work correctly if Monitor DCD is also 
  3351. selected. The syntax for this command is: Call change_option "exit on 
  3352. hangup=ON",dde_output,dde_input 
  3353.  
  3354. working directory. To change the current working directory the syntax would be: 
  3355. Call change_option "working directory=c:\pmcomm",dde_output,dde_input 
  3356.  
  3357. scroll size. This command allows you to change the size of the Extended Scroll 
  3358. Back buffer. To change the scroll size the syntax would be: 
  3359.  
  3360. Call change_option "scroll size=65535",dde_output,dde_input 
  3361.  
  3362. keymap. The keymap must be in the working directory of Pmcomm. To change the 
  3363. keymap currently in use the syntax would be : Call change_option 
  3364. "keymap=ansi.map",dde_output,dde_input 
  3365.  
  3366. prompt on hangup. This command will turn on or off the prompt on hangup option. 
  3367. To turn this option on the syntax would be : Call change_option "prompt on 
  3368. hangup=ON",dde_output,dde_input 
  3369.  
  3370. prompt to save screen size. This command will turn on or off the prompt to save 
  3371. screen size option. To turn this option on the syntax would be : Call 
  3372. change_option "prompt to save screen size=ON",dde_output,dde_input 
  3373.  
  3374. prompt to save setup. This command will turn on or off the prompt to save setup 
  3375. option. To turn this option on the syntax would be : Call change_option "prompt 
  3376. to save setup=ON",dde_output,dde_input 
  3377.  
  3378. prompt on capture. This command will turn on or off the prompt on capture 
  3379. option. To turn this option on the syntax would be : Call change_option "prompt 
  3380. on captue=ON",dde_output,dde_input 
  3381.  
  3382. close device. This command will turn on or off the option to close the Port 
  3383. Device when it is not in use. To turn this option on the syntax would be : Call 
  3384. change_option "close device=ON",dde_output,dde_input 
  3385.  
  3386.  
  3387. ΓòÉΓòÉΓòÉ 12.1.24. REXX dial ΓòÉΓòÉΓòÉ
  3388.  
  3389. dial "name",dde_output,dde_input 
  3390.  
  3391. This command will allow a script to dial a number listed in the current Pmcomm 
  3392. dialing directory. To dial the entry call Compu-Plane you would use the 
  3393. following syntax: Call dial "Compu-Plane",dde_output,dde_input 
  3394.  
  3395. This command returns the baud rate of the connection or a 0 if there was no 
  3396. connection. One way that a zero could be returned is if the cancel button on 
  3397. the dialing dialog was pushed. If the REXX dial command returns a 0 you can use 
  3398. the REXX exit function to cancel the script. 
  3399.  
  3400.  
  3401. ΓòÉΓòÉΓòÉ 12.1.25. REXX get_dial_memo ΓòÉΓòÉΓòÉ
  3402.  
  3403. get_dial_memo dde_output,dde_input 
  3404.  
  3405. This command will retrieve the information stored in the memo field of the 
  3406. currently connected phone number. This will allow you to, for example, store 
  3407. your password in the dialing directory memo field, and write a script to use 
  3408. it. By doing this you can change your password without editing the script. All 
  3409. you would have to do is change the text in the memo field for that number. To 
  3410. retrieve the text stored in the current memo field the syntax would be: Call 
  3411. get_dial_memo dde_output,dde_input 
  3412.  
  3413.  
  3414. ΓòÉΓòÉΓòÉ 12.1.26. REXX clipboard_paste ΓòÉΓòÉΓòÉ
  3415.  
  3416. clipboard_paste dde_output,dde_input 
  3417.  
  3418. This command will retrieve text stored in the OS/2 clipboard. The maximum 
  3419. amount of text that can be retrieved at one time is 8192 bytes. To retrieve the 
  3420. text stored in the clipboard the syntax would be: Call clipboard_paste 
  3421. dde_output,dde_input 
  3422.  
  3423.  
  3424. ΓòÉΓòÉΓòÉ 12.1.27. REXX clipboard_copy ΓòÉΓòÉΓòÉ
  3425.  
  3426. clipboard_copy dde_output,dde_input 
  3427.  
  3428. This command will copy text to the OS/2 clipboard. The maximum amount of text 
  3429. that can be sent at one time is 8192 bytes. To send text to the clipboard the 
  3430. syntax would be: Call clipboard_copy "This is a test", dde_output,dde_input 
  3431.  
  3432.  
  3433. ΓòÉΓòÉΓòÉ 12.1.28. REXX clipboard_append ΓòÉΓòÉΓòÉ
  3434.  
  3435. clipboard_append dde_output,dde_input 
  3436.  
  3437. This command will append text to the existing text in the OS/2 clipboard. The 
  3438. maximum amount of text that can be sent at one time is 8192 bytes. To append 
  3439. text to the clipboard the syntax would be: Call clipboard_append "This is a 
  3440. test", dde_output,dde_input 
  3441.  
  3442.  
  3443. ΓòÉΓòÉΓòÉ 12.1.29. xmodem_send ΓòÉΓòÉΓòÉ
  3444.  
  3445. xmodem_send filename,dde_output,dde_input 
  3446.  
  3447. Example 
  3448.  
  3449. Call xmodem_send "filename.ext",dde_output,dde_input 
  3450.  
  3451. Description 
  3452.  
  3453. This call will invoke the Xmodem_CRC send routine, built into Pmcomm. Once 
  3454. issued the call will not return until the transfer either finishes or is 
  3455. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3456. uploading from the menu. 
  3457.  
  3458. Returns 
  3459.  
  3460. 1 if call is successful and 0 if unsuccessful. 
  3461.  
  3462.  
  3463. ΓòÉΓòÉΓòÉ 12.1.30. xmodem_receive ΓòÉΓòÉΓòÉ
  3464.  
  3465. xmodem_receive filename,dde_output,dde_input 
  3466.  
  3467. Example 
  3468.  
  3469. Call xmodem_receive "filename.ext",dde_output,dde_input 
  3470.  
  3471. Description 
  3472.  
  3473. This call will invoke the Xmodem_CRC receive routine, built into Pmcomm. Once 
  3474. issued the call will not return until the transfer either finishes or is 
  3475. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3476. downloading from the menu. The file will be downloaded into the download 
  3477. directory. The file name specified must not include a path. 
  3478.  
  3479. Returns 
  3480.  
  3481. 1 if call is successful and 0 if unsuccessful. 
  3482.  
  3483.  
  3484. ΓòÉΓòÉΓòÉ 12.1.31. xmodem_chk_send ΓòÉΓòÉΓòÉ
  3485.  
  3486. xmodem_chk_send filename,dde_output,dde_input 
  3487.  
  3488. Example 
  3489.  
  3490. Call xmodem_chk_send "filename.ext",dde_output,dde_input 
  3491.  
  3492. Description 
  3493.  
  3494. This call will invoke the Xmodem_Checksum send routine, built into Pmcomm. Once 
  3495. issued the call will not return until the transfer either finishes or is 
  3496. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3497. uploading from the menu. 
  3498.  
  3499. Returns 
  3500.  
  3501. 1 if call is successful and 0 if unsuccessful. 
  3502.  
  3503.  
  3504. ΓòÉΓòÉΓòÉ 12.1.32. xmodem_chk_receive ΓòÉΓòÉΓòÉ
  3505.  
  3506. xmodem_chk_receive filename,dde_output,dde_input 
  3507.  
  3508. Example 
  3509.  
  3510. Call xmodem_receive "filename.ext",dde_output,dde_input 
  3511.  
  3512. Description 
  3513.  
  3514. This call will invoke the Xmodem_Checksum receive routine, built into Pmcomm. 
  3515. Once issued the call will not return until the transfer either finishes or is 
  3516. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3517. downloading from the menu. The file will be downloaded into the download 
  3518. directory. The file name specified must not include a path. 
  3519.  
  3520. Returns 
  3521.  
  3522. 1 if call is successful and 0 if unsuccessful. 
  3523.  
  3524.  
  3525. ΓòÉΓòÉΓòÉ 12.1.33. xmodem_1k_send ΓòÉΓòÉΓòÉ
  3526.  
  3527. xmodem_1k_send filename,dde_output,dde_input 
  3528.  
  3529. Example 
  3530.  
  3531. Call xmodem_1k_send "filename.ext",dde_output,dde_input 
  3532.  
  3533. Description 
  3534.  
  3535. This call will invoke the 1K-Xmodem send routine, built into Pmcomm. Once 
  3536. issued the call will not return until the transfer either finishes or is 
  3537. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3538. uploading from the menu. 
  3539.  
  3540. Returns 
  3541.  
  3542. 1 if call is successful and 0 if unsuccessful. 
  3543.  
  3544.  
  3545. ΓòÉΓòÉΓòÉ 12.1.34. xmodem_1k_receive ΓòÉΓòÉΓòÉ
  3546.  
  3547. xmodem_1k_receive filename,dde_output,dde_input 
  3548.  
  3549. Example 
  3550.  
  3551. Call xmodem_1k_receive "filename.ext",dde_output,dde_input 
  3552.  
  3553. Description 
  3554.  
  3555. This call will invoke the 1K-Xmodem receive routine, built into Pmcomm. Once 
  3556. issued the call will not return until the transfer either finishes or is 
  3557. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3558. downloading from the menu. The file will be downloaded into the download 
  3559. directory. The file name specified must not include a path. 
  3560.  
  3561. Returns 
  3562.  
  3563. 1 if call is successful and 0 if unsuccessful. 
  3564.  
  3565.  
  3566. ΓòÉΓòÉΓòÉ 12.1.35. ymodem_send ΓòÉΓòÉΓòÉ
  3567.  
  3568. ymodem_send filename,dde_output,dde_input 
  3569.  
  3570. Example 
  3571.  
  3572. Call ymodem_send "filename.ext",dde_output,dde_input 
  3573.  
  3574. Description 
  3575.  
  3576. This call will invoke the Ymodem send routine, built into Pmcomm. Once issued 
  3577. the call will not return until the transfer either finishes or is aborted. 
  3578. Pmcomm will show the normal transfer dialog that it does when uploading from 
  3579. the menu. You may send multiple files by specifying more than file name. 
  3580.  
  3581. Returns 
  3582.  
  3583. Number of files transferred. 
  3584.  
  3585.  
  3586. ΓòÉΓòÉΓòÉ 12.1.36. ymodem_receive ΓòÉΓòÉΓòÉ
  3587.  
  3588. ymodem_receive dde_output,dde_input 
  3589.  
  3590. Example 
  3591.  
  3592. Call ymodem_receive dde_output,dde_input 
  3593.  
  3594. Description 
  3595.  
  3596. This call will invoke the Ymodem receive routine, built into Pmcomm. Once 
  3597. issued the call will not return until the transfer either finishes or is 
  3598. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3599. downloading from the menu. The file will be downloaded into the download 
  3600. directory. This one call will receive multiple files. The filenames used are 
  3601. the ones sent from the remote computer. 
  3602.  
  3603. Returns 
  3604.  
  3605. Number of files transferred. 
  3606.  
  3607.  
  3608. ΓòÉΓòÉΓòÉ 12.1.37. ymodemg_send ΓòÉΓòÉΓòÉ
  3609.  
  3610. ymodemg_send filename,dde_output,dde_input 
  3611.  
  3612. Example 
  3613.  
  3614. Call ymodemg_send "filename.ext",dde_output,dde_input 
  3615.  
  3616. Description 
  3617.  
  3618. This call will invoke the Ymodem-g send routine, built into Pmcomm. Once issued 
  3619. the call will not return until the transfer either finishes or is aborted. 
  3620. Pmcomm will show the normal transfer dialog that it does when uploading from 
  3621. the menu. You may send multiple files by specifying more than file name. 
  3622.  
  3623. Returns 
  3624.  
  3625. Number of files transferred. 
  3626.  
  3627.  
  3628. ΓòÉΓòÉΓòÉ 12.1.38. ymodemg_receive ΓòÉΓòÉΓòÉ
  3629.  
  3630. ymodemg_receive dde_output,dde_input 
  3631.  
  3632. Example 
  3633.  
  3634. Call ymodemg_receive dde_output,dde_input 
  3635.  
  3636. Description 
  3637.  
  3638. This call will invoke the Ymodem-g receive routine, built into Pmcomm. Once 
  3639. issued the call will not return until the transfer either finishes or is 
  3640. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3641. downloading from the menu. The file will be downloaded into the download 
  3642. directory. This one call will receive multiple files. The filenames used are 
  3643. the ones sent from the remote computer. 
  3644.  
  3645. Returns 
  3646.  
  3647. Number of files transferred. 
  3648.  
  3649.  
  3650. ΓòÉΓòÉΓòÉ 12.1.39. zmodem_send ΓòÉΓòÉΓòÉ
  3651.  
  3652. zmodem_send filename,dde_output,dde_input 
  3653.  
  3654. Example 
  3655.  
  3656. Call zmodem_send "filename.ext",dde_output,dde_input 
  3657.  
  3658. Description 
  3659.  
  3660. This call will invoke the Zmodem send routine, built into Pmcomm. Once issued 
  3661. the call will not return until the transfer either finishes or is aborted. 
  3662. Pmcomm will show the normal transfer dialog that it does when uploading from 
  3663. the menu. You may send multiple files by specifying more than file name. 
  3664.  
  3665. Returns 
  3666.  
  3667. Number of files transferred. 
  3668.  
  3669.  
  3670. ΓòÉΓòÉΓòÉ 12.1.40. zmodem_receive ΓòÉΓòÉΓòÉ
  3671.  
  3672. zmodem_receive dde_output,dde_input 
  3673.  
  3674. Example 
  3675.  
  3676. Call zmodem_receive dde_output,dde_input 
  3677.  
  3678. Description 
  3679.  
  3680. This call will invoke the Zmodem receive routine, built into Pmcomm. Once 
  3681. issued the call will not return until the transfer either finishes or is 
  3682. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3683. downloading from the menu. The file will be downloaded into the download 
  3684. directory. This one call will receive multiple files. The filenames used are 
  3685. the ones sent from the remote computer. 
  3686.  
  3687. Returns 
  3688.  
  3689. Number of files transferred. 
  3690.  
  3691.  
  3692. ΓòÉΓòÉΓòÉ 12.1.41. kermit_send ΓòÉΓòÉΓòÉ
  3693.  
  3694. kermit_send filename,dde_output,dde_input 
  3695.  
  3696. Example 
  3697.  
  3698. Call kermit_send "filename.ext",dde_output,dde_input 
  3699.  
  3700. Description 
  3701.  
  3702. This call will invoke the Kermit send routine, built into Pmcomm. Once issued 
  3703. the call will not return until the transfer either finishes or is aborted. 
  3704. Pmcomm will show the normal transfer dialog that it does when uploading from 
  3705. the menu. You may send multiple files by specifying more than file name. 
  3706.  
  3707. Returns 
  3708.  
  3709. Number of files transferred. 
  3710.  
  3711.  
  3712. ΓòÉΓòÉΓòÉ 12.1.42. kermit_receive ΓòÉΓòÉΓòÉ
  3713.  
  3714. kermit_receive dde_output,dde_input 
  3715.  
  3716. Example 
  3717.  
  3718. Call kermit_receive dde_output,dde_input 
  3719.  
  3720. Description 
  3721.  
  3722. This call will invoke the Kermit receive routine, built into Pmcomm. Once 
  3723. issued the call will not return until the transfer either finishes or is 
  3724. aborted. Pmcomm will show the normal transfer dialog that it does when 
  3725. downloading from the menu. The file will be downloaded into the download 
  3726. directory. This one call will receive multiple files. The filenames used are 
  3727. the ones sent from the remote computer. 
  3728.  
  3729. Returns 
  3730.  
  3731. Number of files transferred. 
  3732.  
  3733.  
  3734. ΓòÉΓòÉΓòÉ 12.1.43. ascii_send ΓòÉΓòÉΓòÉ
  3735.  
  3736. ascii_send filename,dde_output,dde_input 
  3737.  
  3738. Example 
  3739.  
  3740. Call ascii_send "filename.ext",dde_output,dde_input 
  3741.  
  3742. Description 
  3743.  
  3744. This call will invoke the ASCII send routine, built into Pmcomm. Once issued 
  3745. the call will not return until the transfer either finishes or is aborted. 
  3746. Pmcomm will show the normal transfer dialog that it does when uploading from 
  3747. the menu. 
  3748.  
  3749. Returns 
  3750.  
  3751. 1 if call is successful and 0 if unsuccessful. 
  3752.  
  3753.  
  3754. ΓòÉΓòÉΓòÉ 12.1.44. ascii_receive ΓòÉΓòÉΓòÉ
  3755.  
  3756. ascii_receive filename,dde_output,dde_input 
  3757.  
  3758. Example 
  3759.  
  3760. Call ascii_receive "filename.ext",dde_output,dde_input 
  3761.  
  3762. Description 
  3763.  
  3764. This call will invoke the ASCII receive routine, built into Pmcomm. Once issued 
  3765. the call will not return until the transfer either finishes or is aborted. 
  3766. Pmcomm will show the normal transfer dialog that it does when downloading from 
  3767. the menu. The file will be downloaded into the download directory. The file 
  3768. name specified must not include a path. 
  3769.  
  3770. Returns 
  3771.  
  3772. 1 if call is successful and 0 if unsuccessful. 
  3773.  
  3774.  
  3775. ΓòÉΓòÉΓòÉ 12.1.45. cisb_send ΓòÉΓòÉΓòÉ
  3776.  
  3777. cisb_send filename,dde_output,dde_input 
  3778.  
  3779. Example 
  3780.  
  3781. Call cisb_send "filename.ext",dde_output,dde_input 
  3782.  
  3783. Description 
  3784.  
  3785. This call will invoke the CISB send routine, built into Pmcomm. Once issued the 
  3786. call will not return until the transfer either finishes or is aborted. Pmcomm 
  3787. will show the normal transfer dialog that it does when uploading from the menu. 
  3788.  
  3789. Returns 
  3790.  
  3791. 1 if call is successful and 0 if unsuccessful. 
  3792.  
  3793.  
  3794. ΓòÉΓòÉΓòÉ 12.1.46. cisb_receive ΓòÉΓòÉΓòÉ
  3795.  
  3796. cisb_receive filename,dde_output,dde_input 
  3797.  
  3798. Example 
  3799.  
  3800. Call cisb_receive "filename.ext",dde_output,dde_input 
  3801.  
  3802. Description 
  3803.  
  3804. This call will invoke the CISB receive routine, built into Pmcomm. Once issued 
  3805. the call will not return until the transfer either finishes or is aborted. 
  3806. Pmcomm will show the normal transfer dialog that it does when downloading from 
  3807. the menu. The file will be downloaded into the download directory. The file 
  3808. name specified must not include a path. 
  3809.  
  3810. Returns 
  3811.  
  3812. 1 if call is successful and 0 if unsuccessful. 
  3813.  
  3814.  
  3815. ΓòÉΓòÉΓòÉ 12.2. Internal Functions ΓòÉΓòÉΓòÉ
  3816.  
  3817. These are script functions that are built into Pmcomm. 
  3818.  
  3819.  
  3820. ΓòÉΓòÉΓòÉ 12.2.1. wait_for (internal) ΓòÉΓòÉΓòÉ
  3821.  
  3822. wait_for("string"); 
  3823.  
  3824. This will wait until the word 'string' is received. One use of this is when 
  3825. logging onto a BBS you can have it wait until prompted for a first name. 
  3826.  
  3827.  
  3828. ΓòÉΓòÉΓòÉ 12.2.2. puts ΓòÉΓòÉΓòÉ
  3829.  
  3830. puts("string"); 
  3831.  
  3832. This will send string to the communication port. The 'C' language special 
  3833. character '\r','\n','\b',and '\a' can also be used. 
  3834.  
  3835. The \r means carriage return. 
  3836.  
  3837. The \n means carriage return and line feed combination. 
  3838.  
  3839. The \b means backspace. 
  3840.  
  3841. The \a means alert (Pmcomm will beep). 
  3842.  
  3843.  
  3844. ΓòÉΓòÉΓòÉ 12.2.3. sleep (internal) ΓòÉΓòÉΓòÉ
  3845.  
  3846. sleep(1000); 
  3847.  
  3848. This will wait for the number of milliseconds specified. In this example it 
  3849. would sleep for one second. 
  3850.  
  3851.  
  3852. ΓòÉΓòÉΓòÉ 12.2.4. call ΓòÉΓòÉΓòÉ
  3853.  
  3854. call("filename"); 
  3855.  
  3856. This allows you to nest scripts. If you put the name of the script that you 
  3857. want to execute where it says filename, it will execute that script and then 
  3858. continue. The limit on number of nested scripts is only by available stack 
  3859. space. 
  3860.  
  3861.  
  3862. ΓòÉΓòÉΓòÉ 12.2.5. capture_on ΓòÉΓòÉΓòÉ
  3863.  
  3864. capture_on("filename"); 
  3865.  
  3866. Captures all screen output to a file. Replace filename with the name of the 
  3867. file you want the output written to. The capture file will be automatically 
  3868. closed when you log off, if you have Monitor_DCD selected. 
  3869.  
  3870.  
  3871. ΓòÉΓòÉΓòÉ 12.2.6. capture_off ΓòÉΓòÉΓòÉ
  3872.  
  3873. capture_off(); 
  3874.  
  3875. Stops screen capture and closes the capture file. You can also close the 
  3876. capture file from the menu. 
  3877.  
  3878.  
  3879. ΓòÉΓòÉΓòÉ 12.2.7. change_option ΓòÉΓòÉΓòÉ
  3880.  
  3881. change_option("option"); 
  3882.  
  3883. This command will allow a script to change certain options in Pmcomm. The 
  3884. options that can be changed are: 
  3885.  
  3886. device. This option will allow you to change the current device that Pmcomm is 
  3887. using. For example to change the current device to COM2, the syntax would be: 
  3888. change_option("device=COM2"); 
  3889.  
  3890. hardware. This option will allow you to turn hardware flow control on or off. 
  3891. If you want to turn hardware flow control off the syntax would be: 
  3892. change_option("hardware=OFF"); To turn hardware flow control on you would 
  3893. replace the OFF with ON. 
  3894.  
  3895. XON/XOFF. This option will allow you to turn Xon/Xoff flow control on or off. 
  3896. If you want to turn Xon/Xoff flow control off the syntax would be: 
  3897. change_option("XON/XOFF=OFF"); To turn Xon/Xoff flow control on you would 
  3898. replace the OFF with ON. 
  3899.  
  3900. dtr. If this option is turned on the DTR will be lowered when hangup is 
  3901. selected. If you want to turn this option off the syntax would be: 
  3902. change_option("dtr=OFF"); 
  3903.  
  3904. stop bits. This option will allow you to set the number of stop bits that the 
  3905. communication port is set to. The communication port will be changed before the 
  3906. command is completed, and the default stop bits will be set to the new value. 
  3907. To set the communication port to 1 stop bit, the syntax would be: 
  3908. change_option("stop bits=1"); The communication port can only be set to 1 or 2 
  3909. stop bits from a script. 
  3910.  
  3911. data bits. This option will allow you to set the number of data bits that the 
  3912. communication port is set to. The communication port will be changed before the 
  3913. command is completed, and the default data bits will be set to the new value. 
  3914. To set the communication port to 8 data bits, the syntax would be: 
  3915. change_option("data bits=8"); The communication port can be set to 8, 7, 6 or 5 
  3916. data bits. 
  3917.  
  3918. parity. This option will allow you to set the parity for the current 
  3919. communication port. The communication port will be changed before the command 
  3920. is completed, and the default parity will be set to the new value. To set the 
  3921. communication port to Even parity, the syntax would be: 
  3922. change_option("parity=Even"); The communication port can be set to None, Even , 
  3923. Odd, Mark or Space parity. 
  3924.  
  3925. initialization string. This option allows you to change the modem 
  3926. initialization string that Pmcomm uses. To change the string the syntax would 
  3927. be: change_option("initialization string=ATZ"); 
  3928.  
  3929. dial timeout. This option will allow you to set the number of seconds that 
  3930. Pmcomm will wait when dialing a remote computer. If you wanted to set the 
  3931. number of seconds to 60 the syntax for the command would be: 
  3932. change_option("dial timeout=60"); 
  3933.  
  3934. redial delay. This option will allow you to set the number of seconds that 
  3935. Pmcomm will wait between dialing attempts. If you wanted to set the number of 
  3936. seconds to 6 the syntax for the command would be: change_option("redial 
  3937. delay=6"); 
  3938.  
  3939. hangup string. This option allows you to change the modem hangup string that 
  3940. Pmcomm uses. To change the string the syntax would be: change_option("hangup 
  3941. string=+++~~~ATH^M"); 
  3942.  
  3943. auto zmodem string. Some host systems do not send a standard auto zmodem 
  3944. string. This command allows you to change the string that Pmcomm looks for, 
  3945. when the host starts a zmodem send file transfer. When Pmcomm finds a match it 
  3946. will start a zmodem receive file transfer. To change the auto zmodem string the 
  3947. syntax would be: 
  3948.  
  3949. change_option("auto zmodem string=B00000"); 
  3950.  
  3951. zmodem date. This option allows you turn on and off whether Pmcomm will compare 
  3952. the file dates during a zmodem resume file transfer. The syntax to turn the 
  3953. date compare off would be: 
  3954.  
  3955. change_option("zmodem date=OFF"); To turn this option on you would replace the 
  3956. OFF with ON. 
  3957.  
  3958. zmodem rename. This option allows you turn on and off whether Pmcomm will 
  3959. rename duplicate files, if a resume fails (or is turned off). If this option is 
  3960. on Pmcomm will rename the new file with a number for an extension. The syntax 
  3961. to turn the zmodem rename off would be: 
  3962.  
  3963. change_option("zmodem rename=OFF"); To turn this option on you would replace 
  3964. the OFF with ON. 
  3965.  
  3966. auto zmodem. This option will allow you to turn the auto zmodem feature on or 
  3967. off. If you want to turn auto zmodem off the syntax would be: 
  3968. change_option("auto zmodem=OFF"); To turn auto zmodem on you would replace the 
  3969. OFF with ON. 
  3970.  
  3971. zmodem recovery. This option will allow you to turn the zmodem recovery feature 
  3972. on or off. If you want to turn zmodem recovery off the syntax would be: 
  3973. change_option("zmodem recovery=OFF"); To turn zmodem recovery on you would 
  3974. replace the OFF with ON. 
  3975.  
  3976. zmodem crc. This option allows you to select either the 32 bit or 16 bit zmodem 
  3977. CRC error detection option. To select the 32 bit option the syntax would be: 
  3978. change_option("zmodem crc=32"); 
  3979.  
  3980. download directory. To change the current download directory the syntax would 
  3981. be: change_option("download directory=c:\pmcomm\"); 
  3982.  
  3983. hide dial. This option allows you to select if the main terminal window is 
  3984. hidden while Pmcomm is dialing a remote computer. To allow the main window to 
  3985. remain visible while dialing the syntax would be: change_option("hide 
  3986. dial=OFF"); To turn hide dial on you would replace the OFF with ON. 
  3987.  
  3988. hide transfer. This option allows you to select if the main terminal window is 
  3989. hidden while Pmcomm is doing a file transfer. To allow the main window to 
  3990. remain visible while doing file transfers the syntax would be: 
  3991. change_option("hide transfer=OFF"); To turn hide transfer on you would replace 
  3992. the OFF with ON. 
  3993.  
  3994. auto vertical. This option determines if Pmcomm will automatically scroll the 
  3995. terminal window vertically to keep the current cursor position in the window. 
  3996. To turn this option off the syntax would be: change_option("auto 
  3997. vertical=OFF"); To turn this option on you would replace the OFF with ON. 
  3998.  
  3999. auto horizontal. This option determines if Pmcomm will automatically scroll the 
  4000. terminal window horizontally to keep the current cursor position in the window. 
  4001. To turn this option off the syntax would be: change_option("auto 
  4002. horizontal=OFF"); To turn this option on you would replace the OFF with ON. 
  4003.  
  4004. save dial. If this option is on then Pmcomm will store the position of the 
  4005. dialing dialog box, and use it the next time a number is dialed. To turn this 
  4006. option off the syntax would be: change_option("save dial=OFF"); To turn this 
  4007. option on you would replace the OFF with ON. 
  4008.  
  4009. save transfer. If this option is on then Pmcomm will store the position of the 
  4010. transfer dialog box, and use it the next time a file is transferred dialed. To 
  4011. turn this option off the syntax would be: change_option("save transfer=OFF"); 
  4012. To turn this option on you would replace the OFF with ON. 
  4013.  
  4014. sound. This option allows you to turn the warning beeps in Pmcomm, on or off. 
  4015. To turn this option off the syntax would be: change_option("sound=OFF"); To 
  4016. turn this option on you would replace the OFF with ON. 
  4017.  
  4018. monitor dcd. If this option is on, then Pmcomm will monitor the presence of 
  4019. data carrier detect (DCD). To turn this option off the syntax would be: 
  4020. change_option("monitor dcd=OFF"); To turn this option on you would replace the 
  4021. OFF with ON. 
  4022.  
  4023. page length. This option allows you to set the ANSI page length from a script. 
  4024. Following is an example of how to set the page length to 25 lines. 
  4025. change_option("page length=25"); 
  4026.  
  4027. terminal. This option allows you to change the type of terminal from within a 
  4028. Pmcomm script. The following example would set the terminal type to ANSI. 
  4029. change_option("terminal=ANSI"); The available valid terminal types are TTY, 
  4030. ANSI, VT100 or VT220. 
  4031.  
  4032. foreground. This option allows you to change the foreground color from within a 
  4033. Pmcomm script. The available colors are: 
  4034.  
  4035. black 
  4036. blue 
  4037. green 
  4038. cyan 
  4039. red 
  4040. magenta 
  4041. brown 
  4042. white 
  4043. dark grey 
  4044. light blue 
  4045. light green 
  4046. light cyan 
  4047. light red 
  4048. pink 
  4049. yellow 
  4050. bright white 
  4051.  
  4052. The syntax to change the foreground color to cyan would be: 
  4053. change_option("foreground=cyan"); 
  4054.  
  4055. background. This option allows you to change the background color from within a 
  4056. Pmcomm script. The available colors are: 
  4057.  
  4058. black 
  4059. blue 
  4060. green 
  4061. cyan 
  4062. red 
  4063. magenta 
  4064. brown 
  4065. white 
  4066. dark grey 
  4067. light blue 
  4068. light green 
  4069. light cyan 
  4070. light red 
  4071. pink 
  4072. yellow 
  4073. bright white 
  4074.  
  4075. The syntax to change the background color to black would be: 
  4076. change_option("background=black"); 
  4077.  
  4078. echo. This option allows you turn on and off the local keystroke echo. The 
  4079. syntax to turn echo off would be: change_option("echo=OFF"); To turn this 
  4080. option on you would replace the OFF with ON. 
  4081.  
  4082. prefix1 
  4083. prefix2 
  4084. prefix3 
  4085.  
  4086.  These options allow you to change the dialing prefixes. For example to change 
  4087. prefix1 you would use the following syntax: change_option("prefix1=ATDT"); 
  4088.  
  4089. suffix1 
  4090. suffix2 
  4091. suffix3 
  4092.  
  4093.  These options allow you to change the dialing suffixes. For example to change 
  4094. suffix1 you would use the following syntax: change_option("suffix1=^M"); 
  4095.  
  4096. strip ansi. This option allows you to select if Pmcomm will strip the ANSI 
  4097. commands from a capture file. The syntax to turn off the stripping of the ANSI 
  4098. commands would be: change_option("strip ansi=OFF"); To turn this option on you 
  4099. would replace the OFF with ON. 
  4100.  
  4101. macro1 
  4102. macro2 
  4103. macro3 
  4104. macro4 
  4105. macro5 
  4106. macro6 
  4107. macro7 
  4108. macro8 
  4109. macro9 
  4110. macro10 
  4111.  
  4112. These options allow you to change the keyboard macros. For example to change 
  4113. macro1 you would use the following syntax: change_option("macro1=ATZ"); 
  4114.  
  4115. phone directory. To change the current phone directory the syntax would be: 
  4116. change_option("phone directory=c:\pmcomm\pmcomm.fon"); This would change the 
  4117. file used as the Pmcomm phone file. 
  4118.  
  4119. script directory. To change the current script directory the syntax would be: 
  4120. change_option("script directory=c:\pmcomm\script"); 
  4121.  
  4122. capture directory. To change the current capture file directory the syntax 
  4123. would be: change_option("capture directory=c:\pmcomm\capture"); 
  4124.  
  4125. chat. This option allows you to turn the Pmcomm chat mode on or off. The syntax 
  4126. to turn off chat mode is: change_option("chat=OFF"); To turn this option on you 
  4127. would replace the OFF with ON. 
  4128.  
  4129. auto cisb. This option allows you to turn the automatic CISB file transfer on 
  4130. or off. The syntax to turn off auto CISB is: change_option("auto cisb=OFF"); To 
  4131. turn this option on you would replace the OFF with ON. 
  4132.  
  4133. cisb recovery. This option allows you to turn the CISB file recovery on or off. 
  4134. The syntax to turn off the CISB file recovery is: change_option("cisb 
  4135. recovery=OFF"); To turn this option on you would replace the OFF with ON. 
  4136.  
  4137. baud. This option allows you to change the current baud rate. This will also 
  4138. change the default baud rate saved in the setup file. The syntax for this 
  4139. command is: change_option("baud=19200"); 
  4140.  
  4141. startup script. Use this command to change the name of the script that will be 
  4142. executed upon startup of Pmcomm. The syntax of this command is: 
  4143. change_option("startup script=c:\pmcomm\startup.scr"); 
  4144.  
  4145. exit on hangup. This command allows you to have Pmcomm exit once data carrier 
  4146. detect (DCD) has dropped. This will only work correctly if Monitor DCD is also 
  4147. selected. The syntax for this command is: change_option("exit on hangup=ON"); 
  4148.  
  4149. working directory. To change the current working directory the syntax would be: 
  4150. change_option("working directory=c:\pmcomm"); 
  4151.  
  4152. scroll size. This command allows you to change the size of the Extended Scroll 
  4153. Back buffer. To change the scroll size the syntax would be: 
  4154.  
  4155. change_option("scroll size=65535"); 
  4156.  
  4157. keymap. The keymap must be in the working directory of Pmcomm. To change the 
  4158. keymap currently in use the syntax would be : change_option("keymap=ansi.map"); 
  4159.  
  4160. prompt on hangup. This command will turn on or off the prompt on hangup option. 
  4161. To turn this option on the syntax would be : change_option("prompt on 
  4162. hangup=ON"); 
  4163.  
  4164. prompt to save screen size. This command will turn on or off the prompt to save 
  4165. screen size option. To turn this option on the syntax would be : 
  4166. change_option("prompt to save screen size=ON"); 
  4167.  
  4168. prompt to save setup. This command will turn on or off the prompt to save setup 
  4169. option. To turn this option on the syntax would be : change_option("prompt to 
  4170. save setup=ON"); 
  4171.  
  4172. prompt on capture. This command will turn on or off the prompt on capture 
  4173. option. To turn this option on the syntax would be : change_option("prompt on 
  4174. captue=ON"); 
  4175.  
  4176. close device. This command will turn on or off the option to close the Port 
  4177. Device when it is not in use. To turn this option on the syntax would be : 
  4178. change_option("close device=ON"); 
  4179.  
  4180.  
  4181. ΓòÉΓòÉΓòÉ 12.2.8. Internal script dial ΓòÉΓòÉΓòÉ
  4182.  
  4183. dial("name"); 
  4184.  
  4185. This command will allow a script to dial a number listed in the current Pmcomm 
  4186. dialing directory. To dial the entry call Compu-Plane you would use the 
  4187. following syntax: dial("Compu-Plane"); 
  4188.  
  4189.  
  4190. ΓòÉΓòÉΓòÉ 12.2.9. shell ΓòÉΓòÉΓòÉ
  4191.  
  4192. shell("\path\filename.ext"); 
  4193.  
  4194. Allows you to call an external program to run from a script. 
  4195.  
  4196.  
  4197. ΓòÉΓòÉΓòÉ 12.2.10. exit (function) ΓòÉΓòÉΓòÉ
  4198.  
  4199. exit(); 
  4200.  
  4201. This function, once called, will exit Pmcomm. 
  4202.  
  4203.  
  4204. ΓòÉΓòÉΓòÉ 12.3. 'C' Functions ΓòÉΓòÉΓòÉ
  4205.  
  4206. These are the functions that are included in the cpmcomm and cpmcom32 
  4207. libraries. The cpmcomm.lib is a large model library and the cpmcom32.lib is a 
  4208. large model 32 bit library. The cpmcomm.h file has function definitions for the 
  4209. cpmcomm library and cpmcom32.h file has function definitions for the cpmcom32 
  4210. library, and should be included in any program that uses the cpmcomm libraries. 
  4211. The 32 bit library is made to be used with the IBM C Set/2 compiler. The 
  4212. function init_lib must be called before any other of the library routines are 
  4213. used. 
  4214.  
  4215.  
  4216. ΓòÉΓòÉΓòÉ 12.3.1. wait_for ΓòÉΓòÉΓòÉ
  4217.  
  4218. USHORT wait_for(USHORT argc,CHAR **argv,HFILE port); 
  4219.  
  4220. Example 
  4221.  
  4222. USHORT result; 
  4223.  
  4224. CHAR *argv[2]; 
  4225.  
  4226. CHAR string1[80]; 
  4227.  
  4228. CHAR string2[80]; 
  4229.  
  4230. strcpy(string1,"first name?"); 
  4231.  
  4232. strcpy(string2,"last name?"); 
  4233.  
  4234. argv[0] = string1; 
  4235.  
  4236. argv[1] = string2; 
  4237.  
  4238. result = wait_for(2,argv,port); 
  4239.  
  4240. Description 
  4241.  
  4242. The above example would wait for either first name?, or last name?, from the 
  4243. communication port. The function will return the index of the string that 
  4244. matched. For example if the wait_for received last name?, then the result would 
  4245. be 2. You can specify any number of strings depending on memory available. 
  4246.  
  4247. Returns 
  4248.  
  4249. Index of matched string or zero if timeout or error. 
  4250.  
  4251.  
  4252. ΓòÉΓòÉΓòÉ 12.3.2. wait_fore ΓòÉΓòÉΓòÉ
  4253.  
  4254. USHORT wait_fore(USHORT argc,CHAR **argv,HFILE port, HFILE screen_handle); 
  4255.  
  4256. Example 
  4257.  
  4258. USHORT result; 
  4259.  
  4260. CHAR *argv[2]; 
  4261.  
  4262. CHAR string1[80]; 
  4263.  
  4264. CHAR string2[80]; 
  4265.  
  4266. strcpy(string1,"first name?"); 
  4267.  
  4268. strcpy(string2,"last name?"); 
  4269.  
  4270. argv[0] = string1; 
  4271.  
  4272. argv[1] = string2; 
  4273.  
  4274. result = wait_for(2,argv,port,screen_handle); 
  4275.  
  4276. Description 
  4277.  
  4278. The first example would wait for either first name?, or last name?, from the 
  4279. communication port and echo the out_put to the Pmcomm screen. 
  4280.  
  4281. Returns 
  4282.  
  4283. Index of matched string or zero if timeout or error. 
  4284.  
  4285.  
  4286. ΓòÉΓòÉΓòÉ 12.3.3. put_s ΓòÉΓòÉΓòÉ
  4287.  
  4288. USHORT put_s(char *string,HFILE port); 
  4289.  
  4290. Example 
  4291.  
  4292. put_s("first name",port); 
  4293.  
  4294. Description 
  4295.  
  4296. This call will send string out to port. In the above example first name will be 
  4297. sent to the communication port. If screen_handle is specified instead of port 
  4298. then the string will be sent to the Pmcomm screen. 
  4299.  
  4300. Returns 
  4301.  
  4302. Length of string actually written. 
  4303.  
  4304.  
  4305. ΓòÉΓòÉΓòÉ 12.3.4. sleep ΓòÉΓòÉΓòÉ
  4306.  
  4307. VOID sleep(ULONG time); 
  4308.  
  4309. Example 
  4310.  
  4311. sleep(1000L); 
  4312.  
  4313. Description 
  4314.  
  4315. This call will delay the program for the amount of milliseconds specified. The 
  4316. above example will delay the computer for one second. 
  4317.  
  4318. Returns 
  4319.  
  4320. None. 
  4321.  
  4322.  
  4323. ΓòÉΓòÉΓòÉ 12.3.5. beep ΓòÉΓòÉΓòÉ
  4324.  
  4325. VOID beep(USHORT frequency,USHORT duration); 
  4326.  
  4327. Example 
  4328.  
  4329. beep(495,100); 
  4330.  
  4331. Description 
  4332.  
  4333. The above example will beep the speaker. 
  4334.  
  4335. Returns 
  4336.  
  4337. None. 
  4338.  
  4339.  
  4340. ΓòÉΓòÉΓòÉ 12.3.6. os2_shell ΓòÉΓòÉΓòÉ
  4341.  
  4342. VOID os2_shell(HFILE port,HFILE port); 
  4343.  
  4344. Example 
  4345.  
  4346. os2_shell(port,port); 
  4347.  
  4348. Description 
  4349.  
  4350. This command will allow a caller to shell to OS/2, remotely. The first 
  4351. parameter is input handle and the second is the output handle. In the example 
  4352. above, the command will receive and send the information to the communication 
  4353. port. 
  4354.  
  4355. Returns 
  4356.  
  4357. None. 
  4358.  
  4359.  
  4360. ΓòÉΓòÉΓòÉ 12.3.7. init_lib ΓòÉΓòÉΓòÉ
  4361.  
  4362. USHORT init_lib(int argc,char **argv); 
  4363.  
  4364. Example 
  4365.  
  4366. main(argc,argv) 
  4367.  
  4368.  
  4369. init_lib(argc,argv); 
  4370.  
  4371. ... 
  4372.  
  4373.  
  4374. The init_lib function will initialize some global variables that are passed on 
  4375. the command line. These variables are: 
  4376.  
  4377. USHORT port; 
  4378.  
  4379. CHAR portname[15]; 
  4380.  
  4381. HFILE dde_output,dde_input; 
  4382.  
  4383. HFILE screen_handle; 
  4384.  
  4385. This function must be called before any other library function is called. 
  4386.  
  4387. Returns 
  4388.  
  4389. 1 if sucessful and 0 if not. 
  4390.  
  4391.  
  4392. ΓòÉΓòÉΓòÉ 12.3.8. 'C' set_download_path ΓòÉΓòÉΓòÉ
  4393.  
  4394. VOID set_download_path(char *path); 
  4395.  
  4396. Example 
  4397.  
  4398. set_download_path("c:\pmcomm"); 
  4399.  
  4400. Description 
  4401.  
  4402. The above example will set the download path to c:\pmcomm. This will store all 
  4403. of the files received in that directory. 
  4404.  
  4405. Returns 
  4406.  
  4407. None. 
  4408.  
  4409.  
  4410. ΓòÉΓòÉΓòÉ 12.3.9. setcom ΓòÉΓòÉΓòÉ
  4411.  
  4412. SHORT setcom(char *baud,UCHAR parity,UCHAR data_bit,UCHAR stop_bits,HFILE 
  4413. port); 
  4414.  
  4415. Example 
  4416.  
  4417. setcom("2400",'N',8,1,port); 
  4418.  
  4419. Description 
  4420.  
  4421. This would set the communication port to 2400 baud, no parity, 8 data bits, 1 
  4422. stop bit. Baud can be from 300 to 19200 with the standard OS/2 device driver. 
  4423. Parity can be N(none), O(odd), E(even), M(marked), or S(spaced). Data bits can 
  4424. be 5, 6, 7 or 8. Stop bits can be 1 or 2 (2 can only be used with 5 data bits). 
  4425. If the baud parameter is an empty string i.e. setcom("",'E',7,1,port) this 
  4426. leaves the baud at the current rate but set the line characteristics to 7, 
  4427. Even, 1. 
  4428.  
  4429. Returns 
  4430.  
  4431. 1 if successful and 0 if unsuccessful. 
  4432.  
  4433.  
  4434. ΓòÉΓòÉΓòÉ 12.3.10. sendb ΓòÉΓòÉΓòÉ
  4435.  
  4436. VOID sendb(LONG length,HFILE port); 
  4437.  
  4438. Example 
  4439.  
  4440. sendb(300L,port); 
  4441.  
  4442. Description 
  4443.  
  4444. This call sends a break signal a certain time in milliseconds. The above 
  4445. example would send a break signal for 300 milliseconds. This call is mostly 
  4446. used to establish direct connects (not using a modem). Three hundred 
  4447. milliseconds should be okay for most situations. 
  4448.  
  4449. Returns 
  4450.  
  4451. None. 
  4452.  
  4453.  
  4454. ΓòÉΓòÉΓòÉ 12.3.11. dcd ΓòÉΓòÉΓòÉ
  4455.  
  4456. USHORT dcd(HFILE port); 
  4457.  
  4458. Example 
  4459.  
  4460. dcd(port); 
  4461.  
  4462. Description 
  4463.  
  4464. This call checks to see if there is a carrier detected on the modem. You can 
  4465. use this to see if Pmcomm is still online to a remote computer. For this 
  4466. information to be correct the modem must support dcd and the modem must be 
  4467. configured to support dcd. To find the command refer to your owner's manual. 
  4468.  
  4469. Returns 
  4470.  
  4471. 1 if carrier detected and 0 if no carrier. 
  4472.  
  4473.  
  4474. ΓòÉΓòÉΓòÉ 12.3.12. char_avail ΓòÉΓòÉΓòÉ
  4475.  
  4476. USHORT char_avail(HFILE port); 
  4477.  
  4478. Example 
  4479.  
  4480. char_avail(port); 
  4481.  
  4482. Description 
  4483.  
  4484. This call checks to see how many characters are available in the device drivers 
  4485. receive buffer. You can use this function to check to see if the device driver 
  4486. has received any characters from the communication port. 
  4487.  
  4488. Returns 
  4489.  
  4490. Number of characters in device driver receive queue. 
  4491.  
  4492.  
  4493. ΓòÉΓòÉΓòÉ 12.3.13. read_timeout ΓòÉΓòÉΓòÉ
  4494.  
  4495. read_timeout(USHORT timeout,HFILE port); 
  4496.  
  4497. Example 
  4498.  
  4499. read_timeout(20000,port); 
  4500.  
  4501. Description 
  4502.  
  4503. This call sets the length of time (in milliseconds) that wait_for, wait_fore, 
  4504. get_ch will wait for a character from the communication port. The above example 
  4505. will make the functions wait for 20 seconds. 
  4506.  
  4507. Returns 
  4508.  
  4509. 1 if successful and 0 if unsuccessful. 
  4510.  
  4511.  
  4512. ΓòÉΓòÉΓòÉ 12.3.14. get_ch ΓòÉΓòÉΓòÉ
  4513.  
  4514. CHAR get_ch(HFILE port); 
  4515.  
  4516. Example 
  4517.  
  4518. ch = get_ch(port); 
  4519.  
  4520. Description 
  4521.  
  4522. This call will get a character from the communication port. If no character is 
  4523. available by the time set with read_timeout the function will return with a 
  4524. value of -1. Otherwise the function will return with the character read. 
  4525.  
  4526. Returns 
  4527.  
  4528. char value if successful and -1 if unsuccessful. 
  4529.  
  4530.  
  4531. ΓòÉΓòÉΓòÉ 12.3.15. ring_detect ΓòÉΓòÉΓòÉ
  4532.  
  4533. USHORT ring_detect(HFILE port); 
  4534.  
  4535. Example 
  4536.  
  4537. ring_detect(port); 
  4538.  
  4539. Description 
  4540.  
  4541. This call can be used to inform a program if the phone is ringing. 
  4542.  
  4543. Returns 
  4544.  
  4545. 1 if ring detected, 0 if no ring. 
  4546.  
  4547.  
  4548. ΓòÉΓòÉΓòÉ 12.3.16. drop_dtr ΓòÉΓòÉΓòÉ
  4549.  
  4550. VOID drop_dtr(HFILE port); 
  4551.  
  4552. Example 
  4553.  
  4554. drop_dtr(port); 
  4555.  
  4556. Description 
  4557.  
  4558. This call is usually used to make a modem hang up. The modem must be configured 
  4559. to allow this. To find the command for your modem, check your owner's manual. 
  4560. Dtr needs to be dropped for about 2-3 seconds to make sure the modem sees the 
  4561. drop in DTR. After that length of time raise_dtr can be called to bring DTR 
  4562. back up. On a Hayes 2400 the above command will also keep the modem from doing 
  4563. an auto answer until you raise_dtr again. 
  4564.  
  4565. Returns 
  4566.  
  4567. None. 
  4568.  
  4569.  
  4570. ΓòÉΓòÉΓòÉ 12.3.17. raise_dtr ΓòÉΓòÉΓòÉ
  4571.  
  4572. VOID raise_dtr(HFILE port); 
  4573.  
  4574. Example 
  4575.  
  4576. raise_dtr(port); 
  4577.  
  4578. Description This call is usually used after drop_dtr to allow the modem to 
  4579. process commands and enable it to answer the phone. 
  4580.  
  4581. Returns 
  4582.  
  4583. None. 
  4584.  
  4585.  
  4586. ΓòÉΓòÉΓòÉ 12.3.18. get_cursor_position ΓòÉΓòÉΓòÉ
  4587.  
  4588. USHORT get_cursor_position(char *str); 
  4589.  
  4590. Example 
  4591.  
  4592. get_cursor_position("column"); 
  4593.  
  4594. Description 
  4595.  
  4596. The above will return the column that the cursor is in. To get the current row, 
  4597. you would issue this call with "row" instead of "column". The row value that is 
  4598. returned is relative to the top of the scroll back buffer. The top row of the 
  4599. scroll back buffer and the first column would be 0,0. 
  4600.  
  4601. Returns 
  4602.  
  4603. Cursor position. 
  4604.  
  4605.  
  4606. ΓòÉΓòÉΓòÉ 12.3.19. get_char_at ΓòÉΓòÉΓòÉ
  4607.  
  4608. VOID get_char_at(USHORT row,USHORT col,USHORT num,char *returnstr); 
  4609.  
  4610. Example 
  4611.  
  4612. get_char_at(0,0,80,str); 
  4613.  
  4614. Description 
  4615.  
  4616. The above will return the characters at the first line (stored in str) of the 
  4617. scroll back buffer. It will return 80 characters, even if the characters are 
  4618. spaces. The maximum number of characters that can be returned at one time is 
  4619. 200. 
  4620.  
  4621. Returns 
  4622.  
  4623. None. 
  4624.  
  4625.  
  4626. ΓòÉΓòÉΓòÉ 12.3.20. 'C'capture_on ΓòÉΓòÉΓòÉ
  4627.  
  4628. USHORT capture_on(filename); 
  4629.  
  4630. Example 
  4631.  
  4632. capture_on("c:\pmcomm\cap.txt"); 
  4633.  
  4634. Description 
  4635.  
  4636. The above will turn capture on so that everything will be saved into a file. If 
  4637. you have strip ANSI configured in Pmcomm then the text only will be saved in 
  4638. ANSI, VT100, and VT220 terminal emulations. 
  4639.  
  4640. Returns 
  4641.  
  4642. 1 if successful and 0 if not. 
  4643.  
  4644.  
  4645. ΓòÉΓòÉΓòÉ 12.3.21. 'C' capture_off ΓòÉΓòÉΓòÉ
  4646.  
  4647. VOID capture_off(VOID); 
  4648.  
  4649. Example 
  4650.  
  4651. capture_off(); 
  4652.  
  4653. Description 
  4654.  
  4655. The above will turn capture off. The capture may have been started from a 
  4656. script or from the menu. 
  4657.  
  4658. Returns 
  4659.  
  4660. 1 if successful and 0 if not. 
  4661.  
  4662.  
  4663. ΓòÉΓòÉΓòÉ 12.3.22. 'C' change_option ΓòÉΓòÉΓòÉ
  4664.  
  4665. change_option("option"); 
  4666.  
  4667. This command will allow a script to change certain options in Pmcomm. The 
  4668. options that can be changed are: 
  4669.  
  4670. device. This option will allow you to change the current device that Pmcomm is 
  4671. using. For example to change the current device to COM2, the syntax would be: 
  4672. change_option("device=COM2"); 
  4673.  
  4674. hardware. This option will allow you to turn hardware flow control on or off. 
  4675. If you want to turn hardware flow control off the syntax would be: 
  4676. change_option("hardware=OFF"); To turn hardware flow control on you would 
  4677. replace the OFF with ON. 
  4678.  
  4679. XON/XOFF. This option will allow you to turn Xon/Xoff flow control on or off. 
  4680. If you want to turn Xon/Xoff flow control off the syntax would be: 
  4681. change_option("XON/XOFF=OFF"); To turn Xon/Xoff flow control on you would 
  4682. replace the OFF with ON. 
  4683.  
  4684. dtr. If this option is turned on the DTR will be lowered when hangup is 
  4685. selected. If you want to turn this option off the syntax would be: 
  4686. change_option("dtr=OFF"); 
  4687.  
  4688. stop bits. This option will allow you to set the number of stop bits that the 
  4689. communication port is set to. The communication port will be changed before the 
  4690. command is completed, and the default stop bits will be set to the new value. 
  4691. To set the communication port to 1 stop bit, the syntax would be: 
  4692. change_option("stop bits=1"); The communication port can only be set to 1 or 2 
  4693. stop bits from a script. 
  4694.  
  4695. data bits. This option will allow you to set the number of data bits that the 
  4696. communication port is set to. The communication port will be changed before the 
  4697. command is completed, and the default data bits will be set to the new value. 
  4698. To set the communication port to 8 data bits, the syntax would be: 
  4699. change_option("data bits=8"); The communication port can be set to 8, 7, 6 or 5 
  4700. data bits. 
  4701.  
  4702. parity. This option will allow you to set the parity for the current 
  4703. communication port. The communication port will be changed before the command 
  4704. is completed, and the default parity will be set to the new value. To set the 
  4705. communication port to Even parity, the syntax would be: 
  4706. change_option("parity=Even"); The communication port can be set to None, Even , 
  4707. Odd, Mark or Space parity. 
  4708.  
  4709. initialization string. This option allows you to change the modem 
  4710. initialization string that Pmcomm uses. To change the string the syntax would 
  4711. be: change_option("initialization string=ATZ"); 
  4712.  
  4713. dial timeout. This option will allow you to set the number of seconds that 
  4714. Pmcomm will wait when dialing a remote computer. If you wanted to set the 
  4715. number of seconds to 60 the syntax for the command would be: 
  4716. change_option("dial timeout=60"); 
  4717.  
  4718. redial delay. This option will allow you to set the number of seconds that 
  4719. Pmcomm will wait between dialing attempts. If you wanted to set the number of 
  4720. seconds to 6 the syntax for the command would be: change_option("redial 
  4721. delay=6"); 
  4722.  
  4723. hangup string. This option allows you to change the modem hangup string that 
  4724. Pmcomm uses. To change the string the syntax would be: change_option("hangup 
  4725. string=+++~~~ATH^M"); 
  4726.  
  4727. auto zmodem string. Some host systems do not send a standard auto zmodem 
  4728. string. This command allows you to change the string that Pmcomm looks for, 
  4729. when the host starts a zmodem send file transfer. When Pmcomm finds a match it 
  4730. will start a zmodem receive file transfer. To change the auto zmodem string the 
  4731. syntax would be: 
  4732.  
  4733. change_option("auto zmodem string=B00000"); 
  4734.  
  4735. zmodem date. This option allows you turn on and off whether Pmcomm will compare 
  4736. the file dates during a zmodem resume file transfer. The syntax to turn the 
  4737. date compare off would be: 
  4738.  
  4739. change_option("zmodem date=OFF"); To turn this option on you would replace the 
  4740. OFF with ON. 
  4741.  
  4742. zmodem rename. This option allows you turn on and off whether Pmcomm will 
  4743. rename duplicate files, if a resume fails (or is turned off). If this option is 
  4744. on Pmcomm will rename the new file with a number for an extension. The syntax 
  4745. to turn the zmodem rename off would be: 
  4746.  
  4747. change_option("zmodem rename=OFF"); To turn this option on you would replace 
  4748. the OFF with ON. 
  4749.  
  4750. auto zmodem. This option will allow you to turn the auto zmodem feature on or 
  4751. off. If you want to turn auto zmodem off the syntax would be: 
  4752. change_option("auto zmodem=OFF"); To turn auto zmodem on you would replace the 
  4753. OFF with ON. 
  4754.  
  4755. zmodem recovery. This option will allow you to turn the zmodem recovery feature 
  4756. on or off. If you want to turn zmodem recovery off the syntax would be: 
  4757. change_option("zmodem recovery=OFF"); To turn zmodem recovery on you would 
  4758. replace the OFF with ON. 
  4759.  
  4760. zmodem crc. This option allows you to select either the 32 bit or 16 bit zmodem 
  4761. CRC error detection option. To select the 32 bit option the syntax would be: 
  4762. change_option("zmodem crc=32"); 
  4763.  
  4764. download directory. To change the current download directory the syntax would 
  4765. be: change_option("download directory=c:\pmcomm\"); 
  4766.  
  4767. hide dial. This option allows you to select if the main terminal window is 
  4768. hidden while Pmcomm is dialing a remote computer. To allow the main window to 
  4769. remain visible while dialing the syntax would be: change_option("hide 
  4770. dial=OFF"); To turn hide dial on you would replace the OFF with ON. 
  4771.  
  4772. hide transfer. This option allows you to select if the main terminal window is 
  4773. hidden while Pmcomm is doing a file transfer. To allow the main window to 
  4774. remain visible while doing file transfers the syntax would be: 
  4775. change_option("hide transfer=OFF"); To turn hide transfer on you would replace 
  4776. the OFF with ON. 
  4777.  
  4778. auto vertical. This option determines if Pmcomm will automatically scroll the 
  4779. terminal window vertically to keep the current cursor position in the window. 
  4780. To turn this option off the syntax would be: change_option("auto 
  4781. vertical=OFF"); To turn this option on you would replace the OFF with ON. 
  4782.  
  4783. auto horizontal. This option determines if Pmcomm will automatically scroll the 
  4784. terminal window horizontally to keep the current cursor position in the window. 
  4785. To turn this option off the syntax would be: change_option("auto 
  4786. horizontal=OFF"); To turn this option on you would replace the OFF with ON. 
  4787.  
  4788. save dial. If this option is on then Pmcomm will store the position of the 
  4789. dialing dialog box, and use it the next time a number is dialed. To turn this 
  4790. option off the syntax would be: change_option("save dial=OFF"); To turn this 
  4791. option on you would replace the OFF with ON. 
  4792.  
  4793. save transfer. If this option is on then Pmcomm will store the position of the 
  4794. transfer dialog box, and use it the next time a file is transferred dialed. To 
  4795. turn this option off the syntax would be: change_option("save transfer=OFF"); 
  4796. To turn this option on you would replace the OFF with ON. 
  4797.  
  4798. sound. This option allows you to turn the warning beeps in Pmcomm, on or off. 
  4799. To turn this option off the syntax would be: change_option("sound=OFF"); To 
  4800. turn this option on you would replace the OFF with ON. 
  4801.  
  4802. monitor dcd. If this option is on, then Pmcomm will monitor the presence of 
  4803. data carrier detect (DCD). To turn this option off the syntax would be: 
  4804. change_option("monitor dcd=OFF"); To turn this option on you would replace the 
  4805. OFF with ON. 
  4806.  
  4807. page length. This option allows you to set the ANSI page length from a script. 
  4808. Following is an example of how to set the page length to 25 lines. 
  4809. change_option("page length=25"); 
  4810.  
  4811. terminal. This option allows you to change the type of terminal from within a 
  4812. Pmcomm script. The following example would set the terminal type to ANSI. 
  4813. change_option("terminal=ANSI"); The available valid terminal types are TTY, 
  4814. ANSI, VT100 or VT220. 
  4815.  
  4816. foreground. This option allows you to change the foreground color from within a 
  4817. Pmcomm script. The available colors are: 
  4818.  
  4819. black 
  4820. blue 
  4821. green 
  4822. cyan 
  4823. red 
  4824. magenta 
  4825. brown 
  4826. white 
  4827. dark grey 
  4828. light blue 
  4829. light green 
  4830. light cyan 
  4831. light red 
  4832. pink 
  4833. yellow 
  4834. bright white 
  4835.  
  4836. The syntax to change the foreground color to cyan would be: 
  4837. change_option("foreground=cyan"); 
  4838.  
  4839. background. This option allows you to change the background color from within a 
  4840. Pmcomm script. The available colors are: 
  4841.  
  4842. black 
  4843. blue 
  4844. green 
  4845. cyan 
  4846. red 
  4847. magenta 
  4848. brown 
  4849. white 
  4850. dark grey 
  4851. light blue 
  4852. light green 
  4853. light cyan 
  4854. light red 
  4855. pink 
  4856. yellow 
  4857. bright white 
  4858.  
  4859. The syntax to change the background color to black would be: 
  4860. change_option("background=black"); 
  4861.  
  4862. echo. This option allows you turn on and off the local keystroke echo. The 
  4863. syntax to turn echo off would be: change_option("echo=OFF"); To turn this 
  4864. option on you would replace the OFF with ON. 
  4865.  
  4866. prefix1 
  4867. prefix2 
  4868. prefix3 
  4869.  
  4870.  These options allow you to change the dialing prefixes. For example to change 
  4871. prefix1 you would use the following syntax: change_option("prefix1=ATDT"); 
  4872.  
  4873. suffix1 
  4874. suffix2 
  4875. suffix3 
  4876.  
  4877.  These options allow you to change the dialing suffixes. For example to change 
  4878. suffix1 you would use the following syntax: change_option("suffix1=^M"); 
  4879.  
  4880. strip ansi. This option allows you to select if Pmcomm will strip the ANSI 
  4881. commands from a capture file. The syntax to turn off the stripping of the ANSI 
  4882. commands would be: change_option("strip ansi=OFF"); To turn this option on you 
  4883. would replace the OFF with ON. 
  4884.  
  4885. macro1 
  4886. macro2 
  4887. macro3 
  4888. macro4 
  4889. macro5 
  4890. macro6 
  4891. macro7 
  4892. macro8 
  4893. macro9 
  4894. macro10 
  4895.  
  4896. These options allow you to change the keyboard macros. For example to change 
  4897. macro1 you would use the following syntax: change_option("macro1=ATZ"); 
  4898.  
  4899. phone directory. To change the current phone directory the syntax would be: 
  4900. change_option("phone directory=c:\pmcomm\pmcomm.fon"); This would change the 
  4901. file used as the Pmcomm phone file. 
  4902.  
  4903. script directory. To change the current script directory the syntax would be: 
  4904. change_option("script directory=c:\pmcomm\script"); 
  4905.  
  4906. capture directory. To change the current capture file directory the syntax 
  4907. would be: change_option("capture directory=c:\pmcomm\capture"); 
  4908.  
  4909. chat. This option allows you to turn the Pmcomm chat mode on or off. The syntax 
  4910. to turn off chat mode is: change_option("chat=OFF"); To turn this option on you 
  4911. would replace the OFF with ON. 
  4912.  
  4913. auto cisb. This option allows you to turn the automatic CISB file transfer on 
  4914. or off. The syntax to turn off auto CISB is: change_option("auto cisb=OFF"); To 
  4915. turn this option on you would replace the OFF with ON. 
  4916.  
  4917. cisb recovery. This option allows you to turn the CISB file recovery on or off. 
  4918. The syntax to turn off the CISB file recovery is: change_option("cisb 
  4919. recovery=OFF"); To turn this option on you would replace the OFF with ON. 
  4920.  
  4921. baud. This option allows you to change the current baud rate. This will also 
  4922. change the default baud rate saved in the setup file. The syntax for this 
  4923. command is: change_option("baud=19200"); 
  4924.  
  4925. startup script. Use this command to change the name of the script that will be 
  4926. executed upon startup of Pmcomm. The syntax of this command is: 
  4927. change_option("startup script=c:\pmcomm\startup.scr"); 
  4928.  
  4929. exit on hangup. This command allows you to have Pmcomm exit once data carrier 
  4930. detect (DCD) has dropped. This will only work correctly if Monitor DCD is also 
  4931. selected. The syntax for this command is: change_option("exit on hangup=ON"); 
  4932.  
  4933. working directory. To change the current working directory the syntax would be: 
  4934. change_option("working directory=c:\pmcomm"); 
  4935.  
  4936. keymap. The keymap must be in the working directory of Pmcomm. To change the 
  4937. keymap currently in use the syntax would be : change_option("keymap=ansi.map"); 
  4938.  
  4939. prompt on hangup. This command will turn on or off the prompt on hangup option. 
  4940. To turn this option on the syntax would be : change_option("prompt on 
  4941. hangup=ON"); 
  4942.  
  4943. prompt to save screen size. This command will turn on or off the prompt to save 
  4944. screen size option. To turn this option on the syntax would be : 
  4945. change_option("prompt to save screen size=ON"); 
  4946.  
  4947. prompt to save setup. This command will turn on or off the prompt to save setup 
  4948. option. To turn this option on the syntax would be : change_option("prompt to 
  4949. save setup=ON"); 
  4950.  
  4951. prompt on capture. This command will turn on or off the prompt on capture 
  4952. option. To turn this option on the syntax would be : change_option("prompt on 
  4953. captue=ON"); 
  4954.  
  4955. close device. This command will turn on or off the option to close the Port 
  4956. Device when it is not in use. To turn this option on the syntax would be : 
  4957. change_option("close device=ON"); 
  4958.  
  4959.  
  4960. ΓòÉΓòÉΓòÉ 12.3.23. 'C' dial ΓòÉΓòÉΓòÉ
  4961.  
  4962. dial("name"); 
  4963.  
  4964. This command will allow a script to dial a number listed in the current Pmcomm 
  4965. dialing directory. To dial the entry call Compu-Plane you would use the 
  4966. following syntax: dial("Compu-Plane"); 
  4967.  
  4968.  
  4969. ΓòÉΓòÉΓòÉ 12.3.24. 'C' get_dial_memo ΓòÉΓòÉΓòÉ
  4970.  
  4971. get_dial_memo(char *returnstr); 
  4972.  
  4973. This command will retrieve the information stored in the memo field of the 
  4974. currently connected phone number. This will allow you to, for example, store 
  4975. your password in the dialing directory memo field, and write a script to use 
  4976. it. By doing this you can change your password without editing the script. All 
  4977. you would have to do is change the text in the memo field for that number. To 
  4978. retrieve the text stored in the current memo field the syntax would be: 
  4979. get_dial_memo (returnstr); 
  4980.  
  4981.  
  4982. ΓòÉΓòÉΓòÉ 12.3.25. 'C' clipboard_paste ΓòÉΓòÉΓòÉ
  4983.  
  4984. clipboard_paste(char *returnstr); 
  4985.  
  4986. This command will retrieve text stored in the OS/2 clipboard. The maximum 
  4987. amount of text that can be retrieved at one time is 8192 bytes. To retrieve the 
  4988. text stored in the clipboard the syntax would be: clipboard_paste(returnstr); 
  4989.  
  4990.  
  4991. ΓòÉΓòÉΓòÉ 12.3.26. 'C' clipboard_copy ΓòÉΓòÉΓòÉ
  4992.  
  4993. clipboard_copy(char *str); 
  4994.  
  4995. This command will copy text to the OS/2 clipboard. The maximum amount of text 
  4996. that can be sent at one time is 8192 bytes. To send text to the clipboard the 
  4997. syntax would be: clipboard_copy("This is a test"); 
  4998.  
  4999.  
  5000. ΓòÉΓòÉΓòÉ 12.3.27. 'C' clipboard_append ΓòÉΓòÉΓòÉ
  5001.  
  5002. clipboard_append(char *str); 
  5003.  
  5004. This command will append text to the existing text in the OS/2 clipboard. The 
  5005. maximum amount of text that can be sent at one time is 8192 bytes. To append 
  5006. text to the clipboard the syntax would be: clipboard_append("This is a test"); 
  5007.  
  5008.  
  5009. ΓòÉΓòÉΓòÉ 12.3.28. xmodem_send ΓòÉΓòÉΓòÉ
  5010.  
  5011. USHORT xmodem_send(char *filename); 
  5012.  
  5013. Example 
  5014.  
  5015. xmodem_send("d:\path\filename.ext"); 
  5016.  
  5017. Description 
  5018.  
  5019. This call will invoke the Xmodem_CRC send routine, built into Pmcomm. Once 
  5020. issued the call will not return until the transfer either finishes or is 
  5021. aborted. Pmcomm will show the normal transfer box that it does when download is 
  5022. selected from the menu. 
  5023.  
  5024. Returns 
  5025.  
  5026. 1 if the transfer is successful and 0 if unsuccessful. 
  5027.  
  5028.  
  5029. ΓòÉΓòÉΓòÉ 12.3.29. xmodem_receive ΓòÉΓòÉΓòÉ
  5030.  
  5031. USHORT xmodem_receive(char *filename); 
  5032.  
  5033. Example 
  5034.  
  5035. xmodem_receive("d:\path\filename.ext"); 
  5036.  
  5037. Description 
  5038.  
  5039. This call will invoke the Xmodem_CRC receive routine, built into Pmcomm. Once 
  5040. issued the call will not return until the transfer either finishes or is 
  5041. aborted. Pmcomm will show the normal transfer box that it does when uploading 
  5042. from the menu. The file name specified must include a path. 
  5043.  
  5044. Returns 
  5045.  
  5046. 1 if transfer is successful and 0 if unsuccessful. 
  5047.  
  5048.  
  5049. ΓòÉΓòÉΓòÉ 12.3.30. xmodem_chk_send ΓòÉΓòÉΓòÉ
  5050.  
  5051. USHORT xmodem_chk_send(char *filename); 
  5052.  
  5053. Example 
  5054.  
  5055. xmodem_chk_send("d:\path\filename.ext"); 
  5056.  
  5057. Description 
  5058.  
  5059. This call will invoke the Xmodem_Checksum send routine, built into Pmcomm. Once 
  5060. issued the call will not return until the transfer either finishes or is 
  5061. aborted. Pmcomm will show the normal transfer box that it does when download is 
  5062. selected from the menu. 
  5063.  
  5064. Returns 
  5065.  
  5066. 1 if transfer is successful and 0 if unsuccessful. 
  5067.  
  5068.  
  5069. ΓòÉΓòÉΓòÉ 12.3.31. xmodem_chk_receive ΓòÉΓòÉΓòÉ
  5070.  
  5071. USHORT xmodem_chk_receive(char *filename); 
  5072.  
  5073. Example 
  5074.  
  5075. xmodem_chk_receive("d:\path\filename.ext"); 
  5076.  
  5077. Description 
  5078.  
  5079. This call will invoke the Xmodem_Checksum receive routine, built into Pmcomm. 
  5080. Once issued the call will not return until the transfer either finishes or is 
  5081. aborted. Pmcomm will show the normal transfer box that it does when uploading 
  5082. from the menu. The file name specified must include a path. 
  5083.  
  5084. Returns 
  5085.  
  5086. 1 if transfer is successful and 0 if unsuccessful. 
  5087.  
  5088.  
  5089. ΓòÉΓòÉΓòÉ 12.3.32. xmodem_1k_send ΓòÉΓòÉΓòÉ
  5090.  
  5091. USHORT xmodem_1k_send(char *filename); 
  5092.  
  5093. Example 
  5094.  
  5095. xmodem_1k_send("d:\path\filename.ext"); 
  5096.  
  5097. Description 
  5098.  
  5099. This call will invoke the 1K-Xmodem send routine, built into Pmcomm. Once 
  5100. issued the call will not return until the transfer either finishes or is 
  5101. aborted. Pmcomm will show the normal transfer box that it does when download is 
  5102. selected from the menu. 
  5103.  
  5104. Returns 
  5105.  
  5106. 1 if transfer is successful and 0 if unsuccessful. 
  5107.  
  5108.  
  5109. ΓòÉΓòÉΓòÉ 12.3.33. xmodem_1k_receive ΓòÉΓòÉΓòÉ
  5110.  
  5111. USHORT xmodem_1k_receive(char *filename); 
  5112.  
  5113. Example 
  5114.  
  5115. xmodem_1k_receive("d:\path\filename.ext"); 
  5116.  
  5117. Description 
  5118.  
  5119. This call will invoke the 1K-Xmodem receive routine, built into Pmcomm. Once 
  5120. issued the call will not return until the transfer either finishes or is 
  5121. aborted. Pmcomm will show the normal transfer box that it does when uploading 
  5122. from the menu. The file name specified must include a path. 
  5123.  
  5124. Returns 
  5125.  
  5126. 1 if transfer is successful and 0 if unsuccessful. 
  5127.  
  5128.  
  5129. ΓòÉΓòÉΓòÉ 12.3.34. ymodem_send ΓòÉΓòÉΓòÉ
  5130.  
  5131. USHORT ymodem_send(USHORT num_files,CHAR **filearray); 
  5132.  
  5133. Example 
  5134.  
  5135. USHORT result; 
  5136.  
  5137. CHAR *filearray[2]; 
  5138.  
  5139. CHAR string1[80]; 
  5140.  
  5141. CHAR string2[80]; 
  5142.  
  5143. strcpy(string1,"pmcom106.zip"); 
  5144.  
  5145. strcpy(string2,"pmcom107.zip"); 
  5146.  
  5147. filearray[0] = string1; 
  5148.  
  5149. filearray[1] = string2; 
  5150.  
  5151. result = ymodem_send(2,filearray); 
  5152.  
  5153. Description 
  5154.  
  5155. This call will invoke the Ymodem send routine, built into Pmcomm. Once issued 
  5156. the call will not return until the transfer either finishes or is aborted. 
  5157. Pmcomm will show the normal transfer box that it does when download is selected 
  5158. from the menu. As many as 8 files can be sent at one time. 
  5159.  
  5160. Returns 
  5161.  
  5162. Number of files successfully transferred. 
  5163.  
  5164.  
  5165. ΓòÉΓòÉΓòÉ 12.3.35. ymodem_receive ΓòÉΓòÉΓòÉ
  5166.  
  5167. USHORT ymodem_receive(VOID); 
  5168.  
  5169. Example 
  5170.  
  5171. ymodem_receive(); 
  5172.  
  5173. Description 
  5174.  
  5175. This call will invoke the Ymodem receive routine, built into Pmcomm. Once 
  5176. issued the call will not return until the transfer either finishes or is 
  5177. aborted. Pmcomm will show the normal transfer box that it does when uploading 
  5178. from the menu. Only a single file at a time will be accepted. 
  5179.  
  5180. Returns 
  5181.  
  5182. 1 if call is successful and 0 if unsuccessful. 
  5183.  
  5184.  
  5185. ΓòÉΓòÉΓòÉ 12.3.36. ymodemg_send ΓòÉΓòÉΓòÉ
  5186.  
  5187. USHORT ymodemg_send(USHORT num_files, CHAR **filearray); 
  5188.  
  5189. Example 
  5190.  
  5191. USHORT result; 
  5192.  
  5193. CHAR *filearray[2]; 
  5194.  
  5195. CHAR string1[80]; 
  5196.  
  5197. CHAR string2[80]; 
  5198.  
  5199. strcpy(string1,"pmcom106.zip"); 
  5200.  
  5201. strcpy(string2,"pmcom107.zip"); 
  5202.  
  5203. filearray[0] = string1; 
  5204.  
  5205. filearray[1] = string2; 
  5206.  
  5207. result = ymodemg_send(2,filearray); 
  5208.  
  5209. Description 
  5210.  
  5211. This call will invoke the Ymodem-g send routine, built into Pmcomm. Once issued 
  5212. the call will not return until the transfer either finishes or is aborted. 
  5213. Pmcomm will show the normal transfer box that it does when downloading from the 
  5214. menu. As many as 8 files can be sent at one time. 
  5215.  
  5216. Returns 
  5217.  
  5218. Number of files successfully transferred. 
  5219.  
  5220.  
  5221. ΓòÉΓòÉΓòÉ 12.3.37. ymodemg_receive ΓòÉΓòÉΓòÉ
  5222.  
  5223. USHORT ymodemg_receive(VOID); 
  5224.  
  5225. Example 
  5226.  
  5227. ymodemg_receive(); 
  5228.  
  5229. Description 
  5230.  
  5231. This call will invoke the Ymodem-g receive routine, built into Pmcomm. Once 
  5232. issued the call will not return until the transfer either finishes or is 
  5233. aborted. Pmcomm will show the normal transfer box that it does when uploading 
  5234. from the menu. Only one file at a time can be received. 
  5235.  
  5236. Returns 
  5237.  
  5238. 1 if call is successful and 0 if unsuccessful. 
  5239.  
  5240.  
  5241. ΓòÉΓòÉΓòÉ 12.3.38. zmodem_send ΓòÉΓòÉΓòÉ
  5242.  
  5243. USHORT zmodem_send(USHORT num_files, CHAR **filearray); 
  5244.  
  5245. Example 
  5246.  
  5247. USHORT result; 
  5248.  
  5249. CHAR *filearray[2]; 
  5250.  
  5251. CHAR string1[80]; 
  5252.  
  5253. CHAR string2[80]; 
  5254.  
  5255. strcpy(string1,"pmcom106.zip"); 
  5256.  
  5257. strcpy(string2,"pmcom107.zip"); 
  5258.  
  5259. filearray[0] = string1; 
  5260.  
  5261. filearray[1] = string2; 
  5262.  
  5263. result = zmodem_send(2,filearray); 
  5264.  
  5265. Description 
  5266.  
  5267. This call will invoke the Zmodem send routine, built into Pmcomm. Once issued 
  5268. the call will not return until the transfer either finishes or is aborted. 
  5269. Pmcomm will show the normal transfer box that it does when downloading from the 
  5270. menu. As many as 100 files may be transferred at one time. 
  5271.  
  5272. Returns 
  5273.  
  5274. Number of files successfully transferred. 
  5275.  
  5276.  
  5277. ΓòÉΓòÉΓòÉ 12.3.39. zmodem_receive ΓòÉΓòÉΓòÉ
  5278.  
  5279. USHORT zmodem_receive(VOID); 
  5280.  
  5281. Example 
  5282.  
  5283. zmodem_receive(); 
  5284.  
  5285. Description 
  5286.  
  5287. This call will invoke the Zmodem receive routine, built into Pmcomm. Once 
  5288. issued the call will not return until the transfer either finishes or is 
  5289. aborted. Pmcomm will show the normal transfer box that it does when uploading 
  5290. from the menu. Only one file at a time can be received. 
  5291.  
  5292. Returns 
  5293.  
  5294. The number of files transferred. 
  5295.  
  5296.  
  5297. ΓòÉΓòÉΓòÉ 12.3.40. kermit_send ΓòÉΓòÉΓòÉ
  5298.  
  5299. USHORT kermit_send(USHORT num_files, CHAR **filearray); 
  5300.  
  5301. Example 
  5302.  
  5303. USHORT result; 
  5304.  
  5305. CHAR *filearray[2]; 
  5306.  
  5307. CHAR string1[80]; 
  5308.  
  5309. CHAR string2[80]; 
  5310.  
  5311. strcpy(string1,"pmcom106.zip"); 
  5312.  
  5313. strcpy(string2,"pmcom107.zip"); 
  5314.  
  5315. filearray[0] = string1; 
  5316.  
  5317. filearray[1] = string2; 
  5318.  
  5319. result = kermit_send(2,filearray); 
  5320.  
  5321. Description 
  5322.  
  5323. This call will invoke the Kermit send routine, built into Pmcomm. Once issued 
  5324. the call will not return until the transfer either finishes or is aborted. 
  5325. Pmcomm will show the normal transfer box that it does when downloading from the 
  5326. menu. As many as 100 files may be transferred at one time. 
  5327.  
  5328. Returns 
  5329.  
  5330. Number of files successfully transferred. 
  5331.  
  5332.  
  5333. ΓòÉΓòÉΓòÉ 12.3.41. kermit_receive ΓòÉΓòÉΓòÉ
  5334.  
  5335. USHORT kermit_receive(VOID); 
  5336.  
  5337. Example 
  5338.  
  5339. kermit_receive(); 
  5340.  
  5341. Description 
  5342.  
  5343. This call will invoke the Kermit receive routine, built into Pmcomm. Once 
  5344. issued the call will not return until the transfer either finishes or is 
  5345. aborted. Pmcomm will show the normal transfer box that it does when uploading 
  5346. from the menu. Only one file at a time can be received. 
  5347.  
  5348. Returns 
  5349.  
  5350. Number of files transferred. 
  5351.  
  5352.  
  5353. ΓòÉΓòÉΓòÉ 12.3.42. ascii_send ΓòÉΓòÉΓòÉ
  5354.  
  5355. USHORT ascii_send(char *filename); 
  5356.  
  5357. Example 
  5358.  
  5359. ascii_send("d:\path\filename.ext"); 
  5360.  
  5361. Description 
  5362.  
  5363. This call will invoke the ASCII send routine, built into Pmcomm. Once issued 
  5364. the call will not return until the transfer either finishes or is aborted. 
  5365. Pmcomm will show the normal transfer box that it does when downloading from the 
  5366. menu. 
  5367.  
  5368. Returns 
  5369.  
  5370. 1 if transfer is successful and 0 if unsuccessful. 
  5371.  
  5372.  
  5373. ΓòÉΓòÉΓòÉ 12.3.43. ascii_receive ΓòÉΓòÉΓòÉ
  5374.  
  5375. USHORT ascii_receive(filename); 
  5376.  
  5377. Example 
  5378.  
  5379. ascii_receive("d:\path\filename.ext"); 
  5380.  
  5381. Description 
  5382.  
  5383. This call will invoke the ASCII receive routine, built into Pmcomm. Once issued 
  5384. the call will not return until the transfer either finishes or is aborted. 
  5385. Pmcomm will show the normal transfer box that it does when uploading from the 
  5386. menu. The file name specified must not include a path. 
  5387.  
  5388. Returns 
  5389.  
  5390. 1 if transfer is successful and 0 if unsuccessful. 
  5391.  
  5392.  
  5393. ΓòÉΓòÉΓòÉ 12.3.44. cisb_send ΓòÉΓòÉΓòÉ
  5394.  
  5395. USHORT cisb_send(char *filename); 
  5396.  
  5397. Example 
  5398.  
  5399. cisb_send("d:\path\filename.ext"); 
  5400.  
  5401. Description 
  5402.  
  5403. This call will invoke the CISB send routine, built into Pmcomm. Once issued the 
  5404. call will not return until the transfer either finishes or is aborted. Pmcomm 
  5405. will show the normal transfer box that it does when download is selected from 
  5406. the menu. 
  5407.  
  5408. Returns 
  5409.  
  5410. 1 if the transfer is successful and 0 if unsuccessful. 
  5411.  
  5412.  
  5413. ΓòÉΓòÉΓòÉ 12.3.45. cisb_receive ΓòÉΓòÉΓòÉ
  5414.  
  5415. USHORT cisb_receive(char *filename); 
  5416.  
  5417. Example 
  5418.  
  5419. cisb_receive("d:\path\filename.ext"); 
  5420.  
  5421. Description 
  5422.  
  5423. This call will invoke the CISB receive routine, built into Pmcomm. Once issued 
  5424. the call will not return until the transfer either finishes or is aborted. 
  5425. Pmcomm will show the normal transfer box that it does when uploading from the 
  5426. menu. The file name specified must include a path. 
  5427.  
  5428. Returns 
  5429.  
  5430. 1 if transfer is successful and 0 if unsuccessful. 
  5431.  
  5432.  
  5433. ΓòÉΓòÉΓòÉ 12.4. Sample Scripts ΓòÉΓòÉΓòÉ
  5434.  
  5435. These are scripts to help you, when you start to write your own scripts. 
  5436.  
  5437.  
  5438. ΓòÉΓòÉΓòÉ 12.4.1. REXX Sample ΓòÉΓòÉΓòÉ
  5439.  
  5440. /* Sample Script*/ 
  5441.  
  5442. /* This script will allow you to log on to Compu-Plane once you change the 
  5443. strings stored in the variables called name and pass. Enter the sample.scr name 
  5444. for the script name of the Compu-Plane phone number, and change the name in the 
  5445. shell( ) function to the path and filename of this file.*/ 
  5446.  
  5447. Call RxFuncadd "init_dll","RxPmcomm","init_dll" 
  5448.  
  5449. /* This function registers the init_dll function with REXX. The init_dll 
  5450. function will register the rest of the functions in the rxpmcomm.dll. */ 
  5451.  
  5452. Parse arg port portname screen_handle dde_output dde_input semaphore 
  5453.  
  5454. /*These are the values that Pmcomm passes on the command line to an external 
  5455. program. These values can then be used in different REXX functions along with 
  5456. the rxpmcomm.dll functions. Following is the description of each value: */ 
  5457.  
  5458. /* port = The handle of the open communication port in Pmcomm */ 
  5459.  
  5460. /* portname = The name of the opened communication port ie.. COM1*/ 
  5461.  
  5462. /* screen_handle = Anything written to the handle will be printed on the Pmcomm 
  5463. screen. */ 
  5464.  
  5465. /* dde_input = This must be passed to most functions. It allows the 
  5466. rxpmcomm.dll function to communicate with Pmcomm. */ 
  5467.  
  5468. /* dde_output = This must be passed to most functions. It allows the 
  5469. rxpmcomm.dll function to communicate with Pmcomm. */ 
  5470.  
  5471. /* semaphore = This also must be passed to any file transfer function. It makes 
  5472. your REXX program wait until the transfer has been completed. */ 
  5473.  
  5474. Call init_dll 
  5475.  
  5476. /* Required before any other rxpmcomm.dll functions are called. */ 
  5477.  
  5478. /* Setup variables  */ 
  5479.  
  5480. name = 'first;last'  /* where first is your first name and last is*/ 
  5481. pass = 'password'   /* your last name and password is your password.*/ 
  5482. cr  = '0d'x 
  5483.  
  5484. Call read_timeout '20000',port 
  5485.  
  5486. /* This sets the read timeout for 20 seconds. This is used in the Wait_for, 
  5487. Wait_fore, and the Get_ch functions. */ 
  5488.  
  5489. Say 'Waiting for first name ...' 
  5490.  
  5491. /* This will be printed on the REXX screen. */ 
  5492.  
  5493. Do Forever 
  5494.  
  5495. Call Wait_fore 'name', 'password', 'continue?','?->', port, screen_handle 
  5496.  
  5497. /* This call will echo all characters to the Pmcomm screen that come from the 
  5498. open communication port. When one of the strings are matched the function will 
  5499. return the index of the matched string in the variable result. For example if 
  5500. it receives the string password then the result will be equal to 2. If the 
  5501. function waits longer then the read timeout value then result will be equal to 
  5502. 0. */ 
  5503. match = result 
  5504.   Select 
  5505.    When match=1 then 
  5506.     Do 
  5507.      Call Put_s name||cr,port 
  5508.      Say 'Waiting for password ...' 
  5509.     End 
  5510.    When match=2 then Call Put_s pass||cr,port 
  5511.    When match=3 then Call Put_s cr,port 
  5512.    When match=4 then Exit 
  5513.   Otherwise nop 
  5514.   End 
  5515. End 
  5516. Say 'Script ended  -' date( ) time( ) 
  5517. Exit 
  5518.  
  5519.  
  5520. ΓòÉΓòÉΓòÉ 12.4.2. Internal Sample ΓòÉΓòÉΓòÉ
  5521.  
  5522. An example script to log onto a Multi-Net Communications BBS could be: 
  5523.  
  5524. wait_for ("first name"); 
  5525. puts ("john\n"); 
  5526. wait_for("last name"); 
  5527. puts("doe\n"); 
  5528. wait_for("password"); 
  5529. puts("password\n"); 
  5530. sleep (1000); 
  5531. puts("\n"); 
  5532.  
  5533. Scripts can be executed automatically when logging onto a BBS by specifying the 
  5534. script filename in the dialing directory for that phone number. You can execute 
  5535. a script from the File menu at anytime. 
  5536.  
  5537.  
  5538. ΓòÉΓòÉΓòÉ 13. Installing Pmcomm Host Mode ΓòÉΓòÉΓòÉ
  5539.  
  5540. To install Pmcomm's Host Mode, you must run the install program included on the 
  5541. Pmcomm disk. Make sure you answer all the Host mode questions (including the 
  5542. password). If you do not have a destination directory for Pmcomm listed, but do 
  5543. have a host directory listed, only the host mode will be installed. This can be 
  5544. usefully if you have already installed Pmcomm, and just want to install the 
  5545. host mode. The Fixed Baud check box should be checked for most high-speed 
  5546. modems (bauds above 2400 baud). This selection fixes the DTE to DCE baud, and 
  5547. will improve throughput on high-speed modems. If this is an "open" system new 
  5548. users will be stored in this file automatically. If this is a "closed" system 
  5549. only the people that are registered in this file will be able to access the 
  5550. Host Mode. This can be changed by editing the host.cmd file. When the host mode 
  5551. is installed it defaults to a "open" system. To change this edit host.cmd and 
  5552. change the open to closed. 
  5553.  
  5554. The six files that the install program creates are HOSTPASS.FLE, HOSTDIR.FLE, 
  5555. HOSTHEAD.FLE, HOST.SCR, HOSTNEWU.FLE, and HOSTHELP.FLE. The HOSTPASS.FLE file 
  5556. is where all of the users' names, passwords, securities, and last time on are 
  5557. stored. The HOSTDIR.FLE file is a list of the directories that have been 
  5558. created for the host mode. The HOSTHEAD.FLE file is the file that is displayed 
  5559. to users when they logon. The HOST.SCR file is the main executable script. The 
  5560. HOSTNEWU.FLE file is the file that is displayed to new users. In order for a 
  5561. user to be able to receive help from the menu, the HOSTHELP.FLE must contain 
  5562. the information that will be displayed. 
  5563.  
  5564. The Host mode is a REXX script and is started just like anyother REXX script. 
  5565. Once the script has been started Pmcomm is ready to receive calls. 
  5566.  
  5567.  
  5568. ΓòÉΓòÉΓòÉ 14. Using the timer program ΓòÉΓòÉΓòÉ
  5569.  
  5570. The Timer program allows the user to automatically start Pmcomm at a certain 
  5571. time. The options allows the user to specify a name of a file to be passed on 
  5572. the command line. This would be used to pass a command line option to Pmcomm on 
  5573. startup. See Command_line_options. 
  5574.  
  5575. With the execution frequency option you can choose the days that you wish 
  5576. Pmcomm to automatically start. This option in conjunction with the time option 
  5577. sets up Pmcomm for automatic startup. 
  5578.  
  5579. If you have the timer program set up as an object on the desktop, make sure the 
  5580. working directory for that object is the directory that Pmcomm is installed in. 
  5581.  
  5582.  
  5583. ΓòÉΓòÉΓòÉ 15. How To... ΓòÉΓòÉΓòÉ
  5584.  
  5585. This section gives you examples of how to set Pmcomm up to do different things. 
  5586.  
  5587.  
  5588. ΓòÉΓòÉΓòÉ 15.1. How to make Pmcomm receive incoming calls. ΓòÉΓòÉΓòÉ
  5589.  
  5590. To make Pmcomm receive an incoming call without using the Host Mode, send the 
  5591. following command to the modem. 
  5592.  
  5593. ATS0=1 
  5594.  
  5595. This can be setup as a macro and then you would have a button on the button bar 
  5596. to put you modem in auto answer. 
  5597.  
  5598.  
  5599. ΓòÉΓòÉΓòÉ 15.2. How to Use Pmcomm with a modem pool. ΓòÉΓòÉΓòÉ
  5600.  
  5601. Because Pmcomm does not use ACDI, and will allow you to enter any valid 12 
  5602. character name for a device, it will work with a shared serial port modem pool. 
  5603. This allows you to have modems on a server that users can access from their 
  5604. workstations. This can save a considerable about of money. 
  5605.  
  5606. First the ibmlan.ini file, on the Server and the Requesters, must be edited in 
  5607. order to operate Pmcomm in a modem pool. The "charwait" variable must be 
  5608. changed from it's default setting of 3600 to a setting of 3 and then re-boot 
  5609. the Server and all of the Requesters. 
  5610.  
  5611. The following is a flash from IBMLink on how to setup a modem pool using Pmcomm 
  5612. and Lan Server. 
  5613.  
  5614. The rest of this scenario concerns the OS/2 LAN Server definitions. When LAN 
  5615. Server definitions and actions are complete, defined users at any OS/2 
  5616. Requestor can run the program from the OS/2 Public Applications Window. The 
  5617. serial port and modem at the LAN Server will be shared. To begin, logon as an 
  5618. administrator in the proper domain. Then follow instructions for the following: 
  5619.  
  5620.  
  5621. a. Defining the shared modem 
  5622. b. Defining the shared program files 
  5623. c. Defining the program as a public OS/2 application 
  5624. d. Defining the working directory 
  5625. e. Sharing the modem and the program 
  5626. f. Assigning the modem and the program to the users as they log on. 
  5627.  
  5628. DEFINING THE SHARED MODEM 
  5629.   Follow this sequence: 
  5630.  
  5631.   DEFINITION 
  5632.   ALIASES 
  5633.   SERIAL DEVICES 
  5634.   --NEW-- (With cursor on --NEW--, press space bar to 
  5635.   choose, press enter or click on ACTION) 
  5636.   CREATE(Create a serial device alias - I used an 
  5637.       alias of MODEM1, chose COM1 from the device 
  5638.       pool using F4 for the list, and choose to 
  5639.       share the port at server startup) 
  5640.  
  5641.  
  5642. *-----------------------------------------------------------* 
  5643.  
  5644.               Create Alias - Serial Device 
  5645.  
  5646.   Complete the panel; then Enter. 
  5647.  
  5648.   Alias . . . . . . . . . . . . . . . MODEM1 
  5649.   Description . . . . . . . . . . . . Shared modem 
  5650.   Server Name . . . . . . . . . . . . Chosen with the F4 key 
  5651.   Server Device Pool. . . . . . . . . COM1 
  5652.   Priority. . . . . . . . . . . . . . 5 (chosen arbitrarily) 
  5653.   Maximum number of users . . . . . . (Number of shared serial ports) 
  5654.   When shared . . . . . . . . . > At server startup 
  5655.  
  5656. |-----------------------------------------------------------| 
  5657.  
  5658.   ENTER  Escape=Cancel  F1=Help  F4=List 
  5659.  
  5660. *-----------------------------------------------------------* 
  5661.  
  5662. DEFINING THE SHARED PROGRAM FILES 
  5663. Follow this sequence: 
  5664.   DEFINITION 
  5665.   ALIASES 
  5666.   FILES 
  5667.   --NEW-- (With cursor on --NEW--, press space bar to 
  5668.       choose, press enter or click on ACTION) 
  5669.   CREATE (Create the file alias) 
  5670.  
  5671. *---------------------------------------------------------* 
  5672.  
  5673.               Create Alias - Files 
  5674.  
  5675.   Complete the panel; then Enter. 
  5676.  
  5677.   Alias . . . . . . . . . . . . . . . PMCOMM 
  5678.   Description . . . . . . . . . . . . Program to access shared modem 
  5679.   Server Name . . . . . . . . . . . . Chosen with the F4 key 
  5680.   Server Path to Directory. . . . . . :OS2:ASYNC:PMCOMM 
  5681.  
  5682.   Maximum number of users . . . . . . (left blank) 
  5683.   When shared . . . . . . . . . > At server startup 
  5684.  
  5685. |---------------------------------------------------------| 
  5686.  
  5687.   ENTER  Escape=Cancel  F1=Help  F4=List 
  5688.  
  5689. *---------------------------------------------------------* 
  5690.  
  5691. DEFINING THE PROGRAM AS A PUBLIC OS/2 APPLICATION 
  5692. Follow this sequence: 
  5693.   DEFINITION 
  5694.   APPLICATION 
  5695.   PUBLIC OS/2 APPLICATION 
  5696.   --NEW-- (With cursor on --NEW--, press space bar to 
  5697.     choose, press enter or click on ACTION) 
  5698.   CREATE 
  5699.  
  5700. *----------------------------------------------------------* 
  5701.  
  5702.               Create OS/2 Application Details 
  5703.  
  5704.   Complete the panel; then Enter. 
  5705.  
  5706.   Application ID. . . . . . . . . . . PMCOMMX 
  5707.   Description . . . . . . . . . . . . Shared modem communications 
  5708.   Program location. . . . . . . . . . Remote 
  5709.   Drive or alias. . . . . . . . . . . PMCOMM 
  5710.   Remaining path to program . . . . . : 
  5711.   Command line. . . . . . . . . . . . PMCOMM.EXE 
  5712.   Prompt used for parameters? . . . . NO 
  5713.   Program type. . . . . . . . . . . . OS/2 PM 
  5714.  
  5715. |----------------------------------------------------------| 
  5716.  
  5717.   ENTER  Escape=Cancel  F1=Help  F4=List 
  5718.  
  5719. *----------------------------------------------------------* 
  5720.  
  5721. DEFINING THE WORKING DIRECTORY 
  5722.  
  5723. PMCOMM has support files that should reside in the working directory at 
  5724. the server. If this directory is not assigned, each user must have these 
  5725. files on their own disk. 
  5726.  
  5727.   Follow this sequence: 
  5728.   DEFINITION 
  5729.   APPLICATION 
  5730.   PUBLIC OS/2 APPLICATION 
  5731.   --PMCOMMX-- (With cursor on --PMCOMMX--, press space 
  5732.     bar to choose, press enter or click on 
  5733.     ACTION) 
  5734.   WORKING DIRECTORY 
  5735.  
  5736. *---------------------------------------------------------* 
  5737.  
  5738.                   Working Directory 
  5739.  
  5740.   Complete the panel; then Enter. 
  5741.  
  5742.   Working Directory . . . . . . . . . REMOTE 
  5743.   Drive or alias. . . . . . . . . . . PMCOMM 
  5744.   Remaining path to program . . . . . : 
  5745.   Assigned Drive. . . . . . . . . . . P (chosen arbitrarily) 
  5746.  
  5747. |---------------------------------------------------------| 
  5748.  
  5749.   ENTER  Escape=Cancel  F1=Help  F4=List 
  5750.  
  5751. *---------------------------------------------------------* 
  5752.  
  5753. SHARING THE PROGRAM AND THE MODEM 
  5754.   Follow this sequence: 
  5755.   ACTION 
  5756.   RESOURCE SHARING 
  5757.   --PMCOMM-- (With cursor on --PMCOMM--, press spacebar 
  5758.       to choose, press enter or click on ACTION) 
  5759.   START SHARING 
  5760.   --MODEM1-- (With cursor on --MODEM1--, press spacebar 
  5761.       to choose, press enter or click on ACTION) 
  5762.   START SHARING 
  5763.  
  5764. ASSIGNING RESOURCES TO USERS AS THEY LOG ON 
  5765.  
  5766.   Follow this sequence for each user, to assign MODEM1 as a user 
  5767.       logs on: 
  5768.   DEFINITION 
  5769.   USERS 
  5770.   -- User -- (With cursor on the user name, press F10) 
  5771.   LOGON 
  5772.   SERIAL DEVICE ASSIGNMENTS 
  5773.   Assign MODEM1 to a COM port 
  5774.  
  5775.   Follow this sequence for each user, to copy the program to the user's 
  5776.  
  5777.   START PROGRAMS window: 
  5778.   DEFINITION 
  5779.   USERS 
  5780.   -- User -- (With cursor on the user name, press spacebar 
  5781.       to choose, press enter or click on ACTION) 
  5782.   PROGRAM STARTER 
  5783.   --PMCOMMX-- (With cursor on --PMCOMMX-- press the 
  5784.       spacebar to choose) 
  5785.  
  5786.  
  5787. ΓòÉΓòÉΓòÉ 15.3. How to Use Pmcomm with IBMLink. ΓòÉΓòÉΓòÉ
  5788.  
  5789. If you have access to IBMLink (ask an IBM SE) you can use Pmcomm to call. The 
  5790. first thing you will need is a phone number that will work with Pmcomm. This 
  5791. type of number is called, an SS/EFS number. This stands for, Start Stop 
  5792. Enhanced Full Screen. It allows access to IBMLink through a 3708 protocol 
  5793. converter. To find a number in your area, ask your IBM SE, or order book number 
  5794. GC-34-22-34. It has a current list of all the public IBMLink phone numbers in 
  5795. it. 
  5796.  
  5797. Once you have the required phone number, you can add it to the Pmcomm dialing 
  5798. directory. You should set the Parity to Even, the Data bits to 7, and the Stop 
  5799. bits to 1. The terminal type should be set to VT220. Once connected you will 
  5800. see a prompt that asks you for your terminal type. If you press enter now it 
  5801. will display a list of available terminals. The best choice here is to select 
  5802. VT220, which is selection 18. By selecting VT220 you are able to use additional 
  5803. commands that are not available with VT100. If you select VT220 the first nine 
  5804. PF keys will be the numeric key pad keys (the num lock must be off). For 
  5805. example, PF1 will be the 1 on the key pad, PF2 will be 2 and so on. For PF10 it 
  5806. will be the F1 key, PF11 will be the F2 key and PF12 will be the F3 key. To do 
  5807. a reset press the Ctrl-R and to do a clear press the Ctrl-C. 
  5808.  
  5809. Once logged onto IBMLink just follow the prompts and you shouldn't have any 
  5810. problem. 
  5811.  
  5812.  
  5813. ΓòÉΓòÉΓòÉ 15.4. How to Use Pmcomm with ESDTools. ΓòÉΓòÉΓòÉ
  5814.  
  5815. Once you are logged onto ESDTools and have selected the files you wish to 
  5816. receive, press the PF9 key (using VT220 this is the 9 on the numeric keypad). 
  5817. ESDTools will then ask you which drive you will be receiving the file to. 
  5818. Choose any drive as this parameter will be ignored by Pmcomm. You will then be 
  5819. prompted for the operating system, select OS/2. The last selection will be for 
  5820. the type of connection (i.e. Asynch etc...), select the appropriate connection 
  5821. type. ESDTools will then tell you not to press the enter key until prompted to 
  5822. do so by your communications software. At this time select Transfer, Download 
  5823. from the Pmcomm menu. Once the transfer has completed you can then press the 
  5824. enter key to return to the file list menu. 
  5825.  
  5826.  
  5827. ΓòÉΓòÉΓòÉ 15.5. How to Use a REXX program as a script. ΓòÉΓòÉΓòÉ
  5828.  
  5829. A REXX program can be executed from Pmcomm by entering the name of the program 
  5830. name directly into the dialing_directory or from the start script menu. A REXX 
  5831. program can also be started by using the shell command in a macro. An example 
  5832. of this would be: 
  5833.  
  5834. shell("c:\pmcomm\plane.cmd"); 
  5835.  
  5836. This would execute the REXX script called plane.cmd. This allows you a quick 
  5837. and easy way to execute often used scripts. 
  5838.  
  5839.  
  5840. ΓòÉΓòÉΓòÉ 15.6. How to Use drag and drop. ΓòÉΓòÉΓòÉ
  5841.  
  5842. When files are dragged from the file manager and dropped onto Pmcomm's terminal 
  5843. emulation screen, the transfer protocol that is listed for that phone number 
  5844. will be invoked and the file(s) will be sent to the remote computer. If you 
  5845. have Monitor_DCD selected then drag options will not be allowed until connected 
  5846. with another computer. 
  5847.  
  5848. To drag files from the file manager under OS/2 1.3, or drive object under OS/2 
  5849. 2.x, select a file (or files) and then click on the selected file(s) with the 
  5850. RIGHT mouse button and hold the button down. Once you have begun to drag the 
  5851. files with the mouse the mouse pointer will change shape. If the mouse pointer 
  5852. is over a program that does not accept drag and drop the pointer will again 
  5853. change shape. When the mouse pointer is over any part of Pmcomm you can release 
  5854. the right mouse button. This will drop the files onto Pmcomm and Pmcomm will 
  5855. send them. This will even work if Pmcomm is an icon. 
  5856.  
  5857. To change the protocol for the current phone number, select upload from the 
  5858. menu and then select the protocol you want (make sure that the save to dialing 
  5859. directory is selected). After pressing the OK button the file open dialog box 
  5860. will be displayed. Just press cancel and you can now use the drag and drop with 
  5861. the new protocol. 
  5862.  
  5863. If a file is dropped onto Pmcomm while it is an icon in a group menu, this file 
  5864. will be used as a setup file, and Pmcomm will be invoked. 
  5865.  
  5866. The drag and drop feature is also available for two of the buttons on the 
  5867. Button Bar. For more information see Button_Bar. 
  5868.  
  5869.  
  5870. ΓòÉΓòÉΓòÉ 16. Troubleshooting. ΓòÉΓòÉΓòÉ
  5871.  
  5872. Following are some problems that may occur when using Pmcomm. 
  5873.  
  5874.  
  5875. ΓòÉΓòÉΓòÉ 16.1. Device Open error. ΓòÉΓòÉΓòÉ
  5876.  
  5877. This message is displayed if Pmcomm can not open the specified device. If you 
  5878. are trying to open COM1, for example, and another program already has it open 
  5879. then this message will be displayed. If you are using the communication ports 
  5880. on the machine you are running Pmcomm on (not across a LAN). Then you must have 
  5881. the communication port device driver installed. For example, you should have a 
  5882. statement in your config.sys file, DEVICE=C:\OS2\COM.SYS. If not you will get 
  5883. the device open error. 
  5884.  
  5885. If you get this message when trying to access a communication port on a server, 
  5886. refer to the Modem_Pool section. One of the common problems is not first 
  5887. logging onto the network before trying to access the communication port. Also 
  5888. make sure you use Alias names that don't conflict with names on the local 
  5889. machine. For example don't try to use the name COM1 for the name of the remote 
  5890. communication port, if you have a COM1 on your local machine. Instead use a 
  5891. name like COM5, which normally will not be used on your local machine. 
  5892.  
  5893.  
  5894. ΓòÉΓòÉΓòÉ 16.2. File transfers not available. ΓòÉΓòÉΓòÉ
  5895.  
  5896. If you have Monitor_DCD turned on under Port Options and Pmcomm does not detect 
  5897. DCD then the upload and download options will be greyed out. You can turn the 
  5898. Monitor DCD option off and you will then be able to transfer files. Some common 
  5899. reasons for Pmcomm not being able to detect are: 
  5900.  
  5901. Serial cable that does not support the DCD line. 
  5902. Modem not configured to have DCD follow the state of the phone line. 
  5903. Modem does not support DCD. 
  5904.  
  5905. The monitor DCD option should also be turned off if using Pmcomm with a modem 
  5906. pool. 
  5907.  
  5908.  
  5909. ΓòÉΓòÉΓòÉ 16.3. Pmcomm will not dial out. ΓòÉΓòÉΓòÉ
  5910.  
  5911. The most common cause of this is a DOS program that has corrupted the 
  5912. communication port. Compiled basic program that are executed in the DOS box, 
  5913. for example, will sometime poll the available devices. When this happens the 
  5914. communication device driver is effected and Pmcomm will not be able to send 
  5915. information to the communication port. When this happens you will have to IPL 
  5916. (boot) the computer. 
  5917.  
  5918.  
  5919. ΓòÉΓòÉΓòÉ 16.4. Typed characters do not echo to the screen. ΓòÉΓòÉΓòÉ
  5920.  
  5921. Some electronic information services, such as Genie, run in what is called 
  5922. "half-duplex" mode. When in this mode the typed characters are not echoed to 
  5923. the screen. Pmcomm's default mode is "full duplex" which lets the services, 
  5924. like Genie, echo the characters to the screen. To make Pmcomm echo the typed 
  5925. characters to the screen, select the Screen dialog box under the main Options 
  5926. menu and check local echo on. 
  5927.  
  5928.  
  5929. ΓòÉΓòÉΓòÉ 16.5. Help not available. ΓòÉΓòÉΓòÉ
  5930.  
  5931. This message will be displayed if Pmcomm can not find the pmcomm.hlp file in 
  5932. the current directory. If you have Pmcomm installed in a Group menu make sure 
  5933. that you have the working directory set to the directory that Pmcomm is 
  5934. installed in. 
  5935.  
  5936.  
  5937. ΓòÉΓòÉΓòÉ 16.6. Pmcomm locks with a shared serial port. ΓòÉΓòÉΓòÉ
  5938.  
  5939. If Pmcomm locks up when trying to access a shared serial port you must edit the 
  5940. ibmlan.ini file in the Server well as all of the Requesters. Change the 
  5941. variable "charwait" from its default of 3600, to 3 and then re-boot the Server 
  5942. and all of the Requesters. 
  5943.  
  5944.  
  5945. ΓòÉΓòÉΓòÉ 16.7. No valid file names were passed. ΓòÉΓòÉΓòÉ
  5946.  
  5947. Under OS/2 2.0, you can only drag files from a drive object, when doing 
  5948. uploads. If you have a script as an object you can only drag that script if the 
  5949. script resides in your script directory.