how to abandon "Alt" but "Alt+C" still get work? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
keen
Posts: 3
Joined: 10 May 2022, 23:31

how to abandon "Alt" but "Alt+C" still get work?

10 May 2022, 23:49

image.png
image.png (26.89 KiB) Viewed 459 times
I have done that

Code: Select all

$!c::
	Send {Ctrl Down}{c}{Ctrl Up}
Return
but If I just press "LAft" the focus will change, I want to fix it ,please help me
Image
Rohwedder
Posts: 6553
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: how to abandon "Alt" but "Alt+C" still get work?

11 May 2022, 00:33

Hallo,
if I just press "LAlt" this does not change the focus. The focus is changed when I release "LAlt".
Your Hotkey $!c:: has no influence on this behavior.
keen
Posts: 3
Joined: 10 May 2022, 23:31

Re: how to abandon "Alt" but "Alt+C" still get work?

11 May 2022, 01:32

Rohwedder wrote:
11 May 2022, 00:33
Hallo,
if I just press "LAlt" this does not change the focus. The focus is changed when I release "LAlt".
Your Hotkey $!c:: has no influence on this behavior.
Yes,this is just what I feel refuesd. After trying, none of these operations could meet my requirements:

Code: Select all

LAlt Up::return
or just like this:

Code: Select all

LAlt :: LCtrl
Since I hit “Alt” unconsciously, I want to disable it or map it to CTRL, but I want to keep the “Alt +C” key combination for mapping

It was an unreasonable request, but I couldn't handle it myself
Rohwedder
Posts: 6553
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: how to abandon "Alt" but "Alt+C" still get work?

11 May 2022, 01:45

Then,
try:

Code: Select all

Alt::Return
#InputLevel 1
!c::Send {Ctrl Down}{c}{Ctrl Up}
#InputLevel 0
keen
Posts: 3
Joined: 10 May 2022, 23:31

Re: how to abandon "Alt" but "Alt+C" still get work?  Topic is solved

12 May 2022, 04:33

Rohwedder wrote:
11 May 2022, 01:45
Then,
try:

Code: Select all

Alt::Return
#InputLevel 1
!c::Send {Ctrl Down}{c}{Ctrl Up}
#InputLevel 0
Thank you for your help. Unfortunately, your proposal didn't work either.
My final solution was based on this information in the forum.
otbag wrote:
11 May 2022, 02:08
I want to disable Alt alone in order to prevent it to focus the current application menu bar, but still retain all other Alt+other-key shortcuts.

I have the following:

Code: Select all

Alt::
    Return
  • 1.1.33.11 and earlier : :thumbup: works fine.
  • 1.1.34.00 : :thumbdown: Alt is not disabled anymore and activates the menu bar.
  • 1.1.34.01 : :thumbdown: Alt and every other Alt-shortcut (i.e Alt-Tab) are disabled.
So, I went back to the version.
User avatar
otbag
Posts: 4
Joined: 11 May 2022, 01:44

Re: how to abandon "Alt" but "Alt+C" still get work?

14 May 2022, 15:30

@keen FYI, the Alt issue is fixed in 1.1.34.02.

Return to “[V1] Ask For Help”

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], newbieforever, swagfag and 81 guests