From 0b04c78dc29eafebf08e862c915032db404be75e Mon Sep 17 00:00:00 2001 From: Stephen Nilsen Date: Thu, 26 Jan 2023 15:05:56 -0600 Subject: [PATCH] Init commit --- mac.ahk | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/mac.ahk b/mac.ahk index 0d7251a..ede875d 100644 --- a/mac.ahk +++ b/mac.ahk @@ -1,3 +1,12 @@ +; This script assumes that Alt and Ctrl characters have been swapped using remapkey.exe + +; -----KEY GUIDE----- +; # Win. (the key with the Windows logo) therefore `Send #e` would hold down Win and then press E. +; + Shift. For example, `Send, +abC` would send the text "AbC", and `Send, !+a` would press Alt+Shift+A. +; ^ Alt (because of remapkey). For example, `Send, This is text!a` would send the keys "This is text" and then press Alt+A. Note: !A produces a different effect in some programs than !a. This is because !A presses Alt+Shift+A and !a presses Alt+A. If in doubt, use lowercase. +; ! Ctrl (because of remapkey). For example, `Send, ^!a` would press Ctrl+Alt+A, and Send, ^{Home} would send Ctrl+Home. Note: ^A produces a different effect in some programs than ^a. This is because ^A presses Ctrl+Shift+A and ^a presses Ctrl+A. If in doubt, use lowercase.Sends Ctrl. For example, Send, ^!a would press Ctrl+Alt+A, and Send, ^{Home} would send Ctrl+Home. Note: ^A produces a different effect in some programs than ^a. This is because ^A presses Ctrl+Shift+A and ^a presses Ctrl+A. If in doubt, use lowercase. +; & An ampersand may be used between any two keys or mouse buttons to combine them into a custom hotkey. + ; Relauch as admin if not already running as admin full_command_line := DllCall("GetCommandLine", "str") @@ -22,15 +31,6 @@ SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. ; #InstallKeybdHook ; KeyHistory -; This script assumes that Alt and Ctrl characters have been swapped using remapkey.exe - -; -----GUIDE----- -; # Win. (the key with the Windows logo) therefore `Send #e` would hold down Win and then press E. -; + Shift. For example, `Send, +abC` would send the text "AbC", and `Send, !+a` would press Alt+Shift+A. -; ^ Alt (because of remapkey). For example, `Send, This is text!a` would send the keys "This is text" and then press Alt+A. Note: !A produces a different effect in some programs than !a. This is because !A presses Alt+Shift+A and !a presses Alt+A. If in doubt, use lowercase. -; ! Ctrl (because of remapkey). For example, `Send, ^!a` would press Ctrl+Alt+A, and Send, ^{Home} would send Ctrl+Home. Note: ^A produces a different effect in some programs than ^a. This is because ^A presses Ctrl+Shift+A and ^a presses Ctrl+A. If in doubt, use lowercase.Sends Ctrl. For example, Send, ^!a would press Ctrl+Alt+A, and Send, ^{Home} would send Ctrl+Home. Note: ^A produces a different effect in some programs than ^a. This is because ^A presses Ctrl+Shift+A and ^a presses Ctrl+A. If in doubt, use lowercase. -; & An ampersand may be used between any two keys or mouse buttons to combine them into a custom hotkey. - ; App and tab switching Ctrl & Tab::AltTab !Tab::Send ^{Tab}