Popup menu click in Reaper
Title
Popup menu click in Reaper
What do you expect to happen when you run the script/macro?
script runs a command in reaper which brings up a popup window that the user needs to click. i need to figure out how to click the popup menu.
Are you seeing an error?
What happens when you run this script?
i don't know how to add the code that tells SF to wait for the popup menu and then click "OK"
How were you running this script?
I used a Stream Deck button
How important is this issue to you?
5
Details
{ "inputExpected": "script runs a command in reaper which brings up a popup window that the user needs to click. i need to figure out how to click the popup menu. ", "inputIsError": false, "inputWhatHappens": "i don't know how to add the code that tells SF to wait for the popup menu and then click \"OK\"", "inputHowRun": { "key": "-MpfwmPg-2Sb-HxHQAff", "title": "I used a Stream Deck button" }, "inputImportance": 5, "inputTitle": "Popup menu click in Reaper\n" }
Source
var commandName = `ReaRanger Copy SubProject TIMECODE`;
var cmd = sf.app.reaper.getAllCommands().commands.find(c => c.name === commandName);
if (!cmd) throw `Command "${commandName}" was not found`;
var cmdId = cmd.commandId;
sf.app.reaper.runCommand({
commandId: cmdId,
});
sf.menu.waitForPopupMenu();
sf.ui.app("com.cockos.reaper").windows.whoseDescription.is("alert").first
Links
User UID: ewU3L2DFMdYAaMCeXOgqQORCHiq1
Feedback Key: sffeedback:ewU3L2DFMdYAaMCeXOgqQORCHiq1:-OUzJmUq7iqqCBl4GxyN
Feedback ZIP: kaszip1KepD5E6yQ09nDlmQjQAnbWM8B6525XMDC6TIwYGGnpwtFp48GXC5COY5q6Bsv1aHeueVONcLfh4pdX+B7zUd/N9iV/Zjdl5wArPyHL5wr+SXayuCD+KWr3/OSfA0Oa+fOOZHlBQ25LhYn9h2Cm084Ew2V2P0mkQOiuJxqVhAfACuKJOEB4DzKOhCNP9v+OEpuogWcFd5pqOvvZUoZ9evQRgxun7Uv7IyNauKeK6RUe+I+OGfVoVS1xgEWXL24mN3acGal3POdXgji4djtrT2MP2MTY7uJwzAT+sU5Z5SWNcoqas84TYyhJepf4ueyjM/F+NI25beENeKK7j/44bOBhpJJbO82cxaf2HA=