Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!yale!husc6!m2c!wpi!jayvana From: jayvana@wpi.wpi.edu (Jay van Achterberg) Newsgroups: comp.sys.mac.hypercard Subject: Re: Trapping Command-"." during Printing Message-ID: <7199@wpi.wpi.edu> Date: 25 Jan 90 02:41:22 GMT References: <8537@portia.Stanford.EDU> Reply-To: jayvana@wpi.wpi.edu (Jay van Achterberg) Distribution: comp.sys.mac.hypercard Organization: Worcester Polytechnic Institute, Worcester ,MA Lines: 26 >> I currently have a print button that hides the card buttons and >> prints the last two cards of the stack. Once printing is complete >> the buttons are revealed so that the user can navigate through the >> stack. The printing is working fine, but if the user types >> Command-"." during the printing process, the buttons remain hidden >> and the user can no longer navigate through the stack. Is there a >> way to trap for the Command-"." I came across the same problem a while back. My solution was to make a background script called "Restore" that would show all the buttons that were hidden by the printer button. When the printer button was pressed, I showed the message box and put Restore into it. Then, if the user (who is really only me) ever hit command period, I would see my buttons missing, see the message box with restore in it, and remember that I just had to hit to re-display my buttons. If the user didn't hit command-period, then the printer button will call the Restore script after it finishes printing. As long as the user is warned that he/she must hit return if something like this happens, I'd say that this is an acceptable [:-(] solution to the problem. If anyone has better/other solutions, please let me know/post them here! -Jay