';Autohotkey script
;John Walker, 2010-11-25
;http://www.inertreactants.com
;Feel free to reuse, edit and redistribute
;Key remaps for Apple users using boot camp
;(with an Apple notebook or Keyboard)
;following section remaps alt-delete keys to mimic OSX
;command-delete deletes whole line
#BS::Send {LShift down}{Home}{LShift Up}{Del}
;alt-function-delete deletes next word
!Delete::Send {LShift down}{LCtrl down}{Right}{LShift Up}{Lctrl up}{Del}
;alt-delete deletes previous word
!BS::Send {LShift down}{LCtrl down}{Left}{LShift Up}{Lctrl up}{Del}
;following section mimics command-q and command-w
;behaviour to close windows
;note these had to be disabled below for the
;command to ctrl key remaps
#::^F4
#'::!F4
;following section remaps alt-arrow and command-arrow
;keys to mimic OSX behaviour
#Up::Send {Lctrl down}{Home}{Lctrl up}
#Down::Send {Lctrl down}{End}{Lctrl up}
#Left::Send {Home}
#Right::Send {End}
!Up::Send {Home}
!Down::Send {End}
!Left::^Left
!Right::^Right
;following section remaps command key to control key
;affects all number and letter keys
;note that some keys, like winkey-l and winkey-d
;need to be remapped a differeny way
;otherwise autohotkey will not take over
#a::^a
#x::^b
#j::^c
#e::^d
#u::^e
;following won't remap using the normal method
#u::Send {LCtrl down}{f}{LCtrl up}
#i::^g
#d::^h
#c::^i
#h::^j
#t::^k
;#n::Send {LCtrl down}{l}{LCtrl up} ;disabled, I like winkey-L
#m::^m
#b::^n
#r::^o
#l::^p
;#'::^q ;disabled --remapped to alt-F4 instead
#p::^r
#o::^s
#y::^t
#g::^u
#k::^v
;#,::^w ;disabled --remapped to ctrl-F4 instead
#q::^x
#f::^y
#;::^z
#1::^1
#2::^2
#3::^3
#4::^4
#5::^5
#6::^6
#7::^7
#8::^8
#9::^9
#0::^0