Mike's AHK scripts
; undo-redo to take cursor back to previous place (useful in homesite or visual studio)
F4::Send ^z^+z
; ctrl-shift-D for insert current datestamp
^+D::Send %A_YYYY%%A_MM%%A_DD%
; ctrl-shift-F2 for rename file with current datestamp
^+F2::Send {F2}{left 4}_%A_YYYY%%A_MM%%A_DD%
; ctrl-shift-B for backup in beyond compare, but doesn't really work! (yet..)
#IfWinActive ahk_class TViewForm.UnicodeClass
^+B::Send ^c!a{down 3}{enter}{tab}^v{right}\_beweb\backups\%A_YYYY%%A_MM%%A_DD%_.zip{left 4}
#IfWinActive
;visual studio
#IfWinActive, Microsoft Visual Studio
; duplicate line and comment out with date
^/::
Send ^d{UP}{CONTROLDOWN}kc{CONTROLUP}{RIGHT} MN{SPACE}
FormatTime, CurrentDateTime,, dd-MMM-yyyy
SendInput %CurrentDateTime%
Send {DOWN}
return
; quick build ctrl-B
^+b::Send !bor{RETURN}!bb
; full build ctrl-shift-B (uses Release build)
^b::Send !bo{UP}{RETURN}!bb
; ctrl-F5 to build and refresh in browser
^F5::
Send, {ALTDOWN}b{ALTUP}{ENTER}
Send, {ALTDOWN}{TAB}{ALTUP}
Sleep, 1000
WinWait, Windows Internet Explorer,
IfWinNotActive, Windows Internet Explorer, , WinActivate, Windows Internet Explorer,
WinWaitActive, Windows Internet Explorer,
MouseClick, left, 401, 749
Send, {F5}
return
; alt-] to close block <%}%> for use while in ASPX file
!]::Send <`%{}}^z
#IfWinActive
;end vs
Leave a Comment
Comments