Hi André,

LiveCode is very busy on startup and seems to have difficulties handing over 
control to the user. This will solve it:

on openStack
  send "focusIn" to fld "Your Field" in 200 millisecs
end openStack

This might even work with 0 millisecs.

Perhaps it is better to change your approach slightly. Create another handler 
in your field:

on typeIt
   put empty into me
   select before me
   type "Bonjour"
   select empty
end typeIt

on focusIn
  typeIt
end focusIn

and have this in your stack:

on openStack
  send "typeIt" to fld "Your Field" in 200 millisecs
end openStack

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.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Download the Installer Maker Plugin 1.7 for LiveCode here http://qery.us/za

On 14 mrt 2012, at 13:53, André Bisseret wrote:

> Bonjour,
> 
> 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
> 
> André



_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to