开发者

Is it possible to keep clearing the client's clipboard data using vbscript

I want to know that Is it possible t开发者_高级运维o keep clearing the client's clipboard data using vbscript from a webpage until he closes that page.


Something similar to this (code adapted from the code on this page) might work:

Do Until 1 = 0
    Set ie = WScript.CreateObject("InternetExplorer.Application")
    ie.Navigate "about:blank"
    ie.document.ParentWindow.ClipboardData.SetData "text", ""
    ie.Quit
    WScript.Sleep 1000
Loop

Though I'd assume (or at least hope) that the user would get security warnings about this and if this was for a webpage on the open internet I'd see it as malicious since I usually open web pages and leave them open while I continue with other work and would find it incredibly annoying if my clipboard got overwritten once a second.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜