Created
August 1, 2019 21:52
-
-
Save Jerph/0b3635a1226bb27122f75c33306c268e to your computer and use it in GitHub Desktop.
AutoHotKey script to swap Option<->Command (Alt<->Win) in bootcamp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Swap Option<->Command (Alt<->Win) in Boot Camp. Disable with Ctrl+F6. Only swaps left alt, use right alt for Ctrl+Alt+Del | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
; #Warn ; Enable warnings to assist with detecting common errors. | |
#InstallKeybdHook | |
#SingleInstance force | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; swap left command/windows key with left alt | |
LWin:: | |
Send, {LAlt Down} | |
Keywait LWin | |
Send, {LAlt Up} | |
Return | |
LAlt:: | |
Send, {LWin Down} | |
Keywait LAlt | |
Send, {LWin Up} | |
Return | |
^F6::Suspend |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment