Jump to content

(Archived) open evernote client from command line


grotesque

Recommended Posts

Evernote.exe has following command line options:-

/NewNote

/NewInkNote
/NewWebCamNote
/Task:ClipScreen
/Task:PasteClipboard
/Task:SyncDatabase
etc.
 

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

 

Thanks for the suggestion. This I found on internet. Works only if evernote is initiated from the script itself.

 

 
Capslock & 1::
user= xxxx
userpassword= xxxx
Goto, EvernoteProcessing
 
Capslock & 2::
user= xxxx
userpassword= xxxx
Goto, EvernoteProcessing
 
Capslock & 3::
user= xxx
userpassword= xxx
Goto, EvernoteProcessing
 
Capslock & 4::
user= xxx
userpassword= 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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...