Suppress All Messages

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Suppress All Messages

Post by richmond62 » Sat Jan 18, 2025 6:20 pm

So, the menu item Development/Suspend Messages does NOT suspend ALL messages: preOpenControl and openControl will still run in a stack.

So if I am sent a stack from a source I don't trust and open it, an openStack or openCard script could does something malicious on my computer (such as delete all the files in my 'Documents' folder.

I wonder if there is a way to block ALL the scripts in a stack from firing?

Klaus
Posts: 14189
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Suppress All Messages

Post by Klaus » Sat Jan 18, 2025 6:40 pm

A little script like this will do the work:

Code: Select all

...
lock messages
go stack "path/to/stack.livecode"
...
I'm using this for more than 20 years. :-)

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10094
Joined: Fri Feb 19, 2010 10:17 am

Re: Suppress All Messages

Post by richmond62 » Sat Jan 18, 2025 9:01 pm

Thank you very much indeed.

Post Reply