开发者

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

开发者 https://www.devze.com 2023-03-23 21:16 出处:网络
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

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

精彩评论

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

关注公众号