Shortcutting to screendump despite opened menus ?

Phil Davis davis.phil at comcast.net
Sun Apr 2 23:39:14 EDT 2006


Hi Kresten,

Kresten Bjerg wrote:
> Hi Phil
> 
> The frontscript idea sounds good. But from the documentation it seems
as if it is only objects which can be send to frontscript. So when it is
a single handler in a very very long substackscript, ..????????.... is
there a way to send a single handler to frontscript ?

Yes. As Jim Ault suggested, put that one handler into the script of a 
button, and insert the script of that button into the front.

Phil

> 
> on commandKeyDown theKey 
>   global phenodate
>   if theKey is "y" then  
>       put the snappath of this stack & "/" & phenodate && the time  & ".jpg" into navn
>       export snapshot from rect "0,0,1021,764" to file navn as JPEG
>   else pass commandKeyDown
> end commandKeyDown
> 
> Kresten




More information about the use-livecode mailing list