Skip to content

some confusion about copyPaste.py #3

Description

@He-haitao

我内容复制不上去啊,老哥?
excel.Selection.PasteSpecial(Paste=-4122) # 没复制上啊
shell = Dispatch("WScript.Shell")
shell.SendKeys("{ENTER}", 0)
这个Paste=-4122这个参数可以解释一下吗,或者说在哪里有查看的啊,找不到相关的资源
后面两句也加入了, 这个enter 确认我知道啥意思,但是后面的0是啥意思呀?
就是这两个shell命令,因为我window10,excel2016 复制的时候有弹窗出来说剪贴板复制了大量内容,是否需要保存,但是这两个命令没有让这个弹窗消失,还是需要自己手动点击,这个如何解决呀?
有发子玄学,有一次复制好了,但是后面几次又没成功

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions