首页 » 操作系统 » Windows » 正文

用 AutoHotkey 模拟部分 macOS 按键

发布者:站点默认
2025/06/24 浏览数(16) 分类:Windows 用 AutoHotkey 模拟部分 macOS 按键已关闭评论

注意文件编码!UTF-8 乱码的话换 GB18030/GBK/GB2312

#NoEnv
#SingleInstance force

!a::Send ^a  ; 将 Alt+A 设置为全选
!x::Send ^x  ; 将 Alt+X 设置为剪切
!c::Send ^c  ; 将 Alt+C 设置为复制
!v::Send ^v  ; 将 Alt+V 设置为粘贴
!s::Send ^s  ; 将 Alt+S 设置为保存
!z::Send ^z  ; 将 Alt+Z 设置为撤销操作
!d::Send ^d
!f::Send ^f
!r::Send ^{F5}  ; 将 Alt+R 设置为刷新界面
!t::Send ^t  ; 将 Alt+T 设置为添加新标签页

; Alt+[/] Alt+Shift+[/]
![::Send 「
!]::Send 」
!+[::Send 『
!+]::Send 』

; Alt+W 关闭窗口
#IfWinActive
!w::
    If WinActive("A")
    {
        If WinExist("A")
        {
            SendInput ^{w}
        }
        else
        {
            SendInput !{F4}
        }
    }
return
#IfWinActive
点击返回顶部
  1. 留言
  2. 联系方式