PythonScript icon indicating copy to clipboard operation
PythonScript copied to clipboard

[Feature] Option to disable 'Another script is currently running' popup

Open pidgeon777 opened this issue 5 years ago • 1 comments

In some scripts, I need to press some hotkeys in quick sequence. When doing so, the 'Another script is currently running' popup appears and I have to close it every time before proceeding. An option to disable that popup would be appreciated.

Maybe it could be possible for Python Script to automatically just wait for the previous script to end without any warning, before proceeding with the execution of a subsequent script?

pidgeon777 avatar Feb 19 '20 15:02 pidgeon777

@pidgeon777 Could you add a step by step description. Currently I don't understand what you want to do. Seems you are trying to run multiple python scripts. Did you assign key shortcuts for them and starting the scripts with the shortcuts and don't want to wait until the script execution has finished before starting the next action.

The problem that might arise by waiting in the background while the user moves on is e.g. that the focussed document might change and some unexpected text document is modified.

The relevant code is here:

https://github.com/bruderstein/PythonScript/blob/1402c12944cdad041595043812f324b0e3131dcc/PythonScript/src/PythonScript.cpp#L503

and it should be possible to add a config option to skip the warning

chcg avatar Jul 16 '20 11:07 chcg