Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Equivalent to "end macro" hotkey from QM2
#2
I was considering to add an "end" hotkey, but it has problems:
1. Can interfere with keys pressed by the script.
2. Does not work when the script is running not as admin and the active window is admin.
3. Does not work or is delayed if user input is blocked by an inputBlocker or keyboard hook. For example keys.send and similar functions block input by default.

Instead added two other ways to end a script. Both are inactive by default, but can be activated easily.

This is a script created using the default template (look in Options -> Templates), and added "show dialog" function:

C# code:
// script "" //.
script.setup(trayIcon: true);
//..

dialog.show("");

Add 2 arguments in script.setup (or one of them):

C# code:
// script "" //.
script.setup(trayIcon: true, sleepExit: true, lockExit: true);
//..

dialog.show("");

More info in script.setup help.

If want to add these arguments in all new scripts, you can do it in Options -> Templates.


Messages In This Thread
RE: Equivalent to "end macro" hotkey from QM2 - by Gintaras - 11-14-2021, 06:22 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)