Exemple #1
0
        static void Main( string[] args )
        {
            try {
                MicroThread mt = new MicroThread();

                foreach ( var c in VoiceCommandPluginHost.GetInstance( "../../../plugin/PowerPointPlugin.dll" ) ) {
                    mt.AddApp( c );
                }

                mt.DoWork( "powerpoint" );
                mt.DoWork( "next" );

                mt.DoWork( "powerpoint" );
                mt.DoWork( "close" );

                mt.DoWork( "powerpoint" );
                mt.DoWork( "prev" );

                mt.DoWork( "powerpoint" );

                mt.DoWork( "explorer" );
                mt.DoWork( "close" );

                mt.DoWork( "powerpoint" );
                mt.DoWork( "prev" );
            }
            catch ( Exception ex ) {
                Console.WriteLine( ex.Message );
            }
        }
Exemple #2
0
        static void Main(string[] args)
        {
            try {
                MicroThread mt = new MicroThread();

                foreach (var c in VoiceCommandPluginHost.GetInstance("../../../plugin/PowerPointPlugin.dll"))
                {
                    mt.AddApp(c);
                }

                mt.DoWork("powerpoint");
                mt.DoWork("next");

                mt.DoWork("powerpoint");
                mt.DoWork("close");

                mt.DoWork("powerpoint");
                mt.DoWork("prev");

                mt.DoWork("powerpoint");

                mt.DoWork("explorer");
                mt.DoWork("close");


                mt.DoWork("powerpoint");
                mt.DoWork("prev");
            }
            catch (Exception ex) {
                Console.WriteLine(ex.Message);
            }
        }