Results 1 to 12 of 12

Thread: Communicate to COM port (modem)

Threaded View

  1. #8
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Communicate to COM port (modem)

    This is how we did it, so I know a little about it:
    VB Code:
    1. Sub OpenDrawer()
    2.   On Error GoTo ErrorOpenDrawer
    3.   Open "//server/lpt" For Output As #1
    4.     Print #1, Chr$(27) & Chr$(112) & Chr$(0) & Chr$(25) & Chr$(250)
    5.   Close #1
    6.   On Error GoTo 0
    7.   Exit Sub
    8. ErrorOpenDrawer:
    9.   On Error GoTo 0
    10. End Sub

    and I know that it is VB. my point is that it also works in HyperTerminal
    Last edited by dglienna; Apr 20th, 2005 at 04:12 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width