View Single Post
  #2  
Old 04-05-2019, 08:33 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,049
Hi krypton179,

SecureCRT has its own mechanism for this.

See Scripting / Script Objects Reference / Dialog Object. The Prompt() method supports a Boolean (isPassword) that can mask that data entry.

Quote:
Python
Syntax
crt.Dialog.Prompt(message [, title [, default [, isPassword ]]])
Example
password = crt.Dialog.Prompt("Enter your password:", "Logon Script", "", True)

if password == "":
# User clicked Cancel button
else:
# User added data
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote