does "type" works in a standalone?
m.schonewille at economy-x-talk.com
Wed Mar 14 09:17:51 EDT 2012
LiveCode is very busy on startup and seems to have difficulties handing over control to the user. This will solve it:
send "focusIn" to fld "Your Field" in 200 millisecs
This might even work with 0 millisecs.
Perhaps it is better to change your approach slightly. Create another handler in your field:
put empty into me
select before me
and have this in your stack:
send "typeIt" to fld "Your Field" in 200 millisecs
The reason is that the first field is automatically focused when the card opens and this might cause some additional problems. You might want to make sure that your script isn't running twice.
Economy-x-Talk Consulting and Software Engineering
Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za
On 14 mrt 2012, at 13:53, André Bisseret wrote:
> On card 1 of a stack I have a field whose script is the following :
> on focusIn
> put empty into me
> select before me
> type "Bonjour"
> select empty
> end focusIn
> on openStack, I send "focusin" to this field.
> This is working as expected in the IDE
> But does not work in the standalone
> With the standalone, after a while "Hello" is written all at once.
> Seems like the typing is executed but invisibly, and then, the entire word is put in the field.
> What am I missing ?
> Thanks in advance for any idea.
> Best regards from Grenoble
More information about the Use-livecode