MsgBox不停的弹 为什么?

Post a reply


In an effort to prevent automatic submissions, we require that you complete the following challenge.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :| :mrgreen: :geek: :ugeek: :arrow: :angel: :clap: :crazy: :eh: :lolno: :problem: :shh: :shifty: :sick: :silent: :think: :thumbup: :thumbdown: :salute: :wave: :wtf: :yawn: :facepalm: :bravo: :dance: :beard: :morebeard: :xmas: :HeHe: :trollface: :cookie: :rainbow: :monkeysee: :monkeysay: :happybday: :headwall: :offtopic: :superhappy: :terms: :beer:
View more smilies

BBCode is ON
[img] is OFF
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: MsgBox不停的弹 为什么?

Re: MsgBox不停的弹 为什么?

Post by WKen » 23 Jun 2023, 10:13

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

Re: MsgBox不停的弹 为什么?

Post by chr » 23 Jun 2023, 08:55

OnClipboardChange函数是监听剪贴板,剪贴板发生改变就会执行,在你执行的函数内部又有一个剪贴板赋值动作,剪切板发生了改变,所以OnClipboardChange会一直循环。

MsgBox不停的弹 为什么?

Post by msgbox » 03 Sep 2020, 07:47

Code: Select all

#Persistent
OnClipboardChange("test")

test()
{
  
  Clip_Length := StrLen(Clipboard)
  MsgBox, %Clip_Length%
  Clipboard := Trim(Clipboard)
}

Top