|
#1
|
|||
|
|||
Script Not Sending ESC Key To Host
Hi.
I'm using SecureCRT v8.7.1 to automate transactions into a host system. One of the screens requires that the script sends the ESC key. I have successfully used the script on a Windows 7 machine running SecureCRT v8.1.4, however after installing v8.7 onto a Windows 10 machine, the ESC key sequence no longer works. I have tried all 3 methods to send an ESC to the host, and neither works on the new machine: crt.Screen.Send "^[" (this was the original method which worked just fine on the Win7 machine) crt.Screen.SendKeys "{ESC}" crt.Screen.SendSpecial "VK_ESCAPE" For the context, here's the section of the script that is failing (marked in red). If I manually hit the ESC key, the system moves on just fine. I have double-checked and triple-checked the onscreen prompts (host screen hasn't changed, only the client machine). DefaultWait is just a constant value of 250: Code:
OnScreen = crt.Screen.WaitForStrings("WEIGHT","SKU","Lottable03","auid:",1) If OnScreen = 1 Then crt.Screen.Send "<$EXE_TRACK$>" & chr(13) crt.Sleep DefaultWait crt.Screen.Send "<$EXE_DS$>" & chr(13) crt.Sleep DefaultWait crt.Screen.WaitForString "SERIAL#" crt.Screen.SendSpecial "VK_ESCAPE" crt.Sleep DefaultWait crt.Screen.WaitForString "ITEM" crt.Screen.SendSpecial "VK_ESCAPE" crt.Sleep DefaultWait*6 |
#2
|
|||
|
|||
Hi ajbroome,
Did you migrate your SecureCRT config from the Windows 7 machine to the Windows 10 machine? If not, I would recommend doing that with this tip from the website. What does happen when you reach that line of the script? Is some other character sent? Does the script hang? (If so, if you choose Cancel from the Script menu, is that the line of the script it indicates it is hanging on?)
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
![]() |
Tags |
esc , escape , scripting , scripts |
Thread Tools | |
Display Modes | Rate This Thread |
|
|