10-17-2025, 04:09 PM
(This post was last modified: 10-17-2025, 04:12 PM by AshesOfHegemony.)
Thank you very much!
This one works flawlessly:
Im getting a compilation error at sound.speak();
Compilation: 1 warnings >>
Warnings can be disabled with C# #pragma warning or in Properties.
BF6 Spacebar2.cs(12,1): warning CS0162: Unreachable code detected
The sound effect is not being read before the script closes.
This one works flawlessly:
Quote:This should work.My next and final question is; how do i get the sound.speak("Toggle Off"); to play after the macro is toggled off in this code?
Code:
/*/ ifRunning end; /*/
script.setup(trayIcon: true, sleepExit: true, exitKey: KKey.MediaStop);
opt.key.KeySpeed = 15;
opt.key.NoBlockInput = true;
opt.key.NoModOff = true;
while (true)
{
keys.send("Space");
}
sound.speak("Toggle Off");Compilation: 1 warnings >>
Warnings can be disabled with C# #pragma warning or in Properties.
BF6 Spacebar2.cs(12,1): warning CS0162: Unreachable code detected
The sound effect is not being read before the script closes.

Having problems with quickly closing a macro