Xshell Forum

xsh.Screen.WaitForStrings in python

Last post: Tuesday, July 19, 2016 6:24 AM by Support, 1 reply

Monday, July 18, 2016 7:46 AM - sharenpk

xsh.Screen.WaitForStrings in python

def Main():
xsh.Screen.Synchronous = True
g_vWaitFors = [
"Waiting for 1",
"Waiting for 2"]
xsh.Screen.Send('dir\r ')
xsh.Screen.WaitForStrings(g_vWaitFors, 1000)
xsh.Screen.Synchronous = False

run this script,Prompt
why ?
delete xsh.Screen.WaitForStrings(g_vWaitFors, 1000) , is ok

Program Ver. : Xshell 5
Tuesday, July 19, 2016 6:24 AM - Support

Re: xsh.Screen.WaitForStrings in python

There seems to be an issue with the python script API. We'll locate the problem and fix it as soon as possible. Thank you for the information.

The python script API of Xshell has some problems now.
We'll find the problems and fix them.

Technical Support

Like us on Facebook
Follow us on Twitter
Visit our blog Blog