VoiceBot

VoiceBot

cimerians Jan 25, 2018 @ 7:47pm
Code for spamming a key?
Anyone have a code that can spam a key on the keyboard and then hit another key to stop it? ex. spam (repeatedly press) the Q key and then hit another key like E stop it.... preferably using words to start and stop it.

< >
Showing 1-2 of 2 comments
cimerians Jan 28, 2018 @ 5:48pm 
Figured it out anybody wants to use it, say a word then spam left click, stop by pressing SHIFT+ESC

---------------------

public static class VoiceBotScript
{
public static void Run(IntPtr windowHandle)
{
while (true)
{
if (BFS.Input.IsKeyDown("16;27")) //Shift + Escape
break;

BFS.Input.LeftClickMouse();
BFS.General.Sleep(20);
}
}
}
{FoP}Nep Jul 30, 2018 @ 2:04pm 
thank you !
< >
Showing 1-2 of 2 comments
Per page: 1530 50