By Danny @Danny_van_Spreuwel
Hi, in another post I saw the same problem and was solved there. I can't seem to get it work. Without the command lines the click works but not with the modifiers code.
//Start holding down Command
sf.keyboard.modifiers({
isCommand: true,
});
//Click speaker icon
sf.ui.app("com.genelec.GLM4").mainWindow.mouseClickElement({
relativePosition: {"x":event.props.posX,"y":event.props.posY},
});
//Release all modifiers
sf.keyboard.modifiers();
- Christian Scheuer @chrscheuer2022-05-26 10:33:30.335Z
Hi Danny,
You need to set the "isCommand" property of the "mouseClickElement" action to
true
instead of using the sf.keyboard.modifiers action(s).Christian Scheuer @chrscheuer2022-05-26 10:33:55.227Z
Ie.:
sf.ui.app("com.genelec.GLM4").mainWindow.mouseClickElement({ relativePosition: {"x":event.props.posX,"y":event.props.posY}, isCommand: true, });
Danny @Danny_van_Spreuwel
Yes, this works! Thanks!