这是代码:
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """C:\Users\dashboard\Desktop\CallOverzichtLive.pbix"""
WScript.Sleep 15000
WshShell.AppActivate "CallOverzichtLive - Power BI Designer Preview"
WshShell.SendKeys "{%(1)}"
它给出了
第15行char 1的无效的通话或参数
错误。
我不知道自己做错了什么,有人可以帮助我吗?
答案 0 :(得分:4)
好吧,我认为你传递了错误的关键参数。
发送Alt + 1
Set WshShell = WScript.CreateObject("WScript.Shell")
WshShell.Run """C:\Users\dashboard\Desktop\CallOverzichtLive.pbix"""
WScript.Sleep 15000
WshShell.AppActivate "CallOverzichtLive - Power BI Designer Preview"
WshShell.SendKeys "%{1}"