在VBScript中通过(–)通过SendKeys

时间:2018-12-17 08:58:47

标签: vbscript qtp hp-uft sendkeys

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

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

0150是的ASCII值。

1 个答案:

答案 0 :(得分:-1)

我使用了ASCII字符45,并且可以正常工作

[Nginx HTTP]
title=Web Server 
description=Enable NGINX HTTP traffic
ports=80/tcp

[Nginx HTTPS] \
title=Web Server (HTTPS) \
description=Enable NGINX HTTPS traffic
ports=443/tcp

[Nginx Full]
title=Web Server (HTTP,HTTPS)
description=Enable NGINX HTTP and HTTPS traffic
ports=80,443/tcp