*************** > Date: Thu, 06 Mar 2003 23:50:07 -0800 > Subject: Re: Import snapshot snafu > From: Richard Gaskin <[EMAIL PROTECTED]> >> on mouseUp >> import snapshot from rect "28,90,118,128" of window id 475519808 >> end mouseUp >> >> Why doesn't it work? > > What happens when you run it? If there's no visible error, what is the > value of "the result" after you execute the "import" statement? ---------- Well, when I make the script it errors like this:
� There was a Script Compile Error at 11:26:47 AM Error description: Handler: bad command Object: button id 1006 of card id 1002 of stack "/Macintosh HD/Desktop Folder/MyRev Stacks/TTS Speech Test.rev" -------------------- import snapshot from rect "28,90,118,128" of window id 475509520 -------------------- Value: 475509520 ...but the value IS the value of the current window ID for the stack I specified, because I checked it. No other value for the result at all. I closed out the stacks, even closed Rev, then went back and reopened everything. Of course, that means the window id changes so I rewrote the script as shown in the error report (still doesn't work) below. Note the new window id, which is correct as I checked it separately in the Message Box (put the windowID of stack "Practice 1"). � There was an Execution Error at 11:35:47 AM Error description: Object: does not have this property Object: button id 1006 of card id 1002 of stack "/Macintosh HD/Desktop Folder/MyRev Stacks/TTS Speech Test.rev" -------------------- import snapshot from rect "28,90,118,128" of window id (windowID of stack "Practice 1") -------------------- Value: 447832976 ...but of course, the object (stack window) actually DOES have the property and reports it accurately according to the error dialog. The command WILL reproduce a SCREEN image given the proper screen rect, but errors if I try to reproduce an image using coordinates inside the specified window. It must be the command that is failing, even though it is apparently written correctly according to the Transcript Dictionary. Is it a bug? Ken N. _______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
