xsh.screen.SendKeys(DOWN) not find function [3]

xsh.screen.SendKeys(DOWN) not find function

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

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


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

Tuesday, August 30, 2016 6:49 AM - zootopia

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.


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

Wednesday, August 31, 2016 4:28 AM - songzhx

it cant work.


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

Wednesday, August 31, 2016 2:14 PM - songzhx

it can be work .
tks!


Previous views: 939