使用方法:Dim m_cs232 As New CRs232m_cs232.openPort() '打开串口Dim send() As Byte = {&H1, &H2, &H3}m_cs232.write(send) '发送Dim i as integer = m_cs232.GetReadBuffer() '得到串口输入缓冲区当前字节数Dim rev() As Byterev = m_cs232.read(3) '读取3个字节m_cs232.clsPort() '清空串口输入缓冲区m_cs
不错哦k = WaitKey() If k="81" Then ck(i) = Plugin.Window.Foreground() i=i+1 ElseIf k="80" Then Goto kais End if Goto xh Rem kais ii=i For xh i=1 //发送喊话 If h1="1" Then For ii-1 Call Plugin.BGKM5.KeyClick(ck(i),13) Delay 100 hua1=""&hua1&"" Call Plugin.W