简体   繁体   English

如何使用 AutoIT 在远程桌面连接中清除剪贴板

[英]How can I clear clipboard in Remote Deskop Connection using AutoIT

Is there any code to check unfortunate window appears on screen while automating?是否有任何代码可以检查自动化时屏幕上出现的不幸窗口?

Where automation stops working:自动化停止工作的地方:

public static void clearclip()
{
    var check = Sikuli.CreateSession();
    var clipErr = Patterns.FromFile(@"C:\driver\..PNG");
    auto.Sleep(100);

    clipput:   
       auto.ClipPut("");
       if(check.Exists(clipErr,3))
       {
           auto.Send("{ESC}");
       }

       if (auto.ClipGet() != "")
           goto clipput;
}

this is the code you're looking for:这是您正在寻找的代码:

If the image is found, the variables X, Y will have width & height values如果找到图像,变量 X、Y 将具有宽度和高度值

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM