xsh.Screen.WaitForStrings in python [1]

xsh.Screen.WaitForStrings in python

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

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.Session.StopLog()
xsh.Screen.Synchronous = False



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

Program Ver. : Xshell 5


Re: xsh.Screen.WaitForStrings in python

Tuesday, July 19, 2016 6:24 AM - Support

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


Previous views: 160