CK.Plugins.SendInputDriver.SendStringPlugin.OnCommandSent C# (CSharp) Method

OnCommandSent() protected method

protected OnCommandSent ( object sender, CommonServices e ) : void
sender object
e CommonServices
return void
        protected void OnCommandSent( object sender, CommonServices.CommandSentEventArgs e )
        {
            if( e.Command.StartsWith( "sendString:" ) )
            {
                SendString( e.Command.Substring( "sendString:".Length ) );
            }
            else if( e.Command.StartsWith( "sendKey:" ) )
            {
                var keyString = e.Command.Substring( "sendKey:".Length );
                Native.KeyboardKeys result;
                if( Enum.TryParse<Native.KeyboardKeys>( keyString, true, out result ) )
                {
                    SendKeyboardKey( result );
                }
            }
        }