Python调用出错:(1418, 'CloseClipboard', 'Thread does not have a clipboard open.')

Horus Lai 2020-1-13 826

请问~  

当频繁重复使用 Ctrl+C  会有报错

有方法 阻止这个错误?  

第12行:Python调用出错:(1418, 'CloseClipboard', 'Thread does not have a clipboard open.')

最新回复 (6)
  • 林墨晗 2020-1-13
    2
    问题已反馈,请稍等
  • 99365 2020-1-13
    3
    try
  • 林墨晗 2020-1-14
    4
    能发下源代码吗?
  • Horus Lai 2020-3-31
    5
    a = "NA"
    Do While a = "NA"
        Keyboard.Press("C", "press", ["Ctrl"],{"iDelayAfter":150,"iDelayBefore":100,"sSimulate":"message"})
        a = Clipboard.GetText()
    Loop
    TracePrint a
  • Horus Lai 2020-3-31
    6
    林墨晗 能发下源代码吗?
    求 能在这个情况发生时不停止流程, 继续运行或自动重启 类似 try catch finally

     Python调用出错:(1418, 'CloseClipboard', 'Thread does not have a clipboard open.')

  • 沈博文 2020-4-4
    7
    a = "NA"
    Do While a = "NA"
        Keyboard.Press("C", "press", ["Ctrl"],{"iDelayAfter":150,"iDelayBefore":100,"sSimulate":"message"})
        a = Clipboard.GetText()
       //增加等待时间500毫秒
        delay(500)
    Loop
    TracePrint a
返回
发新帖