access main menu w/ alt-combo when hidden

Features wanted...
Post Reply
autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

access main menu w/ alt-combo when hidden

Post by autocart »

Hi Don,
From other apps (esp. Firefox) I am used to being able to access the main menu with the normal alt-combos even when it is hidden.
Wouldn't it be nice in XY as well?

jaywalker32
Posts: 205
Joined: 27 May 2014 05:24

Re: access main menu w/ alt-combo when hidden

Post by jaywalker32 »

You can setup a custom keyboard shortcut:

Tools → Customize Keyboard Shortcuts

Then in Category: Miscellaneous, look for General → Toggle Main Menu. You set it to any alt-combo that is free.

autocart
Posts: 1248
Joined: 26 Sep 2013 15:22

Re: access main menu w/ alt-combo when hidden

Post by autocart »

THX for the brainstorm. It is appreciated but still not what I want.

admin
Site Admin
Posts: 60591
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: access main menu w/ alt-combo when hidden

Post by admin »

autocart wrote:From other apps (esp. Firefox) I am used to being able to access the main menu with the normal alt-combos even when it is hidden.
Technically not possible.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: access main menu w/ alt-combo when hidden

Post by bdeshi »

admin wrote:Technically not possible.
Hang on now!

@autocart Create these UDCs:

Code: Select all

category: Run Script
 options: On KeyUp=Off

 caption: _Menu - File
  script: if !get('#1061'){popupmainmenu 'File'}
shortcut: ALT+F

 caption: _Menu - Edit
  script: if !get('#1061'){popupmainmenu 'Edit'}
shortcut: ALT+E

 caption: _Menu - View
  script: if !get('#1061'){popupmainmenu 'View'}
shortcut: ALT+V

 caption: _Menu - Go
  script: if !get('#1061'){popupmainmenu 'Go'}
shortcut: ALT+G

 caption: _Menu - Favorites
  script: if !get('#1061'){popupmainmenu 'Favorites'}
shortcut: ALT+A

 caption: _Menu - User
  script: if !get('#1061'){popupmainmenu 'User'}
shortcut: ALT+U

 caption: _Menu - Scripting
  script: if !get('#1061'){popupmainmenu 'Scripting'}
shortcut: ALT+S

 caption: _Menu - Tools
  script: if !get('#1061'){popupmainmenu 'Tools'}
shortcut: ALT+T

 caption: _Menu - Panes
  script: if !get('#1061'){popupmainmenu 'Panes'}
shortcut: ALT+P

 caption: _Menu - Tabsets
  script: if !get('#1061'){popupmainmenu 'Tabsets'}
shortcut: ALT+B

 caption: _Menu - Window
  script: if !get('#1061'){popupmainmenu 'Window'}
shortcut: ALT+W

 caption: _Menu - Help
  script: if !get('#1061'){popupmainmenu 'Help'}
shortcut: ALT+H
  • Notes
  • The submenus popup on mouse cursor location.
  • The `if !get('#1061')` part is necessary only when OnKeyUp=off. Otherwise when the main menu is visible, the submenus would pop up twice.
    it's just that I personally find OnKeyUp=off more natural. You can skip the if condition for a much simpler script with OnKeyUp=on.
  • The underscore in caption hides these UDCs from the User | Run Script menu, to avoid cluttering it up.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 60591
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: access main menu w/ alt-combo when hidden

Post by admin »

SammaySarkar wrote:
admin wrote:Technically not possible.
Hang on now!
Ok, SammaySarkally it's possible, of course, using hacks from Asteroid B-612.

bdeshi
Posts: 4249
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612 / Dhaka
Contact:

Re: access main menu w/ alt-combo when hidden

Post by bdeshi »

:) In fact I have been using ~this set up since ancient times.
:ninja: btw, I wonder how popupmainmenu could be with the x,y params from popupmenu.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 60591
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: access main menu w/ alt-combo when hidden

Post by admin »

SammaySarkar wrote: :ninja: btw, I wonder how popupmainmenu could be with the x,y params from popupmenu.
You will find out soon.

Post Reply