View Single Post
Old 08-10-2018, 02:25 PM
DrKubo DrKubo is offline
Registered User
Join Date: Aug 2018
Posts: 4
Cool Wait for String?

Hi there,
I'm working on scripts for network-attached legacy devices. They're quite sensitive and I want to let my script check to make sure another user is connected. When another user is issuing commands on the same device, a simultaneously connected user will see their commands being typed out in plain-text. I want to let my script to wait a few seconds while checking for any input before proceeding, otherwise someone is connected and the script should back out of this device.

For example I want to do...

Dim oUser
oUser = crt.Screen.WaitForString(any string whatsoever, 3)

if oUser <> 0 then
continue with the script

How can I issue the "waitForString" command such that it will wait for any string?
Reply With Quote