[(通过VBScript中的SendKeys传递]

问题描述 投票:1回答:1

有人可以帮助我解决在VBScript中通过传递SendKeys(而不是连字符)时遇到的问题。下面是我正在尝试的代码:

Set WshShell = CreateObject("WScript.Shell")
WshShell.SendKeys"(%chr(0150))"

0150是的ASCII值。

vbscript qtp hp-uft sendkeys
1个回答
0
投票

我使用了ASCII字符45,这有效WshShell.SendKeys ChrW(45)

© www.soinside.com 2019 - 2024. All rights reserved.