Bringing invisible main stack to front on start in IDE

J. Landman Gay jacque at hyperactivesw.com
Sat Mar 14 14:43:59 EDT 2015


On 3/14/2015 12:54 PM, Dr. Hawkins wrote:
> when my stack loads, the mainstack detects the development environment, and
> uses a "send openMcp2 to me in 0" to cause the script editor to open a
> couple of main scripts and position that window
>
> I've tried putting "open stack mcp" and   send "open stack mcp" to me in
> 0   at the end of that script, but that just doesn't happen
>
> Is there a way to do this?

I usually create a separate handler to do the task (which it sounds like 
you've done) and call that at the end of a preOpenCard or openCard 
handler. But you have to give the IDE enough time to finish loading and 
setting up everyhing, so instead of sending in 0, try sending in 2 or 
more ticks.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the Use-livecode mailing list