SendChar() private static method

private static SendChar ( ClientWindowHandle hWnd, char c ) : void
hWnd ClientWindowHandle
c char
return void
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }