Environment
Novell SecureLogin
NSL 3.51
NSL6.0
NSL 6.1
NSL 3.51
NSL6.0
NSL 6.1
Situation
NSL Script Error: "Non secure login error (1)"
Error returned with "Readtext" command when there is no text to read.
Title of window changes for each user.
Error returned with "Readtext" command when there is no text to read.
Title of window changes for each user.
Resolution
Solution 1. Make sure the Dialog statement includes a title.
Solution 2. Use the "Ctrl" command in the dialog statement. If the title cannot be used because it is not the same for all users, identify the common part of the title and use a "wild card" regular expression with the "Ctrl" command. For example, the following dialog statement successfully identifies a "change password" window where the title includes the user name (e.g. title says "Change Password Joe" or "Change Password Mary").
Dialog
Class #32770
Ctrl #0 "Change Password (.*)"
EndDialog
Solution 2. Use the "Ctrl" command in the dialog statement. If the title cannot be used because it is not the same for all users, identify the common part of the title and use a "wild card" regular expression with the "Ctrl" command. For example, the following dialog statement successfully identifies a "change password" window where the title includes the user name (e.g. title says "Change Password Joe" or "Change Password Mary").
Dialog
Class #32770
Ctrl #0 "Change Password (.*)"
EndDialog
Additional Information
Note that Ctrl #0 is the "backgound" window, and is generally where the title is written.
It is possible to use other control fields with regular expressions as well. See "Ctrl" in the "Command" section of the on line documentation for SecureLogin.
It is possible to use other control fields with regular expressions as well. See "Ctrl" in the "Command" section of the on line documentation for SecureLogin.
Formerly known as TID# 10098708