我考虑过使用带有 sendkeys 的 vbs 文件......我需要模拟 alt + space 组合键然后我,我已经尝试过但我失败了......你能帮我吗?提前致谢
我试图编辑这个文件(删除记事本并插入我需要的组合):
' Open notepad
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "notepad.exe", 9
' Give Notepad time to load
WScript.Sleep 500
' Type in Hello World
WshShell.SendKeys "Hello World!"
WshShell.SendKeys "{ENTER}"
' Add the date
WshShell.SendKeys "{F5}"