Indigo Rose Software

Professional Software Development Tools

 
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Sep 2008
    Location
    UK
    Posts
    17

    Getting RETURN On_Key from Input object

    Hi, I need to know when a user presses Return in an input dialogue. Ideally there would be way to find the last character inputted i.e. "\r" and then trigger an action based on this.

    I need this as I want to be able to trigger the display of a HTML help page when a new user uses my app. I can tell their new by checking their record in my database. But for that I need their email address, and I need to know this has been positively entered by the user pressing ENTER.

    Any ideas?

    Cheers

    CT

  2. #2
    Join Date
    Jun 2007
    Location
    Delphi II
    Posts
    1,534

    Post

    Put the following code into the "On Key" event of your input object.

    Code:
    if e_Key == 13 then -- return
    
    --YOUR CODE HERE
    
    end
    check your AMS help file and look up "key codes" in the index for other keys.

  3. #3
    Join Date
    Sep 2008
    Location
    UK
    Posts
    17
    Thanks, yes, that works a treat

    Cheers

    CT

Similar Threads

  1. Function: Validate the Contents of an Input Object
    By Lorne in forum AutoPlay Media Studio 5.0 Examples
    Replies: 2
    Last Post: 06-17-2004, 08:47 AM
  2. Function: Test Whether An Input Object Is Empty
    By Lorne in forum AutoPlay Media Studio 5.0 Examples
    Replies: 0
    Last Post: 06-08-2004, 02:18 PM
  3. HOW TO: Return a Web Browser Object to the Original URL after a Page Jump
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 02-03-2003, 09:18 AM
  4. INFO: Difference between the Media Player Object and the AVI Object
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-29-2002, 02:15 PM
  5. HOWTO: Make a Media Player Object Go Full Screen
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-23-2002, 11:23 AM

Posting Permissions

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