[英]Switch windows with .bat file
I am trying to switch windows at regular intervals automatically between Internet Explorer and a Powerpoint presentation.我正在尝试在 Internet Explorer 和 Powerpoint 演示文稿之间定期自动切换窗口。
I did actually cobble something together but accidently deleted it a while back and now for the life of me can't recreate it.我确实拼凑了一些东西,但不久前不小心删除了它,现在我一生都无法重新创建它。
Can someone please point me in the right direction?有人可以指出我正确的方向吗?
Maybe you could try to send a keypress to the keyboard like ALT + TAB?也许您可以尝试向键盘发送按键,例如 ALT + TAB?
Hava a look at this question Press Keyboard keys using a batch file Hava 看看这个问题Press Keyboard keys using a batch file
cd "Path to Directory" cd“目录路径”
start alttab.vbs启动 alttab.vbs
set WshShell = WScript.CreateObject("WScript.Shell") set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.SendKeys "^%{TAB}" WshShell.SendKeys "^%{TAB}"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.