1

Executing the following code creates an ActionMenu:

ActionMenu["Menu", {"temp1" :> Print[1], "temp2" :> Print[2]}]

If you move the mouse over the ActionMenu and then mouse click you will see the possible choices appear as shown below.

enter image description here

I am trying to find a way to get the choices to appear without moving the mouse or clicking it. Instead, I would like to achieve it programmatically with no mouse input. A keyboard solution with no mouse input would also suffice. Any ideas?

Glorfindel
  • 547
  • 1
  • 8
  • 14
B flat
  • 5,523
  • 2
  • 14
  • 36
  • 1
    I don't think you can do this with ActionMenu except of maybe using JLink to simmulate mouse click. But you can create your own menu based on AttachedCells that you will have control over. Here is an example: https://mathematica.stackexchange.com/q/102586/5478 but it does not expose any methods to control it remotely, you would need to adapt it. – Kuba Apr 06 '22 at 07:48
  • @Kuba I appreciate the direction! Attachcell seem very useful. – B flat Apr 06 '22 at 17:30

0 Answers0