Hi thanks again for your answer
Is there a reason you are passing a fixed mouse position?
The 500,500 position was meant as a test, but yes it should be an input (current mouse position) from an external source / command and not a mouseclick.
Your snippet works but im looking for a way to achieve the screenposition without clicking, or performing an action with the mouse. Is there a getMouseposition() which returns a mouseEvent with the position of the cursor?
Alternatively, i already have the global screen coordinates of the mouse from an external source, but these do not match with any of the coordinates (offset,screen,client) which you get from the “mousedown” listener in atom. So the problem is solved if there is a consistent way of translating between global screen coordinates and say client coordinates in atom
As for hidden stuff, I take that to mean it’s not officially part of the API and will potentially change or be removed. If you think it would benefit lots of people, you could ask them to mark it as public
I think ill do that. At least some sort of mouseEvent handling could be nice.
BTW, none of it is truly “hidden”. For example, the methods for getting screen position are completely present in the following file
ok yes, I already found it there through another thread, so maybe hidden is not the correct term, i just meant that it is not documented