HUI Control - window title change
Title
HUI Control - window title change
What do you expect to happen when you run the script/macro?
Click "Setup in Pro Tools", have script enable MIDI input via the popup window within Pro Tools
Are you seeing an error?
Checkbox action requires UI element. This error is showing due to the new window title "sf.ui.proTools.windows.whoseTitle.is("MIDI Input Enable")"
What happens when you run this script?
Click setup, script stalls when MIDI input enable window shows up, script can't access elements because window title has changed
How were you running this script?
I clicked the "Run Script" or "Run Macro" button in SoundFlow
How important is this issue to you?
5
Details
{ "inputExpected": "Click \"Setup in Pro Tools\", have script enable MIDI input via the popup window within Pro Tools", "inputIsError": true, "inputError": "Checkbox action requires UI element. This error is showing due to the new window title \"sf.ui.proTools.windows.whoseTitle.is(\"MIDI Input Enable\")\"", "inputWhatHappens": "Click setup, script stalls when MIDI input enable window shows up, script can't access elements because window title has changed", "inputHowRun": { "key": "-MpfwYA4I6GGlXgvp5j1", "title": "I clicked the \"Run Script\" or \"Run Macro\" button in SoundFlow" }, "inputImportance": 5, "inputTitle": "HUI Control - window title change" }
Source
sf.ui.proTools.appActivateMainWindow();
sf.ui.proTools.getMenuItem('Setup', 'MIDI', 'MIDI Input Devices...').elementClick();
var midiInputWin = sf.ui.proTools.windows.whoseTitle.is("MIDI Input Enable").first;
midiInputWin.elementWaitFor();
midiInputWin.checkBoxes.whoseTitle.is("HUI Control Midi Output").first.checkboxSet({
targetValue: 'Enable',
});
midiInputWin.buttons.whoseTitle.is("OK").first.elementClick();
midiInputWin.elementWaitFor({ waitForNoElement: true });
sf.ui.proTools.getMenuItem('Setup', 'Peripherals...').elementClick();
var win = sf.ui.proTools.windows.whoseTitle.is('Peripherals').first;
win.elementWaitFor();
var tab = win.radioButtons.whoseTitle.startsWith("MIDI Controllers").first;
tab.elementClick();
win.popupButtons.allItems[12].elementWaitFor();
win.popupButtons.allItems[12].popupMenuSelect({ menuPath: ['none'] });
win.popupButtons.allItems[12].popupMenuSelect({ menuPath: ['HUI'] });
win.popupButtons.allItems[11].popupMenuSelect({ menuPath: ['Predefined', 'HUI Control Midi Output'] });
win.popupButtons.allItems[7].popupMenuSelect({ menuPath: ['Predefined', 'HUI Control Midi Input'] });
win.buttons.whoseTitle.is("OK").first.elementClick();
Links
User UID: Qi9NyOFsERSW8NJyb5rdRQ3z39H3
Feedback Key: sffeedback:Qi9NyOFsERSW8NJyb5rdRQ3z39H3:-OPInKNDbIigUKjta_EO
Feedback ZIP: QqVA4YM8suaW6KgscIelM1zw9hd9kOFAXMym7/SH7bkHBd1sCNHL72anv4qBb8fZlZ4XrL2DiXqU7xku5dptqES0tpI2JMZu8qjkVKn/z2o+g4BSO/rXZgeFvK/h6BAFz1qNEOI/JoC7+B4sbRSlMKtuBydGAg3EmA1Uq+DN9wiDHIPiKG+dcZIJg1/uXYhuZRaU4RizycAyLO04+ZtvlAHBf17hWtVyjwtihH39HI4meIVR3MelRxoDI2CGKs23ol/mnuOM5b2XPBPaSoO2pSSJ6/Bb5mM2znH80aI2/mhICJfnuSR48DaCEzFMbE7A265tJDJp2ZdV2BJbnTvvlD18zojowRt7fiN+1tTEYs8=