更新时间:2022-05-19 23:28:57
***使用剪贴板类。阅读本使用.NET处理剪贴板 [ ^ ]
Your best off using the clipboard class. Have a read of this Clipboard handling with .NET[^]
It SendKeys可能没有激活快捷命令Ctrl-C。您可以通过发送一系列菜单命令来获得所需的结果。
在资源管理器中,相当于Ctrl-C的菜单是
It is possible that SendKeys is not activating the shortcut command Ctrl-C. You may get the desired result by sending a sequence of menu commands.
In Explorer the menu equivalent of Ctrl-C is
Alt-E Open the edit menu
C 'Click' the copy menu item
而不是Ctrl-C发送Alt-E后跟C,即SendWait(%EC)
Alan。
Instead of Ctrl-C send Alt-E followed by C, i.e. SendWait("%EC")
Alan.