SendChar() 개인적인 정적인 메소드

private static SendChar ( ClientWindowHandle hWnd, char c ) : void
hWnd ClientWindowHandle
c char
리턴 void
예제 #1
0
        public static bool SendText(string text)
        {
            IntPtr handle = Client.Handle;

            if (handle == IntPtr.Zero)
            {
                return(false);
            }
            for (int i = 0; i < text.Length; i++)
            {
                Client.SendChar(handle, text[i]);
            }
            Client.SendChar(handle, '\r');
            Client.SendChar(handle, '\n');
            return(true);
        }
예제 #2
0
        public static bool SendText(string text)
        {
            IntPtr handle = Client.Handle;

            if (!(handle != IntPtr.Zero))
            {
                return(false);
            }
            for (int index = 0; index < text.Length; ++index)
            {
                Client.SendChar(handle, text[index]);
            }
            Client.SendChar(handle, '\r');
            Client.SendChar(handle, '\n');
            return(true);
        }