Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Move cursor to current match when escape-ing the find-in-note search box of Evernote.
; 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
You can’t perform that action at this time.