Xshell Forum

xsh.screen.SendKeys(DOWN) not find function

Last post: Wednesday, August 31, 2016 2:14 PM by songzhx, 3 reply

 
Tuesday, August 30, 2016 6:24 AM - songzhx

xsh.screen.SendKeys(DOWN) not find function

 
my screen is :
Username:__________
Password: __________


vbscript is :
xsh.Screen.WaitForString("Username:")
xsh.Screen.Send("test")
xsh.screen.SendKeys(DOWN)
xsh.Screen.Send("test")
xsh.Screen.Send(VbCr)


erros:
xsh.screen.SendKeys(DOWN) not find function

how to send password .

Program Ver. : Xshell 5
Tuesday, August 30, 2016 6:49 AM - zootopia

Re: xsh.screen.SendKeys(DOWN) not find function

 
Xshell doesn't seem to support SendKeys function.

Try using xsh.screen.send(chr(27)+"[B")

The characters of Down key are ^[[B.
^[ is ESC character as you know and the same as chr(27) in VBS.

And Down key can be ^[OB in some application.
Wednesday, August 31, 2016 4:28 AM - songzhx

Re: xsh.screen.SendKeys(DOWN) not find function

 
it cant work.
Wednesday, August 31, 2016 2:14 PM - songzhx

Re: xsh.screen.SendKeys(DOWN) not find function

 
it can be work .
tks!