发布脚本内容页Excel四格制自动切换复制粘贴(循环)
按键代码 B2B内容页--Excel四格制自动切换复制粘贴(循环)
//第一次切换复制粘贴 KeyDown 18, 1 KeyPress "Tab", 1 KeyUp 18, 1 Delay 500 KeyDown 17, 1 KeyPress 67, 1 KeyUp 17, 1 Delay 500 KeyPress 39, 1 Delay 500 KeyDown 18, 1 KeyPress "Tab", 1 KeyUp 18, 1 Delay 500 KeyDown 17, 1 KeyPress 86, 1 KeyUp 17, 1 //第二次切换复制粘贴 KeyDown 18, 1 KeyPress "Tab", 1 KeyUp 18, 1 Delay 500 KeyDown 17, 1 KeyPress 67, 1 KeyUp 17, 1 Delay 500 KeyPress 39, 1 Delay 500 KeyDown 18, 1 KeyPress "Tab", 1 KeyUp 18, 1 Delay 500 KeyDown 17, 1 KeyPress 86, 1 KeyUp 17, 1 //第三次切换复制粘贴 KeyDown 18, 1 KeyPress "Tab", 1 KeyUp 18, 1 Delay 500 KeyDown 17, 1 KeyPress 67, 1 KeyUp 17, 1 Delay 500 KeyPress 39, 1 Delay 500 KeyDown 18, 1 KeyPress "Tab", 1 KeyUp 18, 1 Delay 500 KeyDown 17, 1 KeyPress 86, 1 KeyUp 17, 1 //第四次切换复制粘贴(左移3格并下移一格,最后切换为原页面粘贴) KeyDown 18, 1 KeyPress "Tab", 1 KeyUp 18, 1 Delay 500 KeyDown 17, 1 KeyPress 67, 1 KeyUp 17, 1 Delay 500 KeyPress 37, 1 Delay 500 KeyPress 37, 1 Delay 500 KeyPress 37, 1 Delay 500 KeyPress 40, 1 KeyDown 18, 1 KeyPress "Tab", 1 KeyUp 18, 1 KeyDown 17, 1 KeyPress 86, 1 KeyUp 17, 1
通过四次循环Tab+Alt切换于浏览器与如图所示的Excel文档之间,可以实现自动选择与复制的功能。