What message come from "quit"
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
What message come from "quit"
Hello everyone,
I'd like to know what messages follow closeCard during a quit. I need to process some final information.
We've got:
closeCard
shutDown
closeStack
closeStackRequest
probably others. I guess I want the order these messages (others) come in.
I caught a glimpse of closeStack but I'm guessing it's no place for a post command (I'm posting data) as the data never got posted.
Thanks for info.
Simon
I'd like to know what messages follow closeCard during a quit. I need to process some final information.
We've got:
closeCard
shutDown
closeStack
closeStackRequest
probably others. I guess I want the order these messages (others) come in.
I caught a glimpse of closeStack but I'm guessing it's no place for a post command (I'm posting data) as the data never got posted.
Thanks for info.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: What message come from "quit"
Hi Simon,
Have you tried shutDownRequest already?
Mark
Have you tried shutDownRequest already?
Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
Re: What message come from "quit"
Hi Mark,
Thanks, I'll try that.
But now I'm interested in that actual order of messages after "quit". As I just found out (I Think) that preOpenCard may come before preOpenStack(?).
Wait...Am I crazy to think that the message path is Always active? If I have a button with "on preOpenStack answer "HELLO"" it will trigger before a card or stack script that says "on preOpenStack answer "Im a stack script""?
Simon
Thanks, I'll try that.
But now I'm interested in that actual order of messages after "quit". As I just found out (I Think) that preOpenCard may come before preOpenStack(?).
Wait...Am I crazy to think that the message path is Always active? If I have a button with "on preOpenStack answer "HELLO"" it will trigger before a card or stack script that says "on preOpenStack answer "Im a stack script""?
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: What message come from "quit"
Hi Simon,
From what I see in the message watcher it is:
preOpentStack
preOpenCard
openStack
openCard
And the receiver is the actual card and from there on the message passes through the message hierarchy.
Kind regards
Bernd
From what I see in the message watcher it is:
preOpentStack
preOpenCard
openStack
openCard
And the receiver is the actual card and from there on the message passes through the message hierarchy.
the button is not in the message path and it would not get "preOpenStack". When you press a button it starts a message path where the first receiver is the button and then on. (Not considering a front script)If I have a button with "on preOpenStack answer "HELLO"" it will trigger before a card or stack script that says "on preOpenStack answer "Im a stack script""?
Kind regards
Bernd
Re: What message come from "quit"
..........
Last edited by [-hh] on Wed Aug 13, 2014 2:19 pm, edited 1 time in total.
shiftLock happens
Re: What message come from "quit"
Wow Hermann,
shutdownRequest Card 1402861353474
shutdownRequest Stack 1402861353477
shutDown Card 1402861353479
closeCard Card 1402861353479
closeStack Card 1402861353479
focusOut Card 1402861353480
Note the shutdownRequest Stack only works when using "quit" not the titlebar "X".
Now this was a very brute method of tracking messages, I couldn't figure out a way to record the messages watcher. Is there a way?
Thanks both of you.
Simon
shutdownRequest Card 1402861353474
shutdownRequest Stack 1402861353477
shutDown Card 1402861353479
closeCard Card 1402861353479
closeStack Card 1402861353479
focusOut Card 1402861353480
Note the shutdownRequest Stack only works when using "quit" not the titlebar "X".
Now this was a very brute method of tracking messages, I couldn't figure out a way to record the messages watcher. Is there a way?
Thanks both of you.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: What message come from "quit"
4W Flight Recorder (available through RevNet) offers more flexible options for tracking messages than the Message Watcher, with a more readable display.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: What message come from "quit"
Hi Richard,
When is RevNet going to return? It's still the Special Edition.
Simon
When is RevNet going to return? It's still the Special Edition.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- VIP Livecode Opensource Backer
- Posts: 10052
- Joined: Sat Apr 08, 2006 7:05 am
- Contact:
Re: What message come from "quit"
Oops, my bad- yes, I need to post the new one ASAP (no one else had noticed and with my client work is just forgotten).
I'm the meantime, here's the direct link to that and more:
http://fourthworld.net/revnet/devolution/
I'm the meantime, here's the direct link to that and more:
http://fourthworld.net/revnet/devolution/
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
Re: What message come from "quit"
..........
Last edited by [-hh] on Wed Aug 13, 2014 2:18 pm, edited 1 time in total.
shiftLock happens
Re: What message come from "quit"
Hi Hermann,
Yeah, that's is just about the way I did it.
I think I have my answer now. closeStack comes after closeCard but doesn't like to do anything. Maybe I had it set up wrong.
Simon
Yeah, that's is just about the way I did it.
I think I have my answer now. closeStack comes after closeCard but doesn't like to do anything. Maybe I had it set up wrong.
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: What message come from "quit"
..........
Last edited by [-hh] on Wed Aug 13, 2014 2:18 pm, edited 1 time in total.
shiftLock happens
Re: What message come from "quit"
With very few exceptions, almost all engine messages are sent to the current card.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
Re: What message come from "quit"
..........
Last edited by [-hh] on Wed Aug 13, 2014 2:18 pm, edited 1 time in total.
shiftLock happens
Re: What message come from "quit"
All messages sent to the card will traverse the message hierarchy until they are intercepted. That includes all the pre- and open- messages.
The only messages I can think of offhand that don't go to the card are callback messages which are sent to a player control. (A script needs to set this up specifically.) It's noted in the dictionary. There may be others I can't think of right now, and that's why I was vague about it. ☺
The only messages I can think of offhand that don't go to the card are callback messages which are sent to a player control. (A script needs to set this up specifically.) It's noted in the dictionary. There may be others I can't think of right now, and that's why I was vague about it. ☺
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com