R3.2.0 W10. I am using a function whose fragment is as follows:
local rna=renoise.app() local function custom_prompt() local mpt=rna:show_prompt( ("PRE: %s"):format(phm_tool_name), ("%s\nDo you really want to continue?"):format(string_names), {"Proceed","Cancel","Open Folder Only"} ) if (mpt=="Cancel") then return elseif (mpt=="Open Folder Only") then if not io.exists(path) then os.mkdir(path) end rna:open_path(path) return else --more & more code end
The pop-up window of this show_prompt() are this aspect:
With 3 buttons: [Proceed] [Cancel] [Open Folder Only]
I think I am using the code correctly. But when this pop-up window appears and I wait a few seconds, after I press the “Cancel” button, the following window appears:
The temporar sequence is this:
- I invoke the popup window “PRE: Phrase Manager”.
- I wait a few moments, 10, 15 seconds or more. The time it takes to read the contents of the window.
- I press the “Cancel” button (the “return” order should be executed inside the code).
- Then the warning window appears “Script not responding”.
I don’t understand why it crashes with the message: “may be busy or may have stopped responding”.
Is the code that I have built wrong or is there a flaw in the API?
I understand that, if you want to stop the script, it is necessary to put “return”. The Cancel button has a “return”. Even so, the “Script not responding” window appears.
Does anyone know exactly what is happening? I think I have no control over this.