using System; using System.Drawing; public static class VoiceBotScript { public static void Run(IntPtr windowHandle) { // loop forever while (true) { // Send W continuously BFS.Input.SendKeysFast("{VK_87}"); // breaks loop if you press any of the following keys: SHIFT if (BFS.Input.IsKeyDown("16")) { break; }; // sleep for a bit so we don't run-up the CPU } } }