Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: m2i7c9k on April 29, 2022, 05:00:52 pm

Title: VBScript get mouse X/Y
Post by: m2i7c9k on April 29, 2022, 05:00:52 pm
Hi Guys,

it is possible in EA (VBScript) to get mouse coordinates and use them as position
for adding a new element to the diagram, pls?

Mick
Title: Re: VBScript get mouse X/Y
Post by: qwerty on April 29, 2022, 06:43:21 pm
Not from EA's API. You need to turn to Windoze and jiggle-juggle with window handlers and who-knows-what. It would not hurt to send a feature request for getting the context position of the mouse for a right-click. But don't hold your breath.

q.
Title: Re: VBScript get mouse X/Y
Post by: Geert Bellekens on April 29, 2022, 07:11:52 pm
I don't think you can actually, not even with Windoze and jiggle-juggle with window handlers and who-knows-what

Geert
Title: Re: VBScript get mouse X/Y
Post by: m2i7c9k on April 29, 2022, 07:14:40 pm
Thank you Guys.