Page 1 of 1

Splash stacks - closing the splash

Posted: Tue Oct 30, 2012 5:11 pm
by Simon Knight
Hi,

I am attempting my first standalone that saves data. I have elected to use the splash stack method and have entered the following code into the splash stack:

Code: Select all

On OpenStack
   Send "DelayClose" to me in 15 seconds
end OpenStack

On DelayClose
   go to stack "WeaponsControlMain"
   close me
end DelayClose
While this works it suffers from the major problem that I have to comment out the first line within 15 seconds of it opening otherwise it closes on me. Does anyone have a more elegant way of opening then closing a stack that still allows editing of the stack in the IDE?

Re: Splash stacks - closing the splash

Posted: Tue Oct 30, 2012 5:54 pm
by bn
Hi Simon,

try the environment:

Code: Select all

on openStack
   if the environment = "standalone application" then send "DelayClose" to me in 15 seconds
end openStack
Kind regards
Bernd

Re: Splash stacks - closing the splash

Posted: Wed Oct 31, 2012 3:14 pm
by Simon Knight
Hi Bernd,

Excellent! Many thanks - yet again :-)

best wishes

Simon