Disabling main menu

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Stef123

Disabling main menu

Post by Stef123 »

Is there a way to NOT bring up the main menu when pressing ALT?
I know it's a Windows thing, but maybe there is a tweak to prevent XY from responding to it?

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Disabling main menu

Post by binocular222 »

Either:
- Hide the menu altogether ::1061
- An Autohotkey script to disable Alt when XYplorer window is active

Code: Select all

Alt::return
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Stef123

Re: Disabling main menu

Post by Stef123 »

Thanks. Already tried 1061 but it doesnt keep ALT from brining it up anyway.
AutoHotKey sounds good, just have to figure out how to restrict it to XY, I still need ALT for other programs that don't feature the many alternatives XY has to offer.

highend
Posts: 14942
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Disabling main menu

Post by highend »

just have to figure out how to restrict it to XY

Code: Select all

#IfWinActive, ahk_class ThunderRT6FormDC
One of my scripts helped you out? Please donate via Paypal

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

Re: Disabling main menu

Post by admin »

Stef123 wrote:Thanks. Already tried 1061 but it doesnt keep ALT from brining it up anyway.
Looks like you have set this tweak:

Code: Select all

HideMainMenuToggleByAlt=1

binocular222
Posts: 1423
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Disabling main menu

Post by binocular222 »

@Highend:

Code: Select all

Settitlematchmode, 2
#Ifwinactive XYplorer ahk_class ThunderRT6FormDC
Alt::return
Notice the pound sign
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Stef123

Re: Disabling main menu

Post by Stef123 »

Exactly the kind of tweak I hoped for, set it to zero and no more accidental ALT-presses. GREAT.

Thanks. Also to bino and highend - your lines did disable ALT in XY, as well as in everything downstream. :? So I placed it at the very end of my .ahk and that did the trick, but got me wondering anyway. Also about IfWinActive vs #Ifwinactive - definitely takes more help-reading on my part.

Post Reply