Is this within your own app?
If so, look up "focus" in the docs. You can focus on the next field by script easily.
If you are trying to automate input into another app or webform, there are more complications.
Scripting tab
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Re: Scripting tab
Create two fields and in the first place this code
Is this what you need?
Code: Select all
on enterinField
focus on field 2
end enterinField
on returninField
focus on field 2
end returninField
on textChanged
focus on field 2
end textChanged
Be kind, we all have our own wars.
https://torocruzand.com/
https://torocruzand.com/
Re: Scripting tab
What andresdt said.
Yep, it is not easy to convey in words what one really means. I asked that question early on in my first response.
In LC, since everything is message driven, and messages are created by an astonishing number of events. You can trap one message or another and use it to modify the state of your stack. That modification can be to focus on another control, like a field, perhaps in layer number or by some other ordered property that is preloaded into the structure of the stack.
Getting the hang of this deserves practice on your part.
Craig
Yep, it is not easy to convey in words what one really means. I asked that question early on in my first response.
In LC, since everything is message driven, and messages are created by an astonishing number of events. You can trap one message or another and use it to modify the state of your stack. That modification can be to focus on another control, like a field, perhaps in layer number or by some other ordered property that is preloaded into the structure of the stack.
Getting the hang of this deserves practice on your part.
Craig
Re: Scripting tab
Thank you, Klaus. You were correct. That was what I wanted..
Dave
Dave
Re: Scripting tab
Hi Dave,
you're welcome!
@the others,
sorry folks, but I can read minds, even from far, far away!
Best
Klaus
you're welcome!
@the others,
sorry folks, but I can read minds, even from far, far away!



Best
Klaus