l i v e c o d e

Making a Password Field Showing Images Instead of Bullets
Mac OS 9 Mac OS X Windows Linux

Normally you can use bullets to take the place of characters when typing into a password field. The following tip shows you how to use an image (like a padlock) in place of each character:

on rawkeydown
  send "hideMyKeys" to me in 0 seconds
  pass rawkeydown
end rawkeydown

on hideMyKeys
  lock messages
  lock screen
  repeat with i = 1 to the number of characters in me
    if the imagesource of char i of me is not "tinyPadlock" then
        set the imagesource char i of me to "tinyPadlock"
    end if
  end repeat
  unlock messages
end hideMyKeys
Works perfectly.

Posted 12/6/2005 by Eric Chatonet to the Use Revolution List


 Print this tip

News and Rumors Products Services Developer Resources Contact STS About STS