我想打开osk.exe。我的公司的安全标准不允许这样做。但我可以使用键盘快捷键打开它。有没有办法使用宏触发此快捷方式? 喜欢:
If Condition = True Then
Press "Ctrl + O"
End If
或者沿途有什么事情?
看一下SendKeys 语句。 https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/sendkeys-statement
在您的情况下
SendKeys "^{O}"
将模拟击键。