using System; using System.Drawing; public static class VoiceBotScript { public static void Run(IntPtr windowHandle) { // tab to the scrubber for (int i = 0; i < 8; i++) { BFS.General.ThreadWait(25); BFS.Input.SendKeys("{VK_9}"); } // loop the right arrow key while (!BFS.VoiceBot.IsMacroRunning("play")) { BFS.General.ThreadWait(100); BFS.Input.SendKeys("{VK_39}"); } // click on the video to hide the player controls BFS.Input.SetMousePosition(BFS.Window.GetBounds(BFS.Window.GetFocusedWindow()).X + 200, BFS.Window.GetBounds(BFS.Window.GetFocusedWindow()).Y + 200); BFS.General.ThreadWait(50); BFS.Input.LeftClickMouse(); } }