Created
March 19, 2015 13:33
-
-
Save tmplinshi/3cc16593db95c1893dd5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
剪贴板_全角数字转半角(p*) { | |
; 函数内部调用 | |
If (p.1 = "ToolTip") { | |
ToolTip, % p.2 | |
fn := Func(A_ThisFunc).Bind("Remove_ToolTip") | |
SetTimer, %fn%, -2000 | |
Return | |
} | |
Else If (p.1 = "Remove_ToolTip") { | |
ToolTip | |
Return | |
} | |
If (Clipboard = "") | |
Return %A_ThisFunc%("ToolTip", "剪贴板内容为空") | |
If !A_IsUnicode | |
Return %A_ThisFunc%("ToolTip", "请用 AHK 的 Unicode 版本运行") | |
data := Clipboard | |
For i, v in StrSplit("0123456789") | |
StringReplace, data, data, % v, % i-1, All | |
Clipboard := data | |
%A_ThisFunc%("ToolTip", Clipboard) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment