dbTalk Databases Forums  

Trigger when F2 ist pressed

comp.databases.filemaker comp.databases.filemaker


Discuss Trigger when F2 ist pressed in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Trigger when F2 ist pressed - 10-14-2010 , 11:02 AM






FMP 10 and later on both platforms: there's no way to trigger a script
if the user presses one of the F-keys is there? I tried catching keys
that triggered, but got an empty result with the F-keys.

I'm looking for a way to launch a script when the user has finished
entering a variable and unpredictable amount of portal lines. Using the
tab key, the user can enter more and more portal lines. When he's done,
he needs to launch a process script.

I have a buttom there of course. Can't tab to it, though, as tabbing
creates more portal lines (which is intended).

Any ideas, apart from digging out the mouse? Any obvious commands I
could use (i.e. I can trigger)? I'm thinking about Alt-Cmd-B, as nobody
will get hurt if the user presses just Cmd-B by mistake.
--
http://clk.ch

Reply With Quote
  #2  
Old   
Your Name
 
Posts: n/a

Default Re: Trigger when F2 ist pressed - 10-14-2010 , 02:58 PM






"Christoph Kaufmann" <clk (AT) tele2 (DOT) ch> wrote

Quote:
FMP 10 and later on both platforms: there's no way to trigger a script
if the user presses one of the F-keys is there? I tried catching keys
that triggered, but got an empty result with the F-keys.

I'm looking for a way to launch a script when the user has finished
entering a variable and unpredictable amount of portal lines. Using the
tab key, the user can enter more and more portal lines. When he's done,
he needs to launch a process script.

I have a buttom there of course. Can't tab to it, though, as tabbing
creates more portal lines (which is intended).

Any ideas, apart from digging out the mouse? Any obvious commands I
could use (i.e. I can trigger)? I'm thinking about Alt-Cmd-B, as nobody
will get hurt if the user presses just Cmd-B by mistake.
A Script can be a given keyboard shortcut using the Command key (on the Mac)
and the number keys. In older versions of FileMaker Pro the first ten
Scripts in Scripts menu were automatically given the keyboard shortcuts
Command-1 through to Command-0, which means those shortcuts were not
interferring with any other options.

Helpful Harry )

Reply With Quote
  #3  
Old   
Ursus
 
Posts: n/a

Default Re: Trigger when F2 ist pressed - 10-15-2010 , 04:59 AM



"Christoph Kaufmann" <clk (AT) tele2 (DOT) ch> schreef in bericht
news:1jqd5d1.1nm7x671k7g0ceN%clk (AT) tele2 (DOT) ch...
Quote:
FMP 10 and later on both platforms: there's no way to trigger a script
if the user presses one of the F-keys is there? I tried catching keys
that triggered, but got an empty result with the F-keys.

I'm looking for a way to launch a script when the user has finished
entering a variable and unpredictable amount of portal lines. Using the
tab key, the user can enter more and more portal lines. When he's done,
he needs to launch a process script.

I have a buttom there of course. Can't tab to it, though, as tabbing
creates more portal lines (which is intended).

Any ideas, apart from digging out the mouse? Any obvious commands I
could use (i.e. I can trigger)? I'm thinking about Alt-Cmd-B, as nobody
will get hurt if the user presses just Cmd-B by mistake.
--
http://clk.ch
Christopher,

With FMP advanced you can create custom menu's.
The function keys (F1 - F12) aren't captured with windows (couldn't try osx
at this point) possibly because many of them have system functions attached
(F1 = help, F2 = rename item, F3 = search)
But I was able to attach ctrl-shift-b and every other unused combination to
a script.
So that is the way to go: FMPa and create custom menu's

--
Keep well / Hou je goed

Ursus

Reply With Quote
  #4  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Trigger when F2 ist pressed - 10-16-2010 , 03:14 AM



Ursus <ursus.kirk (AT) ziggo (DOT) nl> wrote:

Quote:
With FMP advanced you can create custom menu's.
Thanks to Harry and Ursus for the inputs - I haven't thought about
shortcuts in Custom menus. I'd have gone for script menu shortcuts
instead, but custom menus are not affected when new scripts are created.

I found a different approach meanwhile: while I can't predict the number
of portal lines the user is going to create, I can conclude from his
entries which is most probably the last portal line that should be made,
so I attached a script to the last field of the portal row that captures
the key codes 9, 10 and 13 (tab, enter, return) and cancels them after
the script has made an educated guess for the further navigation.

--
http://clk.ch

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.