Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Having problems with quickly closing a macro
#4
This should work.
 
Code:
Copy      Help
// script "BF6 spacebar.cs"
/*/ 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");
}

Without options NoBlockInput and NoModOff the keys.send makes triggers unreliable.

The speed depends not on the language. It depends on: 1. The target app. 2. OS and computer speed. 3. Delays added by the "send keys" function.

Also try this. The sendL function does not use the "send keys" reliability features that interfere with triggers.
 
Code:
Copy      Help
// script "BF6 spacebar2.cs"
/*/ ifRunning end; /*/
script.setup(trayIcon: true, sleepExit: true, exitKey: KKey.MediaStop);

while (true)
{

    keys.sendL("Space");
    15.ms();
}


Messages In This Thread
RE: Having problems with quickly closing a macro - by Gintaras - 10-17-2025, 03:40 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)