AHK 剪贴版增强 —— 去除空白字符并且提示

; https://www.autohotkey.com/board/topic/127255-how-do-i-create-a-hotkey-for-key-sequence-ctrlshiftg-ctrlshiftu/
CapsLock & p::
msg := "
(
    0 for removing while-spaces
)"
ToolTip, % msg
input, command, L1 ; L1 to limit the input to 1 keys.
StringLower, command, command
TOOLTIP, % command
if (command = "0")
{
    ; remove null
    s := Clipboard
    Clipboard := RegExReplace(s, "\s" ,"")
}
else if (command = "d"){
}else{
}
ToolTip, 剪贴版内容已改变
SetTimer, RemoveToolTip, -1000
Return

RemoveToolTip:
ToolTip
return
上一篇:使用arthas阿尔萨斯进行代码耗时查看,性能调优


下一篇:arthas启动后报错解决方案