From 39c7d9bd10c5abe85157516fad50f26c22e02b62 Mon Sep 17 00:00:00 2001 From: breadcat Date: Sat, 17 Aug 2013 15:29:44 +0100 Subject: Removal of OS Detection Doesn't work as I'd intended, caused issues with duplicate hotkeys. --- appspecific.ahk | 96 +++++++++++++++++++++++---------------------------------- 1 file changed, 38 insertions(+), 58 deletions(-) (limited to 'appspecific.ahk') diff --git a/appspecific.ahk b/appspecific.ahk index ace2b0d..07c6160 100644 --- a/appspecific.ahk +++ b/appspecific.ahk @@ -1,68 +1,48 @@ -;application specific hotkeys -;detect os -if A_OSVersion in WIN_NT4,WIN_95,WIN_98,WIN_ME,WIN_XP -{ - ;windows xp: - - ;explorer - #IfWinActive ahk_class CabinetWClass - F1::Send {F2}{CTRLDOWN}{HOME}{SHIFTDOWN}{END}{CTRLUP}{LEFT 4}{SHIFTUP} ; rename (hopefully) deselects file extension - F2::Send {F2}{CTRLDOWN}{HOME}{SHIFTDOWN}{END}{CTRLUP}{LEFT 4}{SHIFTUP} ; rename (hopefully) deselects file extension - ^+n::Send {ALTDOWN}f{ALTUP}wf ; ctrl+shift+n creates new folder - #IfWinActive - - ;outlook - #IfWinActive ahk_class rctrl_renwnd32 - ^enter::Return ;disable accidentally send email shortcut - #IfWinActive - - ;excel - #IfWinActive ahk_class XLMAIN - ^+v::Send {ESC}{UP}{CTRLDOWN}c{CTRLUP}{DOWN}{CTRLDOWN}v{CTRLUP}{ESC}{DOWN} ;ctrl+shift+v copies above cell into current - #IfWinActive +;explorer +#IfWinActive ahk_class CabinetWClass + Capslock::SendInput {ALTDOWN}{UP}{ALTUP} ;capslock goes up a folder + F6::Send {ALTDOWN}d{ALTUP} ;addressbar + F1::Send {F2} ;disable help, enable rename +#IfWinActive - ;mstsc - #IfWinActive ahk_class #32770 - ^enter::Send 10.0.0.5{enter} ;tserver - ^+enter::Send 10.0.0.10{enter} ;dserer - #IfWinActive +;photoviewer +#IfWinActive ahk_class Photo_Lightweight_Viewer + Capslock::SendInput {ALTDOWN}{F4}{ALTUP} ;quits + Up::Return ;removes annoying feature where up/down stops left/right naviagation + Down::Return +#IfWinActive - ;act - #IfWinActive ahk_class WindowsForms10.Window.8.app.0.2004eee - ^enter::Send {CONTROLDOWN}{END}{CONTROLUP}{SPACE}-PG{SHIFTDOWN}{TAB 3}{SHIFTUP}{ENTER} ;save note with footer - ^n::Send {F9} ;insert note - ^f::Send {ALTDOWN}L{ALTUP}C ;search for company - #IfWinActive -} -Else -{ - ;windows 7: +;mpc-hc +#IfWinActive ahk_class MediaPlayerClassicW + 1::Send 2{ctrldown}1{ctrlup} ;1 keeps borders + Ralt & Enter::Send {altdown}{enter}{altup} ; ralt-enter fullscreens + Capslock::Send {altdown}{f4}{altup} ;quit + p::Send {ctrldown}7{ctrlup} ;p for playlist +#IfWinActive - ;explorer - #IfWinActive ahk_class CabinetWClass - Capslock::SendInput {ALTDOWN}{UP}{ALTUP} ;capslock goes up a folder - F6::Send {ALTDOWN}d{ALTUP} ;addressbar - F1::Send {F2} ;disable help, enable rename - #IfWinActive +;outlook +#IfWinActive ahk_class rctrl_renwnd32 + ^enter::Return ;disable accidentally send email shortcut +#IfWinActive - ;photoviewer - #IfWinActive ahk_class Photo_Lightweight_Viewer - Capslock::SendInput {ALTDOWN}{F4}{ALTUP} ;quits - Up::Return ;removes annoying feature where up/down stops left/right naviagation - Down::Return - #IfWinActive +;excel +#IfWinActive ahk_class XLMAIN + ^+v::Send {ESC}{UP}{CTRLDOWN}c{CTRLUP}{DOWN}{CTRLDOWN}v{CTRLUP}{ESC}{DOWN} ;ctrl+shift+v copies above cell into current +#IfWinActive - ;mpc-hc - #IfWinActive ahk_class MediaPlayerClassicW - 1::Send 2{ctrldown}1{ctrlup} ;1 keeps borders - Ralt & Enter::Send {altdown}{enter}{altup} ; ralt-enter fullscreens - Capslock::Send {altdown}{f4}{altup} ;quit - p::Send {ctrldown}7{ctrlup} ;p for playlist - #IfWinActive -} +;mstsc +#IfWinActive ahk_class #32770 + ^enter::Send 10.0.0.5{enter} ;tserver + ^+enter::Send 10.0.0.10{enter} ;dserer +#IfWinActive -;applicable for both: +;act +#IfWinActive ahk_class WindowsForms10.Window.8.app.0.2004eee + ^enter::Send {CONTROLDOWN}{END}{CONTROLUP}{SPACE}-PG{SHIFTDOWN}{TAB 3}{SHIFTUP}{ENTER} ;save note with footer + ^n::Send {F9} ;insert note + ^f::Send {ALTDOWN}L{ALTUP}C ;search for company +#IfWinActive ;command prompt #IfWinActive ahk_class ConsoleWindowClass -- cgit v1.2.3