Messagemessages

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9833
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Messagemessages

Post by FourthWorld » Thu Sep 17, 2020 4:16 pm

I'm not familiar with anything prefab for mobile, but you're welcome to pull anything out of 4W Flight Recorder that may be useful.

For simple logging a frontscript trapping medsageHandled is most of what you need, along with a way to turn it on and off as you already have above (just add a line in each handler for setting the messageMessages to true/false).
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Messagemessages

Post by mwieder » Thu Sep 17, 2020 4:23 pm

...but do note that you'd benefit from looking at the code for either 4W Flight Recorder and/or the built-in message watcher stack because the functions and mechanism for handling this aren't documented.

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Re: Messagemessages

Post by marksmithhfx » Thu Sep 17, 2020 5:44 pm

FourthWorld wrote:
Thu Sep 17, 2020 4:16 pm
I'm not familiar with anything prefab for mobile, but you're welcome to pull anything out of 4W Flight Recorder that may be useful.

For simple logging a frontscript trapping medsageHandled is most of what you need, along with a way to turn it on and off as you already have above (just add a line in each handler for setting the messageMessages to true/false).
Thanks, I'll add it to the list of "projects todo" once I've finished the current one. Sounds like a useful exercise to try given all of the options and exclusions you are supporting. I did have a look at the code... it looked very well written and easy to follow.

Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am
Location: London, UK

Re: Messagemessages

Post by marksmithhfx » Thu Sep 17, 2020 5:46 pm

mwieder wrote:
Thu Sep 17, 2020 4:23 pm
...but do note that you'd benefit from looking at the code for either 4W Flight Recorder and/or the built-in message watcher stack because the functions and mechanism for handling this aren't documented.
Agreed, there was a lot of useful stuff in Richard's stack.
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3581
Joined: Mon Jan 22, 2007 7:36 am
Location: Berkeley, CA, US
Contact:

Re: Messagemessages

Post by mwieder » Thu Sep 17, 2020 11:47 pm

Understatement follows :shock:
Agreed, there was a lot of useful stuff in Richard's stack.

Post Reply

Return to “Talking LiveCode”