下面是script:
引用
;Autohotkey script to translate some Mac shortcuts for Windows
;Use Alt key instead of control key (Alt key is at the same place of Cmd on Mac)
;On Mac all hotkeys often used are: cmd+c, cmd+v, ... -> ctrl+c, ctrl+v, ... (on PC)
;Use ScrollLock key to temporary activate / descativate the current script, in case of get some trouble
;Added some Mac specific shortcuts like Alt+Shift+Right, Alt+Shift+Left or Cmd+Shift+L
;Work only with left Alt and left Control keys
#UseHook
#InstallKeybdHook
;Console - ctrl+v : past
;if WinActive("ahk_class ConsoleWindowClass")
; ^v::SendInput {Raw}%clipboard% return
;
;Desktop or explorer - ctrl+n : new window
;if WinActive("ahk_class Progman") or WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass")
; ^N::Run explorer return
;Desktop or explorer - ctrl+shift+n : new folder
;if WinActive("ahk_class Progman") or WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass")
; !+n::Send !fwf; English: File > New > Folder
; !+n::Send !fnd; French: Fichier > Nouveau > Dossier
LAlt & a::Send {LCtrl Down}{a}{LCtrl Up}
LAlt & b::Send {LCtrl Down}{b}{LCtrl Up}
LAlt & c::Send {LCtrl Down}{c}{LCtrl Up}
LAlt & d::Send {LCtrl Down}{d}{LCtrl Up}
LAlt & e::Send {LCtrl Down}{e}{LCtrl Up}
LAlt & f::Send {LCtrl Down}{f}{LCtrl Up}
LAlt & g::Send {LCtrl Down}{g}{LCtrl Up}
LAlt & h::Send {LCtrl Down}{h}{LCtrl Up}
LAlt & i::Send {LCtrl Down}{i}{LCtrl Up}
LAlt & j::Send {LCtrl Down}{j}{LCtrl Up}
LAlt & k::Send {LCtrl Down}{k}{LCtrl Up}
;LAlt & l::Send {LCtrl Down}{l}{LCtrl Up}
; Used to map LAlt+l to Ctrl+l and when Shift is down, send "|" char instead
LAlt & l::
GetKeyState, ShiftState, Shift, P
if ShiftState = D
{
Send |
}
else
{
Send {LCtrl Down}{l}{LCtrl Up}
}
return
LAlt & m::Send {LCtrl Down}{m}{LCtrl Up}
;LAlt & n::Send {LCtrl Down}{n}{LCtrl Up}
;If Desktop or Explorer active, Alt+Shift+n create a new folder and Alt+N open an new window
LAlt & n::
GetKeyState, ShiftState, Shift, P
if (ShiftState == "D") and (WinActive("ahk_class Progman") or WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass"))
Send !fn{enter} ; Folder is in first so send enter directly else other type of document will be selected
else if (ShiftState == "U" and (WinActive("ahk_class Progman") or WinActive("ahk_class ExploreWClass") or WinActive("ahk_class CabinetWClass")))
Run explorer
else
Send {LCtrl Down}{n}{LCtrl Up}
return
LAlt & o::Send {LCtrl Down}{o}{LCtrl Up}
LAlt & p::Send {LCtrl Down}{p}{LCtrl Up}
LAlt & q::Send {LCtrl Down}{q}{LCtrl Up}
LAlt & r::Send {LCtrl Down}{r}{LCtrl Up}
LAlt & s::Send {LCtrl Down}{s}{LCtrl Up}
LAlt & t::Send {LCtrl Down}{t}{LCtrl Up}
LAlt & u::Send {LCtrl Down}{u}{LCtrl Up}
;LAlt & v::Send {LCtrl Down}{v}{LCtrl Up}
LAlt & v::
if WinActive("ahk_class ConsoleWindowClass")
SendInput {Raw}%clipboard% return
else
Send {LCtrl Down}{v}{LCtrl Up}
return
LAlt & w::Send {LCtrl Down}{w}{LCtrl Up}
LAlt & x::Send {LCtrl Down}{x}{LCtrl Up}
LAlt & y::Send {LCtrl Down}{y}{LCtrl Up}
LAlt & z::Send {LCtrl Down}{z}{LCtrl Up}
LAlt & SPACE::Send {LCtrl Down}{SPACE}{LCtrl Up}
LCtrl & a::Send {LAlt Down}{a}{LAlt Up}
LCtrl & b::Send {LAlt Down}{b}{LAlt Up}
LCtrl & c::Send {LAlt Down}{c}{LAlt Up}
LCtrl & d::Send {LAlt Down}{d}{LAlt Up}
LCtrl & e::Send {LAlt Down}{e}{LAlt Up}
LCtrl & f::Send {LAlt Down}{f}{LAlt Up}
LCtrl & g::Send {LAlt Down}{g}{LAlt Up}
LCtrl & h::Send {LAlt Down}{h}{LAlt Up}
LCtrl & i::Send {LAlt Down}{i}{LAlt Up}
LCtrl & j::Send {LAlt Down}{j}{LAlt Up}
LCtrl & k::Send {LAlt Down}{k}{LAlt Up}
LCtrl & l::Send {LAlt Down}{l}{LAlt Up}
LCtrl & m::Send {LAlt Down}{m}{LAlt Up}
LCtrl & n::Send {LAlt Down}{n}{LAlt Up}
LCtrl & o::Send {LAlt Down}{o}{LAlt Up}
LCtrl & p::Send {LAlt Down}{p}{LAlt Up}
LCtrl & q::Send {LAlt Down}{q}{LAlt Up}
LCtrl & r::Send {LAlt Down}{r}{LAlt Up}
LCtrl & s::Send {LAlt Down}{s}{LAlt Up}
LCtrl & t::Send {LAlt Down}{t}{LAlt Up}
LCtrl & u::Send {LAlt Down}{u}{LAlt Up}
LCtrl & v::Send {LAlt Down}{v}{LAlt Up}
LCtrl & w::Send {LAlt Down}{w}{LAlt Up}
LCtrl & x::Send {LAlt Down}{x}{LAlt Up}
LCtrl & y::Send {LAlt Down}{y}{LAlt Up}
LCtrl & z::Send {LAlt Down}{z}{LAlt Up}
LAlt & Up::Send {LCtrl Down}{Home}{LCtrl Up} ; often used to go at the top of current document
LAlt & Down::Send {LCtrl Down}{End}{LCtrl Up} ; often used to go at the bottom of current document
<!<+Right::Send {LCtrl Down}{RShift Down}{Right}{RShift Up}{LCtrl Up} ; Cmd+Shift+Right -> Ctrl+Shift+Right often used for word selection
<!<+Left::Send {LCtrl Down}{RShift Down}{Left}{RShift Up}{LCtrl Up} ; Cmd+Shift+Left -> Ctrl+Shift+Left often used for word selection
<#<+Right::Send {LAlt Down}{RShift Down}{End}{RShift Up}{LAlt Up} ; Alt+Shift+Right -> Alt+Shift+End often used to move at the begin of current line
<#<+Left::Send {LAlt Down}{RShift Down}{Home}{RShift Up}{LAlt Up} ; Alt+Shift+Left -> Alt+Shift+Home often used to move at the end of current line
~ScrollLock::
; Wait for it to be released because otherwise the hook state gets reset
; while the key is down, which causes the up-event to get suppressed,
; which in turn prevents toggling of the ScrollLock state/light:
KeyWait, ScrollLock
GetKeyState, ScrollLockState, ScrollLock, T
If ScrollLockState = D
{
Hotkey, LAlt & a, On
Hotkey, LAlt & b, On
Hotkey, LAlt & c, On
Hotkey, LAlt & d, On
Hotkey, LAlt & e, On
Hotkey, LAlt & f, On
Hotkey, LAlt & g, On
Hotkey, LAlt & h, On
Hotkey, LAlt & i, On
Hotkey, LAlt & j, On
Hotkey, LAlt & k, On
Hotkey, LAlt & l, On
Hotkey, LAlt & m, On
Hotkey, LAlt & n, On
Hotkey, LAlt & o, On
Hotkey, LAlt & p, On
Hotkey, LAlt & q, On
Hotkey, LAlt & r, On
Hotkey, LAlt & s, On
Hotkey, LAlt & t, On
Hotkey, LAlt & u, On
Hotkey, LAlt & v, On
Hotkey, LAlt & w, On
Hotkey, LAlt & x, On
Hotkey, LAlt & y, On
Hotkey, LAlt & z, On
Hotkey, LCtrl & a, On
Hotkey, LCtrl & b, On
Hotkey, LCtrl & c, On
Hotkey, LCtrl & d, On
Hotkey, LCtrl & e, On
Hotkey, LCtrl & f, On
Hotkey, LCtrl & g, On
Hotkey, LCtrl & h, On
Hotkey, LCtrl & i, On
Hotkey, LCtrl & j, On
Hotkey, LCtrl & k, On
Hotkey, LCtrl & l, On
Hotkey, LCtrl & m, On
Hotkey, LCtrl & n, On
Hotkey, LCtrl & o, On
Hotkey, LCtrl & p, On
Hotkey, LCtrl & q, On
Hotkey, LCtrl & r, On
Hotkey, LCtrl & s, On
Hotkey, LCtrl & t, On
Hotkey, LCtrl & u, On
Hotkey, LCtrl & v, On
Hotkey, LCtrl & w, On
Hotkey, LCtrl & x, On
Hotkey, LCtrl & y, On
Hotkey, LCtrl & z, On
Hotkey, LAlt & Up, On
Hotkey, LAlt & Down, On
Hotkey, <!<+Right, On
Hotkey, <!<+Left, On
Hotkey, <#<+Right, On
Hotkey, <#<+Left, On
}
else
{
Hotkey, LAlt & a, Off
Hotkey, LAlt & b, Off
Hotkey, LAlt & c, Off
Hotkey, LAlt & d, Off
Hotkey, LAlt & e, Off
Hotkey, LAlt & f, Off
Hotkey, LAlt & g, Off
Hotkey, LAlt & h, Off
Hotkey, LAlt & i, Off
Hotkey, LAlt & j, Off
Hotkey, LAlt & k, Off
Hotkey, LAlt & l, Off
Hotkey, LAlt & m, Off
Hotkey, LAlt & n, Off
Hotkey, LAlt & o, Off
Hotkey, LAlt & p, Off
Hotkey, LAlt & q, Off
Hotkey, LAlt & r, Off
Hotkey, LAlt & s, Off
Hotkey, LAlt & t, Off
Hotkey, LAlt & u, Off
Hotkey, LAlt & v, Off
Hotkey, LAlt & w, Off
Hotkey, LAlt & x, Off
Hotkey, LAlt & y, Off
Hotkey, LAlt & z, Off
Hotkey, LCtrl & a, Off
Hotkey, LCtrl & b, Off
Hotkey, LCtrl & c, Off
Hotkey, LCtrl & d, Off
Hotkey, LCtrl & e, Off
Hotkey, LCtrl & f, Off
Hotkey, LCtrl & g, Off
Hotkey, LCtrl & h, Off
Hotkey, LCtrl & i, Off
Hotkey, LCtrl & j, Off
Hotkey, LCtrl & k, Off
Hotkey, LCtrl & l, Off
Hotkey, LCtrl & m, Off
Hotkey, LCtrl & n, Off
Hotkey, LCtrl & o, Off
Hotkey, LCtrl & p, Off
Hotkey, LCtrl & q, Off
Hotkey, LCtrl & r, Off
Hotkey, LCtrl & s, Off
Hotkey, LCtrl & t, Off
Hotkey, LCtrl & u, Off
Hotkey, LCtrl & v, Off
Hotkey, LCtrl & w, Off
Hotkey, LCtrl & x, Off
Hotkey, LCtrl & y, Off
Hotkey, LCtrl & z, Off
Hotkey, LAlt & Up, Off
Hotkey, LAlt & Down, Off
Hotkey, <!<+Right, Off
Hotkey, <!<+Left, Off
Hotkey, <#<+Right, Off
Hotkey, <#<+Left, Off
}
return
分享到:
相关推荐
AutoIt2 是 AutoHotKey 的前身,用户可以了解 AutoIt2 的使用注意事项,以便更好地使用 AutoHotKey。 12. 按字母顺序排列的命令列表 AutoHotKey 提供了一个详细的命令列表,涵盖了所有的命令和函数。 13. 脚本...
autohotkey-windows-mac-keyboard, 在 Windows 上,AutoHotkey映射在Mac键盘上模拟OSX行为 在 Windows 下使用带有AutoHotkey的Mac键盘这个 AutoHotkey 配置文件使普通键盘快捷键在 Windows 上与Apple键盘一起使用。...
**AutoHotkey:一款强大的自动化工具** AutoHotkey是一款开源的、绿色的、免费的自动化脚本语言,专为Windows操作系统设计。它以其强大的热键(Hotkey)和宏功能而闻名,允许用户通过简单的脚本自定义键盘、鼠标...
模拟键盘和鼠标Auto Hot Key
总的来说,AutoHotkey 是一个强大且灵活的自动化工具,无论你是初次接触还是资深用户,都可以通过深入学习和实践,发掘出更多实用的功能,提升你的电脑使用体验。通过阅读这个1.1.30.03版本的中文手册,你将能够全面...
此外,文档中还提到了AutoHotkey的快速参考,包括AutoHotkey的DllCall使用方法和正则表达式的使用,对于高级用户来说,这些功能可以进一步扩展脚本的用途。 在版本变更和新功能方面,从*.*.**.**版本开始,每个版本...
AutoHotKey是一款强大的自动化工具,尤其适用于Windows操作系统。它的核心功能是允许用户创建自定义的热键...通过不断学习和实践,你可以利用AutoHotKey创造出无数个性化的自动化解决方案,让工作和生活更加便捷。
对于 Autohotkey,SciTE4Autohotkey 添加了对 Autohotkey 语言特性的深度支持,如函数自动提示和关键字显示,使得编写 Autohotkey 脚本变得更加便捷。 **关键词详解** 1. **SciTE**: SciTE 是由 Larry Luiken 开发...
是一本由浅入深教会你使用AutoHotkey的手册。使用AutoHotkey后大大减轻了工作时一些重复操作的难度。如果只是要做一些简单的事件,花一点点时间按照样例上操作即可上手。完整读完这本手册,可以发现AutoHotkey还有很...
最后,文档中的API参考部分详细列出了所有内置函数和命令,以及它们的参数、返回值和使用示例,这是编写AutoHotkey脚本的重要参考资料。 总的来说,“AutoHotkey中文帮助文档.7z”是一个全面的资源库,对于任何想要...
AutoScriptWriter是一款基于AutoHotKey的宏录制工具,它曾是AutoHotKey早期版本中内置的功能,用于...通过学习和掌握AutoScriptWriter,你可以利用AutoHotKey的强大能力,让计算机更好地适应你的工作流程,提高生产力。
window AutoHotkey中文版热键下载window AutoHotkey中文版热键下载window AutoHotkey中文版热键下载window AutoHotkey中文版热键下载window AutoHotkey中文版热键下载window AutoHotkey中文版热键下载window AutoHot...
AutoHotkey是一款强大的自动化工具...总的来说,“AutoHotkey1.1.30.03中文离线帮助”是学习和探索AutoHotkey的宝贵资源,无论你是初学者还是高级用户,都可以通过这个离线文档快速获取所需信息,提升你的自动化技能。
AutoHotkey 中文手册
AutoHotkey是一款强大的自动化工具,尤其适用于Windows操作系统。它的核心在于其开源的脚本语言,允许...而深入研究"AutoHotkey_L-master"中的源代码,则能让你更深入地理解这个工具,甚至为它的发展贡献自己的力量。
AutoHotkey_v2.0-a027_x64是一个专为64位操作系统优化的自动化脚本语言工具,它提供了显著的性能提升,并且在x64平台上运行更加流畅。这个版本是针对Windows用户设计的,特别是那些需要高效、自定义键盘快捷键和宏...
标题中的“Tab+字母实现小键盘”是指一种利用AutoHotkey脚本技术,将标准键盘上的某些字母键组合成虚拟的小键盘功能。这对于那些没有实体小键盘或者在使用笔记本电脑等设备时,需要快速输入数字的用户来说非常方便。...
2. "readme-AutoHotkey脚本.ahk文件关联工具-解决方案-注册表.txt":这是一个说明文档,详细介绍了如何使用提供的注册表文件以及可能遇到的问题和解决方法。通常,用户只需要双击".reg"文件并确认导入操作,但有时...
在AutoHotkey中,你可以自由地定义键盘快捷键,让任何操作变得简单易行。例如,你可以将一个不常用的键映射为常用的复制或粘贴功能,或者创建一个组合键来快速打开经常使用的应用程序。这种自定义性使得AutoHotkey...
AutoHotkey中文版是一款强大的脚本编辑工具,支持多种键盘热键,支持脚本快速编辑以及转换功能,能让用户通过鼠标以及键盘实现代码编辑快速操作,有需求的用户欢迎下载体验。 软件简介 AutoHotkey中文版是一款功能...