Last shot then I'll quit buggin.
The reason you can't save or do anything with the stack from revenet is because its set to modeless. Need to toplevel the stack (either from the mssage box or double clicking the stack in the app browser) at which point you can check it out to your hearts content.
After looking it over, I made a very quick and dirty stack that shows pretty much every single event. (the 4w stack filters out quite a bit, my quick test stack filters nothing) But it looks like it wouldn't be too awful difficult to make one of your own.
I have a stack with 2 buttons and a field. The first button has the following.
Code: Select all
local tWatching
on mouseUp
-- setup my flag for watching or not
if tWatching is empty then put false into tWatching
put not tWatching into tWatching
-- set the button label to match the current state of the flag
set the label of me to "Watching: " & tWatching
-- handler that starts the watching
WatchIt
end mouseUp
command WatchIt
if tWatching then -- if tWatching is true
put empty into field 1 -- empty my output field on each start of watch
set the messageMessages to true -- set stack to receive messages about messages
-- insert the script of my other button into the front so it can catch things
insert script of btn "fScriptB" into front
else -- if tWatching is false
set the messageMessages to false -- stop receiving messages about messages
remove script of btn "fscriptb" from front -- remove the other button script from the front
end if
end WatchIt
Then the script that is in my button "fScriptB" is as follows.
Code: Select all
on messageHandled pType, pMessage
-- does exactly what it seems like. Puts the message name, and the message type into field 1.
put pMessage && pType & cr after field 1 of stack "mbWatcher"
end messageHandled
Went ahead and made a standalone to make sure none of this stuff requires the IDE to be resident and it worked fine.
No way at this moment to test on android or IOS though so YMMV. (you should check out the 4w stack. It gave me a headache but worth the study)
Like I say, my sample is the absolute bare minimum, but hey. It works. Oh, and I also put the following into the closestack handler.
Code: Select all
if "fscriptb" is in the frontscripts then remove script of button "fScriptB" from front