Hello.
Thank you for the helpful info.
Hello.
Thank you for the helpful info.
JCB
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks