10-17-2025, 05:30 AM
(This post was last modified: 10-17-2025, 03:19 PM by AshesOfHegemony.)
Im trying to learn LibreAutomate. I created small macro to spam spacebar every 20 milliseconds. I set it to toggle on hotkey press (Shift + Numpad+). It works and runs as intended, but if i run it for longer than a few seconds it takes multiple attempts to toggle it off. I'm not sure what im doing wrong here or if this is a limitation of the LibreAutomate itself?
The hotkey is assigned in the "hotkey triggers" file
Any help would be appreciated.
/*/ ifRunning end; /*/
script.setup(trayIcon: true, sleepExit: true, exitKey: KKey.MediaStop, pauseKey: KKey.MediaPlayPause);
sound.speak("Toggle On");
bool toggle = false;
while (!toggle)
{
keys.send("Space");
}using Au.Triggers;
partial class Program {
[Triggers]
void HotkeyTriggers() {
var hk = Triggers.Hotkey;
//Add hotkey triggers here.
//To add triggers can be used triggerSnippet or menu TT > New trigger.
//To add trigger scopes (window, program) can be used Ctrl+Shift+Q.
//Click the Run button to apply changes after editing.
//More info in Cookbook.
hk["Ctrl+Shift+T"] = o => Triggers.ShowTriggersListWindow();
hk["Shift+Add"] = o => script.run(@"Game Spacebar.cs");
..........
Having problems with quickly closing a macro