Created
November 25, 2015 18:13
-
-
Save hugobuddel/5bd0b6b5b477502721e6 to your computer and use it in GitHub Desktop.
Move cursor to current match when escape-ing the find-in-note search box of Evernote.
This file contains 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
; Script to properly exit the search-in-note functionality in Evernote | |
; through the Escape key. The script ensures that the cursor is moved | |
; to the start of the currently selected match. See | |
; https://discussion.evernote.com/topic/89131-exit-search-mode-normally-maintaining-cursor-location/ | |
#IfWinActive ahk_class ENMainFrame ; Evernote | |
Escape:: | |
; Search for the dark orange highlight of the current search match. | |
PixelSearch, theX, theY, 0, 0, 4000, 4000, 0xff9632, 2, Fast RGB | |
; Click there. | |
Click %theX% %theY% | |
return | |
#IfWinActive | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment