-
Notifications
You must be signed in to change notification settings - Fork 0
/
apple-magic-keyboard-windows.ahk
102 lines (76 loc) · 2.2 KB
/
apple-magic-keyboard-windows.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
;=========================================
; Magic Keyboard Auto Hotkey Mapping
;=========================================
; NOTES
; ! = ALT
; ^ = Ctrl
; + = SHIFT
; # = WIN
; < = LEFT Modifier
; > = RIGHT Modifier
#InstallKeybdHook
#SingleInstance force
SetTitleMatchMode 2
SendMode Input
; Windows Arrow to Home/End
>!Left::SendInput {Home}
>!Right::SendInput {End}
>!+Left::SendInput +{Home}
>!+Right::SendInput +{End}
>!Up::SendInput {PgUp}
>!Down::SendInput {PgDn}
>!+Up::SendInput +{PgUp}
>!+Down::SendInput +{PgDn}
; Windows Delete Key
>!Backspace::SendInput {Delete}
#Backspace::SendInput {Delete}
>!Enter::SendInput {Insert}
; --------------------------------------------------------------
; media/function keys all mapped to the right option key
; --------------------------------------------------------------
<#F7::SendInput {Media_Prev}
<#F8::SendInput {Media_Play_Pause}
<#F9::SendInput {Media_Next}
<#F10::SendInput {Volume_Mute}
<#F11::SendInput {Volume_Down}
<#F12::SendInput {Volume_Up}
; --------------------------------------------------------------
; OS X system shortcuts (SendInput command is used for extended compatiblity)
; --------------------------------------------------------------
; Make Ctrl + S work with cmd (windows) key
#s::SendInput {Ctrl down}{s}{Ctrl up}
; Selecting
#a::SendInput {Ctrl down}{a}{Ctrl up}
; Copying
;#c::^c
#c::SendInput {Ctrl down}{c}{Ctrl up}
; Pasting
#v::SendInput {Ctrl down}{v}{Ctrl up}
; Cutting
#x::SendInput {Ctrl down}{x}{Ctrl up}
; Opening
#o::SendInput {Ctrl down}{o}{Ctrl up}
; Finding
#f::SendInput {Ctrl down}{f}{Ctrl up}
; Undo
#z::SendInput {Ctrl down}{z}{Ctrl up}
; Redo
#y::SendInput {Ctrl down}{y}{Ctrl up}
; New tab
#t::SendInput {Ctrl down}{t}{Ctrl up}
; close tab
#w::SendInput {Ctrl down}{w}{Ctrl up}
; Close windows (cmd + q to Alt + F4)
#q::SendInput {Alt down}{F4}{Alt up}
; Refresh in chrome
#r::SendInput {Ctrl down}{r}{Ctrl up}
; New
#n::SendInput {Ctrl down}{n}{Ctrl up}
; New Window in Chrome
#+n::SendInput {Ctrl down}{Shift down{n}{Shift up}{Ctrl up}
; Bold
#b::SendInput {Ctrl down}{b}{Ctrl up}
; Italic
#i::SendInput {Ctrl down}{i}{Ctrl up}
; Control + Enter is be mapped to Command + Enter
#Enter::SendInput {Ctrl down}{Enter}{Ctrl up}