Our Preferred 5 Star Hosting Provider - Award Wining FileMaker Pro Hosting
Results 1 to 2 of 2
  1. #1
    FREE Member
    Join Date
    May 2009
    Posts
    25
    Location
    USA
    FileMaker Version
    FM 11 Server
    OS
    Windows
    Skill Level
    Novice
    Downloads
    0
    Uploads
    0

    run script with "enter" keystroke

    on FMA11, How do you run script when user keystroke "enter"?

    I have a text field that ONLY when user keystroke an "enter" the script will run. nothing else matter.

    i tried
    1. OnObjectModify = script runs right after first letter typed/modified = not good
    2. OnObjectValidate = script run even without "enter" keystroke = not good
    3. OnObjectEnter = script run right after field activate/ no "enter" keystroke necessary = not good
    4. OnObjectKeystroke = script run with any keystroke not just "enter" keystroke = not good
    5. OnObjectSave = i dont know what this for = definitely not good
    6. OnObjectExit = script run when exiting field not by 'enter" keystroke = not good


    HELP
    Warning: This is an Old Thread
    This discussion is older than 420 days. information contained in it may no longer be current

  2. #2
    Senior Moderator - FMT Preferred Developer Consultant - New York - Worldwide AHunter3's Avatar
    Join Date
    Aug 2006
    Posts
    11,472
    Location
    New York and Nassau County, NY, USA
    FileMaker Version
    FM 9, FM 9 Server, FM 10, FM 11, FM 11 Server, FM 12, FM 12 Developer
    OS
    Windows & Mac
    Skill Level
    Developer
    Downloads
    0
    Uploads
    0

    Re: run script with "enter" keystroke

    This is how you do it:
    4. OnObjectKeystroke = script run with any keystroke not just "enter" keystroke = not good
    YES good, if the first step in your script is to evaluate the results of Code (Get (TriggerKeystroke)).

    Enter is 10. (That's the REAL enter key, the one over to the far right on the numerical keypad). The Return key (the one above the right-hand Shift key) is 13.

    So if you only want your script to do something if Enter is pressed, the first thing you do is:

    If [Code (Get (TriggerKeystroke)) ≠ 10]
    .. Exit Script
    End If

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. "Finding Matching Fields" that are "Open" by using the "Button" Command
    By CLattmann in forum FileMaker Pro 12 - All versions
    Replies: 2
    Last Post: 11-29-2012, 06:06 PM
  2. Portal of "Glossary" field with two columns, one "Spanish" and one "French"
    By LanguageAmbassador in forum Portal & Relationships
    Replies: 8
    Last Post: 02-20-2010, 07:01 PM
  3. Auto enter "data" fields
    By stuff03 in forum FileMaker Pro 8.5
    Replies: 3
    Last Post: 01-03-2008, 10:59 PM
  4. Prevent User from Pressing "Enter" to begin Find
    By PilatesBlackBelt in forum Find, Sort and Search
    Replies: 2
    Last Post: 07-26-2007, 11:34 AM
  5. Error #4 when IE user hits "enter"
    By cindit in forum HTML , CDML and Lasso
    Replies: 3
    Last Post: 06-20-2001, 06:12 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Welcome to the Original FileMaker Forum
With designated forums for almost every FileMaker topic...FileMaker Today is a free-to-join community where you can boost your FileMaker expertise, build better solutions and solve your technical challenges. If you're building FileMaker solutions, this is the place for you.
Follow FMT
We Are FMT
FMT is home of The World's leading FileMaker News Site, Worldwide Developer Directory, FileMaker Connect Community and so much more.