Mac OS X - how to darken screen?

Klaus on-rev klaus at major.on-rev.com
Fri Sep 17 13:22:37 EDT 2010


Hi all,

>>  I want to darken my Mac screen (not just a stack window) the way a slide
>> presentation would do it at its beginning, and then bring it up again to
>> reveal 
>> what has been changed. Does anyone have an AppleScript or a shell() command
>> for this that can be run from Rev?

something like this should work:

1. set some properties for "the templatestack":
the rect to the screenrect
backgroundcolor to black
loc to the screenloc
blendlevel to 100 = completely transparent

2. create stack "the_cover"
3. set blendlevel in a repeat loop up to 0**
4. Now do your work behind this stack
5. set blendlevel of htat stack in a repeat loop to 0**
6. Close stack "the_cover"

** Experiment a bit wiht the "step" in the repeat loop, maybe "step 5" or "step 10" will do

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major.on-rev.com




More information about the use-livecode mailing list