grotesque 7 Posted February 15, 2014 Share Posted February 15, 2014 Evernote.exe has following command line options:-/NewNote/NewInkNote/NewWebCamNote/Task:ClipScreen/Task:PasteClipboard/Task:SyncDatabaseetc. But there are no options that take authentication. I want to be able to open Evernote.exe windows client from command line:-evernote.exe /u username /p password Can this be done? Use case:-My brother, dad and I share the same computer windows 8.1, same windows user(administrator) and different evernote accounts.Every time somebody uses theirs evernote client I have to log in again.If I the client(evernote.exe) had a command line authentication I could make a login.bat and just double click it. I cannot afford to go premium to use the switch accounts feature. Link to comment
Level 5* gazumped 12,063 Posted February 15, 2014 Level 5* Share Posted February 15, 2014 Don't know about the coding, but as an option you might try AHK to close Evernote (if it's open) / reopen and log in to another account... Link to comment
grotesque 7 Posted February 22, 2014 Author Share Posted February 22, 2014 Thanks for the suggestion. This I found on internet. Works only if evernote is initiated from the script itself. Capslock & 1::user= xxxxuserpassword= xxxxGoto, EvernoteProcessing Capslock & 2::user= xxxxuserpassword= xxxxGoto, EvernoteProcessing Capslock & 3::user= xxxuserpassword= xxxGoto, EvernoteProcessing Capslock & 4::user= xxxuserpassword= xxx EvernoteProcessing: ;DetectHiddenWindows, On Process, Exist, evernote.exe PPID= ErrorLevel if ErrorLevel { WinRestore, ahk_pid %PPID% WinActivate, ahk_pid %PPID% WinWaitActive, ahk_pid %PPID%,,2 if ErrorLevel { WinRestore, ahk_class ENMainFrame WinActivate, ahk_class ENMainFrame WinWaitActive, ahk_class ENMainFrame,,5 if ErrorLevel { MsgBox - Screwed UP return } } Send ^q RunWait Evernote sleep, 500 } Run evernote.exe,,,PPID WinWait, Evernote,,5 if ErrorLevel { Goto, EvernoteProcessing } WinRestore, ahk_pid %PPID% WinActivate, ahk_pid %PPID% WinWaitActive, ahk_pid %PPID% ,,2 if ErrorLevel { WinRestore, ahk_class ENMainFrame WinActivate, ahk_class ENMainFrame WinWaitActive, ahk_class ENMainFrame,,5 if ErrorLevel { MsgBox - Screwed UP return } } sleep, 500 Send, %user% sleep, 100 Send, {tab} sleep, 100 Send, %userpassword% sleep, 100 Send, {Enter} return Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.