Jump to content

[autohotkey] - ClipStack, stack selections in clipboard and create note


Recommended Posts


This is a little script I wrote in response on this topic : https://discussion.evernote.com/topic/85914-paste-from-anywhere/


It could be useful to clip multiple selections in a text and then paste them in a new note, or append them in an opened one (if it is already opened in his own window).

/*     ClipStackctrl-space : add content to the clipboardctrl-alt-space : paste content in the single view note, even if minified (create new one if none is open)ctrl-q : close the script*/#Warn ; Enable warnings to assist with detecting common errors.SendMode Input ; Recommended for new scripts due to its superior speed and reliability.#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.#singleInstance;DetectHiddenText, On; -----------------------------------------------------------------------------global compil:=""^Space::clipboard:=""send ^cclipwait, 1compil := compil clipboard "`n"sleep 100return^!Space::clipboard := compilclipwait, 1PasteToEN()send, ^vsleep 100compil:=""return^q::ExitAppPasteToEN(){    IfWinNotExist ahk_class ENSingleNoteView    {        Send, ^!n        WinWaitActive, ahk_class ENSingleNoteView    }    else    {    WinActivate, ahk_class ENSingleNoteView    }    ControlFocus, WebViewHost2    send, ^{end} {enter}    return}
Link to comment


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

  • Create New...