Announcement

Collapse
No announcement yet.

VBS Help please

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • VBS Help please

    Hello every one,

    I am looking for a method that would check if, for example I3 exists or not then speak back the results. I'm on HSPRO 2.5.0.80. I've been trying for a couple days and i'm just really stuck.


    Thanks,

    ~Ghost~

  • #2
    Here you go:

    Code:
        Sub Main()
    
            Dim VD
            VD ="I3"
            If hs.DeviceExists(VD) <> -1 Then
                hs.Speak "Device " & VD & " exists" 
            Else
                hs.Speak "Device " & VD & " does not exist"
            End If
    
        End Sub
    Jon

    Comment


    • #3
      Thank you Jon00, I appreciate it.

      ~Ghost~

      Comment

      Working...
      X