在VBS中,可以使用以下代码来检查窗口是否被绑定:
```vb
Set objShell = CreateObject("Shell.Application")
Set objWindows = objShell.Windows
For Each objWindow In objWindows
If objWindow.hwnd = hWnd Then
MsgBox "Window is bound"
Exit For
End If
Next
MsgBox "Window is not bound"
```
其中,hWnd是要检查的窗口句柄。该代码会遍历所有打开的窗口,并比较它们的句柄是否与指定的句柄相同。如果找到匹配的窗口,则说明该窗口已经被绑定。否则,说明该窗口未被绑定。