【问题标题】:Pass (–) through SendKeys in VBScript在 VBScript 中通过 SendKeys 传递 (–)
【发布时间】:2018-12-17 08:58:46
【问题描述】:

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

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

0150 是 的 ASCII 值。

【问题讨论】:

标签: vbscript qtp hp-uft sendkeys


【解决方案1】:

我使用了 ASCII 字符 45,这有效

WshShell.SendKeys ChrW(45)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-02-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多