The first script is mostly about changing folder views more quickly than the 3-key equivilents that are baked into Windows. The last three scripts deal with deleting/undeleting/selecting folder contents.

#IfWinactive ahk_class CabinetWClass ; various folder view options
^;::send, !d ; focus on the location bar (Control-semicolon)
^+a::send, !ei ; invert selection (Control-Shift-A)
^d::send !{V}{D} ; Details (Control-D)
^l::send !{V}{L} ; List (Control-L)
!i::send !{V}{M} ; Medium Icons (Alt-I)
^i::send !{V}{r}{Enter} ; Large Icons (Control-I)
^+i::send !{V}{X} ; Extra Large Icons (control-shift-I)
^t::send !{V}{S} ; Tile view (control T)
return

#IfWinactive ahk_class CabinetWClass ; if a folder has the focus
~MButton:: ; delete an item(s) to the Recycle Bin with middle-click
ControlClick
send, {DEL}
Return

#IfWinactive ahk_class CabinetWClass ; if a folder has the focus
~+MButton:: ; undelete an item(s) from the Recycle Bin with middle-click
ControlClick
send, ^z
Return

; Shift-LeftClick to Select All items in a folder
#IfWinactive ahk_class CabinetWClass
$+Lbutton::
Send, ^a
Return