Page 1 of 1

Iconic Problem

Posted: Tue Nov 25, 2008 8:40 am
by alemrantareq
Hi everybody,

There are some games which changes screen resolution on startup. I've made a script for my stack -

on desktopChanged
set the iconic of me to false
end desktopChanged

But when I start a game, it changes the screen resolution in 640X480 but my stack wont restore if minimized.

I've alse made a script for my stack -

on escapeKey
set the iconic of me to false
end escapeKey

But it also not works when I press escape key.

Pls, solve me.

Posted: Fri Nov 28, 2008 12:47 am
by Mark
Hi alemrantareq,

It looks like you've put your script in the wrong place. If you put your script in a card script, "me" doesn't refer to the stack but to the card and setting the iconic of a card causes an execution error.

Please, make sure that you have your script at stack level. If your stack is not always the topstack, you might want to insert your script into the backscripts to make sure that the desktopChanged message is trapped.

While your stack is iconified, it isn't focused and can't trap the escapeKey message.

Best regards,

Mark