SebR 146 Posted July 3, 2015 Share Posted July 3, 2015 Hi,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
Level 5* JMichaelTX 4,105 Posted July 3, 2015 Level 5* Share Posted July 3, 2015 Thanks for sharing. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.