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: Klaus, FourthWorld, heatherlaine, kevinmiller

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

Suppress All Messages

Post by richmond62 »

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: 14325
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Suppress All Messages

Post by Klaus »

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: 10430
Joined: Fri Feb 19, 2010 10:17 am

Re: Suppress All Messages

Post by richmond62 »

Thank you very much indeed.
Post Reply