本帖最后由 Roxx 于 2023-5-2 13:53 编辑
 - DIM objShell
- set objShell=wscript.createObject("wscript.shell")
- Wscript.Sleep 2000
- objShell.SendKeys "^{ESC}"
- Wscript.Sleep 1000
- objShell.SendKeys "{TAB}"
- Wscript.Sleep 500
- objShell.SendKeys "{DOWN}"
- Wscript.Sleep 500
- objShell.SendKeys "{DOWN}"
- Wscript.Sleep 500
- objShell.SendKeys "{DOWN}"
- Wscript.Sleep 500
- objShell.SendKeys "{DOWN}"
- Wscript.Sleep 500
- objShell.SendKeys "{ENTER}"
- Wscript.Sleep 1000
- objShell.SendKeys "% x"
复制代码 打开Windows设置 让他最大化 然后发现"% x" 最大化不了:'(
但是我用键盘ALT+空格+x 可以最大化 用vbs 模拟键盘就不能最大化

直接输入X 他不最大化怎么才能让他最大化 |