原本是很阳春的hotstring
adhdr原版 https://pastebin.com/w6DqH9PL
asdr原版 https://pastebin.com/dMDHXAge
剪贴簿 https://pastebin.com/0G4dsT4m
从硬盘叫出来 https://pastebin.com/DvZxEjry
后来有人建议我改成贴到剪贴簿的作法
:X:ADHDr::
str := "
(
上面那些字串
)"
SendString(str)
return
SendString(String) {
bak := ClipboardAll
Clipboard := ""
Clipboard := String
ClipWait 1
if (ErrorLevel) {
MsgBox 0x10, Error, Couldn't set Clipboard text.
} else {
Send ^v
Sleep 1000
}
Clipboard := bak
}
或是先把字串存在硬盘里在叫出来
:X:ASDr::UseTemplate("ASDr")
:X:ADHDr::UseTemplate("ADHDr")
UseTemplate(Filename) {
bak := ClipboardAll
Clipboard := ""
FileRead CLipboard, % "D:\Templates\" Filename ".txt"
ClipWait 1
if (ErrorLevel) {
MsgBox 0x10, Error, Couldn't set template text.
} else {
Send ^v
Sleep 1000
}
Clipboard := bak
}
但两种做法只要能触发就能跑出完整字串,但大概十次只能成功触发一两次