Send mouse click to hypermesh

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello

 

I would like to bind as keystroke to running a macro, which in turn simulates a middle mouse click.

 

I have no trouble binding any key (even outside the regular keys). But I find no way to emit/simulate middle mouse click.

 

Any ideas ?

Answers

  • tinh
    tinh Altair Community Member
    edited June 2018

    I don't think we can use 'bind' command to bind a script to middle mouse click event, this event (and mouse left, right also) is processed by hm and not exposed to tcl/tk

    key events is exposed, so tcl/tk can bind them with script

     

    middle mouse click event will raise 'menudraw' event which can be bound by a tcl script

    but as many other tasks can also raise 'menudraw' event, controlling the script will be very tough