You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been trying to figure out a way to search Evernote from Flow Launcher (as I am sure others have, as well). The following is my rudimentary result which at least allows me to start a search from Flow and then have that search performed in a Evernote window.
There are several components to getting this to work. First, here is the AutoIt script I wrote:
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.6.1
Author: Sean Slevin
https://github.com/EnigmaSolved
https://transitionsmft.org/
Script Function:
Receives command line arguments (for something one wishes to search for within Evernote) from Flow Launcher (or anything else that can pass arguments), opens Evernote Search, then "types" the search query into the Evernote Search field.
#ce ----------------------------------------------------------------------------
; Allow only one instance of this script. Note, that if you are editing the script and the file name is the same as the script name then the script will not run because the following code will tell it that it is already running.
$script_ID = "Evernote_Search"
If WinExists($script_ID) Then Exit ; Exit because it's already running
AutoItWinSetTitle($script_ID)
;~ https://www.iconfinder.com/icons/81655/evernote_icon
TraySetIcon(@ScriptDir & "\icon.ico")
;~ #Region AutoIt3Wrapper
;~ #AutoIt3Wrapper_Icon=@ScriptDir & "\icon.ico" ; For Compiling to Exe
;~ #EndRegion AutoIt3Wrapper
;~ Never got above to work, so used Aut2Exe in AutoIt program directory and manually selected the icon file. Had to rename the file to get Windows to update the icon display on the file.
Send("#+F") ; Global hotkey for Searching Evernote: Win Shift F
Opt("WinTitleMatchMode", 2) ;1=start, 2=subStr, 3=exact, 4=advanced, -1 to -4=Nocase
WinWaitActive("Evernote")
;~ Global $query = "Test Phrase" ; For Debugging.
;~ Send($query & "{ENTER}") ; For Debugging.
Local $query
Local $i = 0
For $var In $CmdLine
If $i = 0 Then ; Skip 0 because it holds the size of the array, not any data we need.
$i += 1
ContinueLoop
EndIf
If $i = 1 Then
$query = $var
Else
$query = $query & " " & $var
EndIf
$i += 1
;~ TrayTip($i, $query, 5, 1) ; For Debugging.
;~ Sleep(2000) ; For Debugging.
Next
Send("{BACKSPACE 60}" & $query & "{ENTER}") ; Need multiple Backspace in order to clear out the field if we left something in there previously.
What the above does is the following:
Receives an argument passed to it (ie, our search phrase)
Executes the Evernote search hotkey and waits for the Evernote window to open
Sends a bunch of Backspace key presses to clear out any prior Evernote search
Pastes the search phrase into Evernote and "presses" Enter to initiate the search.
It is admittedly not super-fast, but it works. :)
Now, the next step is we need a way to call this script from Flow Launcher and pass our search phrase to it. For that we can use the Plugin Runner: https://github.com/jjw24/Wox.Plugin.Runner
And configure it like so:
Description: Search Evernote
Shortcut: e
Path: path\to\Evernote Search.au3 (or Evernote Search.exe if you use Aut2exe.exe to compile the script to an exe with an icon, which I have done)
Arguments: {*}
Now, when within Flow Launcher you can type r e and then your search phrase (multiple words are supported with the above config) and when you hit Enter the search will be passed to Evernote where it will be performed. :)
If desired, one can add to Flow Launcher Hotkeys a Custom Query Hotkey (eg, Ctrl+ Shift + E) to pre-populate a Flow query with r e. Then you can call your hotkey, launch Flow, type your search, hit Enter and wait for Evernote. Though at that point you'd probably be better off with just using the Evernote hotkey directly.
If someone feels inspired to take this idea and convert it to a plugin of its own, have at it! I just ask that you credit me with a public link and acknowledgment of some kind for the original idea, etc. :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been trying to figure out a way to search Evernote from Flow Launcher (as I am sure others have, as well). The following is my rudimentary result which at least allows me to start a search from Flow and then have that search performed in a Evernote window.
There are several components to getting this to work. First, here is the AutoIt script I wrote:
What the above does is the following:
It is admittedly not super-fast, but it works. :)
Now, the next step is we need a way to call this script from Flow Launcher and pass our search phrase to it. For that we can use the Plugin Runner: https://github.com/jjw24/Wox.Plugin.Runner
And configure it like so:
Now, when within Flow Launcher you can type
r e
and then your search phrase (multiple words are supported with the above config) and when you hit Enter the search will be passed to Evernote where it will be performed. :)If desired, one can add to Flow Launcher Hotkeys a Custom Query Hotkey (eg, Ctrl+ Shift + E) to pre-populate a Flow query with
r e
. Then you can call your hotkey, launch Flow, type your search, hit Enter and wait for Evernote. Though at that point you'd probably be better off with just using the Evernote hotkey directly.If someone feels inspired to take this idea and convert it to a plugin of its own, have at it! I just ask that you credit me with a public link and acknowledgment of some kind for the original idea, etc. :)
Enjoy!
Beta Was this translation helpful? Give feedback.
All reactions