Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stopping Script Execution
#1
In QM, I can use the Pause key to stop macro execution, which is very convenient.
This functionality is not available in LA, and implementing it might be somewhat challenging.

I have the following suggestion:
During script execution, display a button in the bottom right corner of the screen. Clicking this button would stop the execution.
However, in many cases, it might be difficult to control the mouse.
 
To address this, define a hotkey, for example Ctrl. Pressing Ctrl would immediately hover the mouse pointer over the button.
Then, pressing the Enter key would stop the script execution (Ctrl -> Enter)  

The pause function in the following code does not work
script.setup(trayIcon: true, sleepExit: true, pauseKey: KKey.ScrollLock);

I'm not sure if it's feasible  Wink

Also, the button in the image below be displayed in red during script execution?


Attached Files Image(s)
   
#2
script.setup has parameter exitKey.

Code:
Copy      Help
script.setup(trayIcon: true, sleepExit: true, exitKey: KKey.MediaStop);
dialog.show(null, "press key MediaStop");
#3
Thank you, it's useful.
#4
Using the ScrollLock for exitKey , when pressed once, the indicator light will turn on. I need to press it again, to keep the indicator light off continuously.


Forum Jump:


Users browsing this thread: 1 Guest(s)