Indigo Rose Software

Professional Software Development Tools

 
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 22
  1. #1
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201

    Grin Need Help: Input password without popup

    Can someone please help me:

    I want to do a password screen, customize , input and out in same scareen, See image below:
    top box is : input1 (input box) eg Entering password
    bottome : ListBox1 (List box) to view eg "Invalid Password Try again"

    I have a code but this will popup a screen, (I dont want that way)
    PHP 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
        Dialog
    .Message("Incorrect Password""Password Correct."MB_OK
    else
        -- 
    wrong password (change this message to suit)
        
    Dialog.Message("Incorrect Password""Incorrect password."MB_OKMB_ICONEXCLAMATION);
        
    Application.Exit(0);

    end 
    Attached Images

  2. #2
    Join Date
    Mar 2007
    Posts
    452
    below the code is
    Last edited by GoOgLe; 04-02-2007 at 05:21 AM.

  3. #3
    Join Date
    Mar 2007
    Posts
    452
    here u go just use 2 inputs and a button
    Input1 and Input2

    on button click
    -- the 'correct' password
    real_password = "password";

    --prompt the user to enter a password
    user_password = Input.GetText("Input1");

    -- 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
    Input.SetText("Input2", "CORRECT PASSWORD");
    else
    Input.SetText("Input2", "WRONG PASSWORD");

    end

  4. #4
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201
    Thanks GoOgLe Its working only if I put a button there , Is there any way that I can enter password and pressing enter key ,

    also anyway to blink the cursor on password input box when i open,

    Thanks

  5. #5
    Join Date
    Mar 2007
    Posts
    452
    put this code to input1 on key event

    Code:
    if e_Key == 13 then
    -- the 'correct' password 
    real_password = "password"; 
    
    --prompt the user to enter a password 
    user_password = Input.GetText("Input1");
    
    -- 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 
    Input.SetText("Input2", "CORRECT PASSWORD");
    else 
    Input.SetText("Input2", "WRONG PASSWORD");
    
    end 
    end

  6. #6
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201
    Great !! thats working, but cursor not blinking when open the file.

    Thank you GoOgLe

  7. #7
    Join Date
    Mar 2007
    Posts
    452
    put that code on show event of the page for the cursor blink

    Code:
    Page.SetFocus("Input1");

  8. #8
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201
    GoOgLe Everything working, Perfectly , Thank you very Much for your help.


  9. #9
    Join Date
    Mar 2007
    Posts
    452
    no problem nals

  10. #10
    Join Date
    Apr 2007
    Posts
    5
    I was following the dialogue, but I couldn't do it right. Could anyone of you just summarize the steps to get the result as been asked by "nals"

  11. #11
    Join Date
    Mar 2007
    Posts
    452
    Quote Originally Posted by australianfalcon View Post
    I was following the dialogue, but I couldn't do it right. Could anyone of you just summarize the steps to get the result as been asked by "nals"
    here u go an example
    Attached Files

  12. #12
    Join Date
    Oct 2006
    Posts
    209

    Smile in your page properties on show

    australianfalcon
    add
    PHP Code:
    Page.SetFocus("Input1"); 
    in your page properties on show.

  13. #13
    Join Date
    Apr 2007
    Posts
    5

    Thanks

    That wraps it up.
    I saw the example. It was very clear..
    Thanks a lot "GoOgLe" for your help, and "wasim21k" for the addition, but I saw the code you add to make curser blinks is already there in the example

  14. #14
    Join Date
    Apr 2007
    Posts
    5

    hashed password

    This example is helping me doing my Security project at the Uni, but because I am very new to AMS, I'll be asking so many questions as the project moves on. I did the example very well, but I was thinking about the hashed password, is there a way not to type the password in a clear text??

    Thanks in advanced

  15. #15
    Join Date
    Feb 2007
    Location
    Australia
    Posts
    201
    Follow this:

    Double click your input password box
    See Input Style: Password, Input, Input mask (Change this to Password)

    Done and run the application n see

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Password input box
    By Matias Miguel in forum AutoPlay Media Studio 5.0
    Replies: 1
    Last Post: 11-20-2005, 12:03 AM
  2. Enable/Disable Input Object with Password
    By mafranks in forum AutoPlay Media Studio 5.0
    Replies: 2
    Last Post: 11-11-2004, 10:32 AM
  3. Adding Password Protection
    By Desmond in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 10-03-2003, 03:25 PM
  4. Reoccurring password
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 6
    Last Post: 06-04-2003, 04:09 PM
  5. Password
    By Bruce in forum AutoPlay Media Studio 4.0
    Replies: 2
    Last Post: 05-31-2003, 05:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts