Author Topic: VBScript get mouse X/Y  (Read 2017 times)

m2i7c9k

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
VBScript get mouse X/Y
« 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: VBScript get mouse X/Y
« Reply #1 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13404
  • Karma: +567/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: VBScript get mouse X/Y
« Reply #2 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

m2i7c9k

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: VBScript get mouse X/Y
« Reply #3 on: April 29, 2022, 07:14:40 pm »
Thank you Guys.