Thank you much Mark for your reply. I tried your solutions but they don't seem to work. Even when changing the approach according to your advice I get the same result : any solution works well in the IDE, but typing does not occur (visibly) in the standalone; "Bonjour" keeps appearing all at once, after a while.
But, well, it's not very important in this case; I don't want to waste your time with that Just strange (an a bit annoying) to discover this difference between the IDE' and standalone' behavior. Best regards André Le 14 mars 2012 à 14:17, Mark Schonewille a écrit : > 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 _______________________________________________ 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
