Creating a number to login the my media player

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Armory
    Forum Member
    • Jan 2007
    • 3

    Creating a number to login the my media player

    i was wondering if any can help me or send me to the right path on creating a number pad to be use as a login screen to my media player.
  • Intrigued
    Indigo Rose Customer
    • Dec 2003
    • 6125

    #2
    You could setup a Page in AMS that would contain Images of the numbers for your keypad and then overlay Hotspot objects (they are transparent) and then from there you can use some AMS code to script out a password setup. Here is an example password check code chunk:
    Code:
    -- the 'correct' password
    real_password = "password";
    
    -- prompt the user to enter a password
    user_password = Dialog.PasswordInput("Password", "Please enter the password: ", MB_ICONQUESTION);
    
    -- compare the user's password to the 'correct' password.
    -- If the user supplies the wrong password, exit the program.
    if real_password ~= user_password then
        Page.Jump("Page1");
    else
        Page.Jump("Page2");
    end
    Intrigued

    Comment

    • Armory
      Forum Member
      • Jan 2007
      • 3

      #3
      Number key login

      Originally posted by Intrigued View Post
      You could setup a Page in AMS that would contain Images of the numbers for your keypad and then overlay Hotspot objects (they are transparent) and then from there you can use some AMS code to script out a password setup. Here is an example password check code chunk:
      Code:
      -- the 'correct' password
      real_password = "password";
      
      -- prompt the user to enter a password
      user_password = Dialog.PasswordInput("Password", "Please enter the password: ", MB_ICONQUESTION);
      
      -- compare the user's password to the 'correct' password.
      -- If the user supplies the wrong password, exit the program.
      if real_password ~= user_password then
          Page.Jump("Page1");
      else
          Page.Jump("Page2");
      end
      Thanks for the startup help. now i can start and work on the rest of the codes.

      Comment

      • Intrigued
        Indigo Rose Customer
        • Dec 2003
        • 6125

        #4
        You're welcome. I hope your project goes well.
        Intrigued

        Comment

        • Armory
          Forum Member
          • Jan 2007
          • 3

          #5
          Help!!!

          Originally posted by Intrigued View Post
          You're welcome. I hope your project goes well.
          i can't figure out what to do next. can you create a sample for me to review it. i will like to press on the numbers to log-in and create a setting windows to change the number login when ever i want. I am new at this so any-one that can help please do. it will be appreciate.

          Comment

          Working...
          X