open standalone with field selected?
Chipp Walters
chipp at chipp.com
Mon Nov 7 02:33:06 EST 2005
Hi Rich,
try this:
send "selectMyField" to this stack in 100 milliseconds
then:
on selectMyField
select the text of field "find"
end selectMyField
You can tweak the 100 milliseconds up or down depending on the wait.
best,
Chipp
Rich Lague wrote:
> I have been trying to create a standalone that will open with a field
> already selected. I also want the stack to open to a random card. The
> application is the kind with a 'splash screen' main stack.
>
> I have tried several approaches between putting commands in
> preOpenStack or in openStack. The script below opens the Rev stack to a
> random card, but once it is compiled into a standalone app it only opens
> to the first card. It also does not put "find" into the find field, and
> the text is not selected. I have put "select the text of field "find""
> in the openCard handler of the stack. So, when a new card is opened the
> text of the find field is selected. But it does not work when the
> standalone is opened. What am I doing wrong?
>
> Thanks so much!
> Rich Lague
>
> on openStack
> -- lock screen
> put random(the number of cds) into aNum
> go cd aNum
> -- go cd (aNum + 1)
> put "find" into field "find"
> select the text of field "find"
> -- unlock screen
> end openStack
More information about the use-livecode
mailing list