diff options
author | John Ankarström <john@ankarstrom.se> | 2021-01-18 16:51:45 +0100 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-01-18 16:51:45 +0100 |
commit | 42c6ce8b438a4fe9b77131cb2e68d23fef41ff3a (patch) | |
tree | 8b45761a077f7b3b6eb1f31f0e266c3210d64804 | |
parent | 847e24216ad76dc64ac1a7da7246b6665ad34dba (diff) | |
download | ahk-42c6ce8b438a4fe9b77131cb2e68d23fef41ff3a.tar.gz |
programs: Fix Firefox detection, add CSS toggle hotkeys
-rw-r--r-- | tt.programs.ahk | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/tt.programs.ahk b/tt.programs.ahk index 78a2332..10844b6 100644 --- a/tt.programs.ahk +++ b/tt.programs.ahk @@ -35,12 +35,10 @@ WheelDown::Down F2::Gosub, TrayRebuild ; rebuild scripts.ahk -#IfWinActive ahk_class MozillaWindowClass +#IfWinActive ahk_exe firefox.exe ahk_class MozillaWindowClass -!s::^k ^'::^g -F3::SendInput, !{Left} -F4::SendInput, !{Right} + F1::SendInput, {WheelUp} F2::SendInput, {WheelDown} !F1:: @@ -52,6 +50,32 @@ Loop, 5 SendInput, {WheelDown} return +F3::SendInput, !{Left} +F4::SendInput, !{Right} + +; No stylesheet +F8::SendInput, {Alt}{Right}{Right}{Down}{Down}{Down}{Down}{Right}{Enter} +; First stylesheet +F9::SendInput, {Alt}{Right}{Right}{Down}{Down}{Down}{Down}{Right}{Down}{Enter} + +!F8:: +SendInput, {LButton}{LButton}{LButton}^f +Sleep, 100 +SendInput, {Alt}{Right}{Right}{Down}{Down}{Down}{Down}{Right}{Enter} +Sleep, 100 +SendInput, ^g{Delete}{Escape} +return +!F9:: +SendInput, {LButton}{LButton}{LButton}^f +Sleep, 100 +SendInput, {Alt}{Right}{Right}{Down}{Down}{Down}{Down}{Right}{Down}{Enter} +Sleep, 100 +SendInput, ^g{Delete}{Escape} +return + +; Default window size +F10::WinMove, A,,,, 1211, 1118 + #IfWinActive ahk_class KMeleon Browser Window F3::SendInput, !{Left} |