using System; using System.Drawing; public static class VoiceBotScript { public static void Run(IntPtr windowHandle) { uint appID = BFS.Application.GetAppIDByFile("*blender.exe"); if(BFS.Application.IsAppRunningByAppID(appID)){ BFS.Window.Focus(BFS.Window.GetWindowByText("Blender*")); } { BFS.VoiceBotActions.StartProgram(@"C:\Blender 2.8\blender.exe"); } } }
using System; using System.Drawing; public static class VoiceBotScript { public static void Run(IntPtr windowHandle) { uint appID = BFS.Application.GetAppIDByFile("*notepad++.exe"); if (appID > 0) { BFS.Window.Focus(BFS.Window.GetWindowByText("*Notepad++*")); } else { BFS.VoiceBotActions.StartProgram(@"C:\Program Files\Notepad++\notepad++.exe"); } } }