Vbscript 在visual basic脚本中响应击键?

Vbscript 在visual basic脚本中响应击键?,vbscript,wsh,Vbscript,Wsh,我需要一个游戏的帮助,它需要在打开和关闭时感知击键。我正试图将其实现为一个VBScript,因为我对该语言非常熟悉。总之,我的代码有一个想法: Option Explicit Dim W, A, S, D W = "W" A = "A" S = "S" D = "D" 'detect any keystrokes of w, a, s, or d 'respond to those keystrokes end if

我需要一个游戏的帮助,它需要在打开和关闭时感知击键。我正试图将其实现为一个VBScript,因为我对该语言非常熟悉。总之,我的代码有一个想法:

Option Explicit
Dim W, A, S, D
W = "W"
A = "A"
S = "S"
D = "D"
'detect any keystrokes of w, a, s, or d
'respond to those keystrokes
end if

然而,我真的找不到任何东西。

首先,你用哪种编程语言构建游戏(据我所知)

由于VBScript是一种web语言,它需要使用与另一个应用程序的DOM连接来读取事件,因为VBScript没有控制台