The Desktop Scripting Language supports reading values from the application’s desktop bookmark record and its associated template.
These values are treated as string literals when used inside commands.
Template values can support environment variables and have special behaviours for running 32 bit and 64 bit apps.
The following tokens represent data from a My1Login bookmark and may be used in place of string literals inside a script.
Attribute | Data Source |
---|---|
bmAppArgument | Template: Command Line Arguments field |
bmAppPath | Template: Path to App field |
bmEnc1 | Bookmark: Extra Encrypted 1 field |
bmEnc2 | Bookmark: Extra Encrypted 2 field |
bmTitle | Bookmark: Title field |
bmNewPassword | Forces new password generation, if policy available |
bmOldPassword | Current password, or password prior to last bmNewPassword reference |
bmNotes | Bookmark: Notes field |
bmPassword | Bookmark: Password field |
bmUsername | Bookmark: Username field |
bmTemplateName | Template: Name field |
bmTemplateDescription | Template: Description field |
// Show an alert with the app title as the popup
// header and username in the content.
AlertInfo "Username is " bmUsername , "App:" bmTitle
// Start the bookmark process and wait for it
// to initialise
StartProcess bmAppPath
WaitProcess bmAppPath
bmNewPassword
and bmOldPassword
attributes are used, along with a template’s password policy, to generate and return a new password.See also Password Change Example
bmNewPassword
triggers the generation of a new password while storing the previous password in the bmOldPassword
attribute. Each reference to bmNewPassword
generates a new password. The bmPassword
attribute always reflects the current value.
Important
Changes made by bmNewPassword
are not permanently stored in the user’s My1Login bookmark until the SaveChanges
command is used in the script.
See SaveChanges
The password settings policy (length, permissible characters, etc.) is defined in the My1Login administration area by clicking on the shield icon on the desktop application’s template.
How the Different Attributes are Affected
SendKeys bmNewPassword
SendKeys bmNewPassword
will affect the password attributes (bmPassword
, bmNewPassword
& bmOldPassword
) as follows:
|
|
| |
---|---|---|---|
Initial Values: | Pwd123 | -no value- | Pwd123 |
1st command | RandomPwd1 | RandomPwd1 | Pwd123 |
2nd command | RandomPwd2 | RandomPwd2 | RandomPwd1 |
Note
If bmPassword
is used after the password change, then it will return the new password.
Therefore, change password scripts must send bmPassword
(if it means the old password) prior to sending bmNewPassword
. Or use bmOldPassword
which will contain the original value of bmPassword
prior to bmNewPassword
being called.
E.g. in a normal change password scenario use
SendKeys bmPassword bmNewPassword bmPassword
which sends the original password value, generates and sends the new password, then sends the new password again. That is (using the values from the table above):
“Pwd123” “RandomPwd1” “RandomPwd1”