Forked from mattheath/Apple Keyboard Autohotkey Script
Last active
March 15, 2024 13:28
-
-
Save jitbit/e948cf198f54cbf3992c to your computer and use it in GitHub Desktop.
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
; | |
; AutoHotkey Version: 1.x | |
; Language: English | |
; Platform: Win9x/NT | |
; Author: Matt Heath <[email protected]> | |
; | |
; Script Function: | |
; Remaps keys when using an Apple Keyboard with a Windows PC | |
; | |
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
SendMode Input ; Recommended for new scripts due to its superior speed and reliability. | |
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. | |
; Volume Controls | |
; | |
F10::Send {Volume_Mute} | |
F11::Send {Volume_Down 2} | |
F12::Send {Volume_Up 2} | |
; Play Controls | |
; | |
F7::Send {Media_Prev} | |
F8::Send {Media_Play_Pause} | |
F9::Send {Media_Next} | |
; Missing keys | |
; | |
F13::Send {PrintScreen} | |
F16::Send {Pause} | |
; Task manager | |
F4::Send, {SHIFTDOWN}{CTRLDOWN}{ESC}{SHIFTUP}{CTRLUP} | |
; Cursor Movement | |
; | |
; cmd + arrows - start & end of lines, with shift for selecting text | |
#Left::SendInput {Home} | |
#Right::SendInput {End} | |
#+Left::sendInput +{Home} | |
#+Right::SendInput +{End} | |
!Left::SendInput ^{Left} | |
!Right::SendInput ^{Right} | |
!+Left::SendInput ^+{Left} | |
!+Right::SendInput ^+{Right} | |
; Desktop rotation ( Spaces ) | |
; Ctrl Left & Right remapped to F18 & F19 which switch virtual desktops ( I use Dexpot ) | |
; | |
^Left::Send {F18} | |
^Right::Send {F19} | |
; Remapping control key shortcuts | |
; | |
; copy, paste, save, select all etc | |
#c::Send ^{vk43} | |
#x::Send ^{vk58} | |
#v::Send ^{vk56} | |
#s::Send ^{vk453} | |
#a::Send ^{vk41} | |
#z::Send ^{vk5a} | |
#b::Send ^{vk42} | |
#i::Send ^{vk49} | |
#w::Send ^{vk57} | |
#f::Send ^{vk46} | |
; Keyboard Characters | |
; | |
!3::Send {Raw}# | |
+2::Send {Raw}@ | |
+'::Send {Raw}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
+'::Send {Raw}" doesn't work, is it maybe an issue with version of autohotkey?