Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: Serial Port in VBScript

  1. Re: Serial Port in VBScript

    Hello.
    Thank you for the helpful info.
    JCB

  2. #12
    zoomkat Guest

    Re: Serial Port in VBScript

    Below is a simple way to write bytes to the com port using VBscript. VBcript operates somewhat like a batch file in that the comport is opened, the bytes are sent, and the port is closed. You generally can't receive bytes from the port using VBscript. Methods using MSCOMMLib would require it to be registered somewhere on the computer, usually by VB or similar.

    Code:
    Set fs=CreateObject("Scripting.FileSystemObject")
    Set a = fs.CreateTextFile("COM1:",True)
    a.write chr(255)
    a.write chr(0)
    a.write chr(127)
    a.Close

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question(s) Cannot figure out how to write to the serial port in C++
    By Superlaxstar112 in forum Software and Programming
    Replies: 4
    Last Post: 07-23-2008, 05:02 PM
  2. Lassen GPS Eval kit and serial connection
    By IntoMo in forum Sensors
    Replies: 2
    Last Post: 06-30-2008, 11:24 AM
  3. Question(s) servo and motor controllers
    By csdude in forum Arbotix, Microcontrollers, Arduino
    Replies: 7
    Last Post: 06-15-2008, 08:23 PM
  4. Kyosho 32 Port Sensor Board for RCB3
    By Droid Works in forum Arbotix, Microcontrollers, Arduino
    Replies: 4
    Last Post: 05-02-2008, 08:07 PM
  5. Kondo web page translated.
    By Droid Works in forum Humanoids, Walkers & Crawlers
    Replies: 4
    Last Post: 10-06-2007, 05:49 PM

Tags for this Thread

Posting Permissions

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