반응형
요즘은 휠이 달린 마우스를 많이 들 사용 할테니 마우스 휠을 이용한 위 아래 스크롤은 많이들 하실겁니다.
그런데 좌우 스크롤도 할 수 있다는거 아시나요?
물론 좌우 스크롤을 하기 위해서는 키보드의 shift 키를 같이 눌러 줘야 합니다.
화면 크기가 확대 된 상태가 되면 좌우 스크롤바가 나타나는데
이때 Shift + Mouse Wheelup 또는
Shift + Mouse Wheeldown 을 해 보면 좌우 스크롤이 동작하는걸 확인 할 수 있습니다.
크롬에서 해봤는데 잘 되네요.
그런데 우리가 업무에 많이 활용하는 Microsoft Office 에서는 이상하게 위 단축키가 정상적으로 동작하지 않더군요.
그래서 다음과 같은 Autohotkey 코드를 만들어 봤습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#IfWinActive, ahk_class OpusApp | |
+WheelUp:: ; scroll right | |
ComObjActive("Word.application").ActiveWindow.SmallScroll(0,0,1,0) | |
return | |
+WheelDown:: ; scroll left | |
ComObjActive("Word.application").ActiveWindow.SmallScroll(0,0,0,1) | |
return | |
#IfWinActive, ahk_class PPTFrameClass | |
+WheelUp:: ; scroll right | |
ComObjActive("Powerpoint.application").ActiveWindow.SmallScroll(0,0,1,0) | |
return | |
+WheelDown:: ; scroll left | |
ComObjActive("Powerpoint.application").ActiveWindow.SmallScroll(0,0,0,1) | |
return | |
#IfWinActive, ahk_class XLMAIN | |
+WheelUp:: ; scroll right | |
ComObjActive("Excel.application").ActiveWindow.SmallScroll(0,0,1,0) | |
return | |
+WheelDown:: ; scroll left | |
ComObjActive("Excel.application").ActiveWindow.SmallScroll(0,0,0,1) | |
return | |
#IfWinActive |
Microsoft Word,
Excel,
Powerpoint 를 위한 단축키이고 visio 에서는 위 단축키가 정상적으로 동작 하길래 만들지 않았습니다.
Shift + Mouse Wheelup 을 하면 오른쪽으로, Shift + Mouse Wheeldown 을 하면 왼쪽으로 스크롤 됩니다.
반응형
'programming language > Autohotkey' 카테고리의 다른 글
SciTE4AutoHotkey 의 아웃풋에 텍스트 표시 방법 (0) | 2017.12.08 |
---|---|
Autohotkey(오토핫키)를 사용하여 창 닫기 (0) | 2017.12.08 |
Autohotkey 에서 selenium 사용 방법 (24) | 2017.10.26 |
Autohotkey COM 을 사용하여 Outlook 으로 메일 보내기 (0) | 2017.08.18 |
Autohotkey 로 BlueTooth 장치 표시 (3) | 2017.03.10 |
Autohotkey 에서 3개 이상의 키 조합으로 단축키 만들기 (3) | 2017.02.28 |
Autohotkey regular expression 관련 함수에서 변수 사용하기 (0) | 2017.02.26 |
Autohotkey 에서 COM 을 사용하여 현재 열린 탐색기의 폴더 찾기 (0) | 2017.02.24 |
댓글