Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
#IfWinActive, ahk_exe evernote.exe ;设置只有在印象笔记中才生效
^r::
clipboard =
Send ^c
ClipWait, 1
t := WinClip.GetText()
html = <span style='color: #F02E37;'><b>%t%</b></span>
WinClip.SetHTML(html)
Sleep, 300
Send ^v
WinClip.Clear()
Return