Post by pk23 » 24 Apr 2015, 05:42
感谢tmplinshi和RobertL。改成函数,测试了一下午,比以前稳定多了,供大家参考:
Code: Select all
;背景色蓝色
#2::evernoteEdit("<span style='background:rgb(173, 216, 230);'>", "</span>")
;evernote编辑器增强函数
evernoteEdit(eFoward, eEnd)
{
BlockInput On
clipboard =
Send ^c
ClipWait, ,
t := WinClip.GetText()
html = %eFoward%%t%%eEnd%
WinClip.Clear()
WinClip.SetHTML(html)
Sleep, 300
Send ^v
BlockInput Off
Return
}
感谢tmplinshi和RobertL。改成函数,测试了一下午,比以前稳定多了,供大家参考:
[code=autohotkey file=Script.ahk]
;背景色蓝色
#2::evernoteEdit("<span style='background:rgb(173, 216, 230);'>", "</span>")
;evernote编辑器增强函数
evernoteEdit(eFoward, eEnd)
{
BlockInput On
clipboard =
Send ^c
ClipWait, ,
t := WinClip.GetText()
html = %eFoward%%t%%eEnd%
WinClip.Clear()
WinClip.SetHTML(html)
Sleep, 300
Send ^v
BlockInput Off
Return
}[/code]