using System;
using System.Drawing;
using System.Diagnostics;
using System.ComponentModel;
public static class VoiceBotScript
{
public static void Run(IntPtr windowHandle)
{
// Process Name
string windowText = "*firefox*";
// If process is running then focus window
if (Process.GetProcessesByName(windowText).Length > 0)
{
BFS.Window.Focus(BFS.Window.GetWindowByText(windowText));
}
// If process is not running output tts error
else if (Process.GetProcessesByName(windowText).Length < 1)
{
BFS.Speech.TextToSpeech("Error");
}
}
}