MsgBox不停的弹 为什么?

遇到了问题?请先进行搜索(中文和英文),然后在此提问

Moderators: tmplinshi, arcticir

msgbox
Posts: 1
Joined: 03 Sep 2020, 07:40

MsgBox不停的弹 为什么?

03 Sep 2020, 07:47

Code: Select all

#Persistent
OnClipboardChange("test")

test()
{
  
  Clip_Length := StrLen(Clipboard)
  MsgBox, %Clip_Length%
  Clipboard := Trim(Clipboard)
}
chr
Posts: 4
Joined: 17 Jun 2023, 21:26

Re: MsgBox不停的弹 为什么?

23 Jun 2023, 08:55

OnClipboardChange函数是监听剪贴板,剪贴板发生改变就会执行,在你执行的函数内部又有一个剪贴板赋值动作,剪切板发生了改变,所以OnClipboardChange会一直循环。
WKen
Posts: 187
Joined: 21 Feb 2023, 00:01

Re: MsgBox不停的弹 为什么?

23 Jun 2023, 10:13

还可能重复执行
image.png
image.png (11.02 KiB) Viewed 486 times

Return to “请求帮助”

Who is online

Users browsing this forum: No registered users and 3 guests