Board logo

标题: [问题求助] [已解决]]VBS在网页下用ctrl+a键全选失效 [打印本页]

作者: 1270697389    时间: 2014-3-27 11:55     标题: [已解决]]VBS在网页下用ctrl+a键全选失效

本帖最后由 1270697389 于 2014-3-28 15:36 编辑

我写了一个vbs,是用来复制网页的,但是昨天把系统还原了后,不能因ctrl+a全选了,复制不了,怎么办?谢谢大家!
  1. Dim WshShell
  2. Set WshShell = CreateObject("wscript.Shell")
  3. Dim objShell
  4. Set objShell = CreateObject("WScript.Shell")
  5. objshell.run "http://www.19lou.com/forum-26-thread-28295787-filter-1-1.html"
  6. Wscript.Sleep 7000
  7. WshShell.SendKeys "^{a}"
  8. WshShell.SendKeys "^{c}"
  9. Wscript.Sleep 1000
  10. objShell.Run "C:\Users\pc\Desktop\123.txt"
  11. Wscript.Sleep 3000
  12. WshShell.SendKeys "----1----"
  13. WshShell.SendKeys "^{v}"
  14. WshShell.SendKeys "^{s}"
  15. objshell.run "http://www.19lou.com/forum-26-thread-28295787-filter-2-1.html"
  16. Wscript.Sleep 5000
  17. WshShell.SendKeys "^{1}"
  18. Wscript.Sleep 3000
  19. WshShell.SendKeys "^{w}"
  20. Wscript.Sleep 3000
  21. WshShell.SendKeys "^{a}"
  22. WshShell.SendKeys "^{c}"
  23. objShell.Run "C:\Users\pc\Desktop\123.txt"
  24. Wscript.Sleep 1000
  25. WshShell.SendKeys "----2----"
  26. WshShell.SendKeys "^{v}"
  27. WshShell.SendKeys "^{s}"
  28. WScript.Echo "全部执行完毕!OK"
  29. wscript.Quit
复制代码

作者: DAIC    时间: 2014-3-27 19:37

手工按ctrl+a也不能全选了吗?
作者: 1270697389    时间: 2014-3-28 09:09

回复 2# DAIC


    手工没问题,
现在没问题了,是系统没有补丁。谢谢你
作者: lanpor    时间: 2014-3-28 21:57

不懂,咋看没问题




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2