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 ); } }
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); } }