Fake mouse click?
-
Is it possible to use a script to simulate fake mouse click?
-
@JulesV What does the mouse click need to do?
-
@David-Healey I have a main panel with three child panels set to
"allow Callbacks": "Clicks, Hover & Dragging"for FX chain ordering.I store the positions of these three child panels as an array within the main panel and the task is set inside the main panel's callback. It normally works, but when I use it for another complex task, it stops working when I run
.changed()on the main panel. (it might be a bug)It only works when I make a small click on one of the child panels. That's why I neeed a fake click.
-
@JulesV Can you make a minimal example of the issue so I can take a look?
-
@David-Healey So, fake mouse clicks aren't possible, right?
The only thing we can do to trigger the same logic the click would run via a function.
-
@JulesV A fake mouse click won't solve your problem. If you rely on that, then something else is broken. If you need some part of the mouse callback to be executed on initialization, you need to break this out of the function and call it explicitly in onInit.