using System; using System.Drawing; public static class VoiceBotScript { public static void Run(IntPtr windowHandle) { //character code 77 is the 'm' key if(BFS.Input.IsKeyDown("77")) { BFS.Input.SendKeyUp("m"); BFS.Speech.TextToSpeech("Map Closed"); } else { BFS.Input.SendKeyDown("m"); BFS.Speech.TextToSpeech("Map Opened"); } } }