Disabling the ALT key only for triggered menus Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
paik1002
Posts: 355
Joined: 28 Nov 2015, 02:45

Disabling the ALT key only for triggered menus

26 Apr 2017, 21:52

I would like to disable the menu enabling function triggered via the ALT key, in applications such as IE or PDF-XChange.

However, for obvious reasons I would still like to use the ALT key as a hotkey modifier.

Could it be done?

By the way, the following script does not seem to disable the menu for many applications, e.g. IE, PDF-XChange.

Code: Select all

ALT::return
Rohwedder
Posts: 7616
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Disabling the ALT key only for triggered menus

27 Apr 2017, 04:29

Hallo,
disabling works with:

Code: Select all

Alt::Esc
but it blocks the ALT key as an hotkey modifier.

No blocking the ALT key as an hotkey modifier with:

Code: Select all

~Alt::
	KeyWait, Alt
	Send, {Alt}
Return
but disabling menus works dirty!
paik1002
Posts: 355
Joined: 28 Nov 2015, 02:45

Re: Disabling the ALT key only for triggered menus

28 Apr 2017, 02:55

Rohwedder wrote:Hallo,
disabling works with:

Code: Select all

Alt::Esc
but it blocks the ALT key as an hotkey modifier.

No blocking the ALT key as an hotkey modifier with:

Code: Select all

~Alt::
	KeyWait, Alt
	Send, {Alt}
Return
but disabling menus works dirty!
Sorry, but I don't think that your scipts work as intended.
The menu is not perfectly disabled, and the modifier seems to trigger the wrong function. Very odd.
There seems also to be some reliability issues.
GEV
Posts: 1002
Joined: 25 Feb 2014, 00:50

Re: Disabling the ALT key only for triggered menus  Topic is solved

28 Apr 2017, 03:26

Code: Select all

 	~Alt::
KeyWait, Alt
return

 	~Alt Up::
Send, {Alt Up}
return
?
paik1002
Posts: 355
Joined: 28 Nov 2015, 02:45

Re: Disabling the ALT key only for triggered menus

29 Apr 2017, 11:18

GEV wrote:

Code: Select all

 	~Alt::
KeyWait, Alt
return

 	~Alt Up::
Send, {Alt Up}
return
?

Thank you GEV.

It seems to work great, for at least the applications that I am using. ALT as a modifier now functions without being interfered by the menu intervention.
DRocks
Posts: 565
Joined: 08 May 2018, 10:20

Re: Disabling the ALT key only for triggered menus

13 Nov 2018, 07:30

Thank you for this post.

I've also had sucess with combination if this solution and another one from stackoverflow.

Code: Select all

Alt::
KeyWait, Alt
return

LAlt Up::
if (A_PriorKey = "Alt")
	return
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], NullRefEx and 120 guests