Posted by dekz on Thu 4 Jun 10:45
report abuse | download | new post
- ;AutoHotkey
- ;CapsLock "mode"
- ;if caps lock is down it will act as if it is in edit mode, FPS style
- ;by dekz
- $w::
- GetKeyState, state, CapsLock, T
- if state = D
- Send,{Up}
- else
- Send w
- return
- $a::
- GetKeyState, state, CapsLock, T
- if state = D
- Send,{Left}
- else
- Send a
- return
- $s::
- GetKeyState, state, CapsLock, T
- if state = D
- Send,{Down}
- else
- Send s
- return
- $d::
- GetKeyState, state, CapsLock, T
- if state = D
- Send,{Right}
- else
- Send d
- return
- ;comment line C style
- $f::
- GetKeyState, state, CapsLock, T
- if state = D
- {
- Send,{Home}
- Send,{NumPadDiv}
- Send,{NumPadDiv}
- }
- else
- Send f
- return
- ;Remove line
- $r::
- GetKeyState, state, CapsLock, T
- if state = D
- {
- Send,{Home}
- Send,{shift down}{End}{shift up}
- Send,{Delete}
- }
- else
- Send r
- return
- ;Home
- $q::
- GetKeyState, state, CapsLock, T
- if state = D
- {
- Send,{Homes}
- }
- else
- Send q
- return
- ;End
- $e::
- GetKeyState, state, CapsLock, T
- if state = D
- {
- Send,{End}
- }
- else
- Send e
- return
- ;Page Up
- $z::
- GetKeyState, state, CapsLock, T
- if state = D
- {
- Send,{PgUp}
- }
- else
- Send z
- return
- ;Page Down
- $x::
- GetKeyState, state, CapsLock, T
- if state = D
- {
- Send,{PgDn}
- }
- else
- Send x
- return
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.