Knowledge Base Ask Cody Resources



 
Can I get the VT220 control to automatically send data to the server without using the Windows Socket control?
Yes. First, obtain the window handle of the VT220 control. This can be done using the GetWindow function such as

VT220Handle = GetWindow(Form1.hwnd, GW_CHILD)

where Form1 is the form containing the VT220 control. This call assumes that the control is the only child window. Then send the WM_CHAR message to the control window for every character in the string you want to send (including the CR or CR/LF, but excluding the zero terminator). You should see each character being sent to the server and then echoed back to the client display. The server will execute the command after the line terminator has been sent.





09/24/2018   Legal notices | PRIVACY Policy |