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: 10065
Joined: Sat Apr 08, 2006 7:05 am
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: 3582
Joined: Mon Jan 22, 2007 7:36 am
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: 936
Joined: Thu Nov 13, 2008 6:48 am

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 15.6 (Sequola), Xcode 15.3, LC 10.0.2, iOS 18.6.2

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 936
Joined: Thu Nov 13, 2008 6:48 am

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 15.6 (Sequola), Xcode 15.3, LC 10.0.2, iOS 18.6.2

mwieder
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3582
Joined: Mon Jan 22, 2007 7:36 am
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