![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
FMP 10: I want the tab to jump to a new object depending on various stuff I need to calculate; meaning the good old tab sequence is not good enough, but there are script triggers. Trouble is, OnObjectLeave fires upon various actions, not just when tab has been pressed, and it seems impossible to calculate what has been done. This is a pity because the user doesn't want go anywhere if he pressed enter or clicked outside the field. The only way I see is the OnObjectKeystroke trigger: If ( code ( get ( triggerkey ) ) = 9 ) // tab go to that dozen dead oceans exit script (0) // ignore the key that fired the script Else exit script (1) // false alarm: process the key that fired the script End if Fire a script after each and every keystroke does not look efficient to me. Is there a better way? |
#3
| |||
| |||
|
|
I use the same approach ( st; OnObjectExit ; get trigger keystroke) |
#4
| |||
| |||
|
|
cortical<cb (AT) corticaldata (DOT) com.au> wrote: I use the same approach ( st; OnObjectExit ; get trigger keystroke) I use on OnObjectKeystroke because get ( trigger keystroke ) doesn't return anything when I use OnObjectExit. Does it work for you? |
![]() |
| Thread Tools | |
| Display Modes | |
| |