Skip to content

My stupid way to disable the Alt menu key #10

@song2daodao

Description

@song2daodao

Because the script hasn't been updated yet, it doesn't work on the new version of Photoshop. So I use AutoHotkey to disable alt menu key in Photoshop, like this:

#IfWinActive, ahk_exe photoshop.exe
; 设置了一个条件,只有当标题为"photoshop.exe"的窗口处于活动状态时,后续的热键或热字符串才会生效
; sets a condition where subsequent hotkeys or hotstrings will only take effect when a window with the title "photoshop.exe" is active.


; 使用了$修饰符来防止按键被发送到系统之前被重新映射。!表示Alt键。a和s分别代表按下的按键是A和S
; The $ modifier is used to prevent the key from being remapped before it is sent to the system. ! represents the Alt key. d and e respectively represent the keys d or e being pressed.
$!d::return
$!e::return
$!f::return
$!h::return
$!i::return
$!j::return
$!l::return
$!s::return
$!t::return
$!v::return
$!w::return
$!y::return


; 允许 Alt+Ctrl+Z 组合键正常工作
; Allows the Alt+Ctrl+Z combination key to work normally.
!^z::
    Send, !^z
    return

Install AutoHotkey, then save the code as name.ahk, It should be work then.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions