其他分享
首页 > 其他分享> > AHK 剪贴版增强 —— 去除空白字符并且提示

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

标签:剪贴,AHK,RemoveToolTip,ToolTip,else,command,去除,msg,input
来源: https://www.cnblogs.com/zxyfrank/p/15464947.html