Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
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
quit!!!
else
continue with the script


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

Tags
help please , string


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 05:17 AM.