An AHK Script for using keyboard shortcuts like MacOS on your Windows
About AutoHotKey HomePage Github
AutoHotKey v2 is alpha-release. Suggest use v1.1.*v1.1.33.02 downloads
Script Features:
- Hot string (e.g.
]date,]time,]now,]longdate) - Shortcuts table:
| HotKeys | Desc |
|---|---|
| MacOS shortcuts | |
| Win ` | Active next same class window |
| Win H | Hide(minimize) current window |
| Win Alt H | Hide(minimize) other windows |
| Win M | Hide(minimize) current windows |
| Win Alt M | Hide(minimize) all windows |
| Win Q | Quit current application |
| Win T | New tab (Ctrl+T) |
| Win Shift T | Reload last tab (Ctrl+Shift+T) |
| Win N | New... |
| Win O | Open... |
| Win W | Close the table |
| Win S | Save |
| Win P | Print (Ctrl+P) |
| Win Z | Undo |
| Win Shift Z | Redo |
| Win X | Cut |
| Win C | Copy |
| Win V | Paste |
| Win Alt V | Move files from clipboard to current location |
| Win Shift Alt V | Paste as text |
| Win A | Select all |
| Win F | Find (Ctrl+F) |
| Win G | Find (F3) |
| Win Shift G | Find previous (Shift+F3) |
| Win Alt F | Replace (Ctrl+H) |
| Win Left or Right or Up or Down | (Home/End/PgUp/PgDown) |
| Alt Left or Right | (Ctrl+Left/Right) |
| Win Alt F | Full screen (F11) |
| Win = | Zoom in |
| Win - | Zoom out |
| Win 0 | Resize zoom (Ctrl+0) |
| Win R | Refresh |
| Win Backspace | Delete |
| Win Shift 3 | Capture screen to clipboard |
| Win Shift 4 | Capture screen with region (Win10) |
| Win Shift 5 | Start Snipping Tool (Win10) |
| Win F3 | Show desktop |
| Win I | Show file/folder property dialog (Alt+Enter) |
| Win F10 | Mute |
| Win F11 | Volume down |
| Win F12 | Volume up |
| Win Shift Backspace | Empty Recycle Bin |
| Win Shift Alt Backspace | Empty Recycle Bin without prompt |
| Win Alt Esc | Run task manager |
| Win Shift Alt Esc | Kill current process |
| Win Shift Alt Ctrl Esc | Kill all image name processes |
| Explorer shortcuts | |
| Win Enter | Rename (F2) |
| Win O | Open (Enter) |
| Win Up | Up to |
| Win Down | Open (Enter) same to Win+O |
| Win Shift N | New folder |
| Win Shift . | Show or hide hidden files |
| CapsLock+ shortcuts | |
| CapsLock Space | Ctrl+Space |
| CapsLock Backspace | Delete to line head |
| CapsLock Delete | Delete to line end |
| CapsLock Enter | New line |
| CapsLock RShift | Line split |
| CapsLock D | Duplicate line |
| CapsLock W | Selected current line |
| CapsLock C or X or V | Copy/Cut/PasteAt current line |
| CapsLock Insert | Paste as text |
| CapsLock Alt/Shift 8 | Input a random password |
| CapsLock (Shift) B | Move left |
| CapsLock (Shift) F | Move right |
| CapsLock (Shift) P | Move up |
| CapsLock (Shift) N | Move down |
| CapsLock (Shift) A | Move line start |
| CapsLock (Shift) E | Move line end |
| CapsLock `1234567890 | Set current window transparent to 0% ~ 100% |
| LAlt+ shortcuts | LAlt means left alt key |
| LAlt C or X | Copy/Cut to line end |
| LAlt V | paste and go/enter |
| Function Key | |
| CapsLock Esc | Homepage |
| CapsLock F1 | Show Help |
| CapsLock F2 | Toggle current window to topmost |
| CapsLock Alt/Shift F2 | Turn off/on current window to topmost |
| CapsLock F3 | Run Listary |
| CapsLock (Shift) F4 | Run Everything (as administrator) |
| CapsLock F5 | Run pageant (PuTTY) |
| CapsLock F6 | Run puttygen (PuTTY) |
| CapsLock (Shift) F7 | Run psftp (as administrator) (PuTTY) |
| CapsLock F8 | Run putty (PuTTY) |
| CapsLock (Shift) F9 | Windows Terminal or PowerShell (as administrator) |
| CapsLock (Shift) F10 | CMD (as administrator) |
| CapsLock F11 | Bash (Win10 WSL) |
| CapsLock (Shift) F12 | Git-bash (as administrator) |
| Special Key | |
| Win F1 | Show Windows WinX Menus |
| Win F2 | Show Windows run dialog |
| Win F3 | Show Desktop |
| Win F10 | Mute |
| Win F11 | Volume down |
| Win F12 | Volume up |
| and more... |
Thanks:
- @g1084164986 - Mouse direction support.
- @liuyukuan - Explorer rename support by his
ActiveControlIsOfClasscode.
Tips:
-
Auto run when logon: You can complied it to an execute file by Ahk2Exe, then create a shortcut file into Startup Menu(Win10:
%appdata%\Microsoft\Windows\Start Menu\Programs\Startup) or create a schedule task:Copy
register_schedule_task.batwithmachotkey.exein a folder, then runregister_schedule_task.bat
-
Shortcuts mapping at Virtual Machine (XP~win10) on mac.
-
QuickLook is alike MacOS Quick-Look tool, press Space to preview some file in the Explorer.
-
Switch Win and Alt by registry (win7 ~ win10):
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layout] "Scancode Map"=hex:00,00,00,00,00,00,00,00,05,00,00,00,5b,e0,38,00,38,00,5b,e0,\ 5c,e0,38,e0,38,e0,5c,e0,00,00,00,00
Restore key switch:
Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Keyboard Layout] "Scancode Map"=-
A GUI tool name is sharpkeys can do this.