Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MSComm Control
#6
This worked, I was able to send chars to the PC from my calc on many occasions. It was very unstable though and crashed QM. The QM file was not backed up so I lost the events folder/function that was automatically created. But now double clicking on OnComm event in the popup menu declares the c_DMSCommEvents function/folder but doesn't declare "c" as a local control (commented out) as it did before. I forgot how.
Code:
Copy      Help
VARIANT a=TRUE

MsComm32.MSComm c._create

c.Settings = "9600,N,8,1"
c.CommPort=1
c.PortOpen = a
c.RThreshold=1
out c.PortOpen
c._setevents("c_DMSCommEvents")
opt waitmsg 1
wait -1
Matt B


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)