On 2013-04-29, at 10:38 AM, Richmond wrote: > On 04/28/2013 09:43 PM, Paul Hibbert wrote: >> Didn't we have this discussion a short while ago? >> >> I tried Jacque's suggestion and (after removing the 'pass copyKey') it >> worked fine in a standalone, just not in the IDE… >> >>> On 3/31/13 3:07 PM, Richmond wrote: >>>> I am aware one can do this: >>>> >>>> on copyKey >>>> answer "nice try, chum" >>>> pass copyKey >>>> end copyKey >>>> >>>> although, on Macintosh it does not stop command-C working! and the >>>> answer dialog doesn't appear! >>>> >>> It should work in a standalone or if you suspend the IDE. The IDE traps and >>> uses it during development. >>> >>> -- >>> Jacqueline Landman Gay | jac...@hyperactivesw.com >>> HyperActive Software | http://www.hyperactivesw.com >> >> Paul >> >> On 2013-04-28, at 11:09 AM, Richmond wrote: >> >>> I have a fantasy (???) and would like to implement something like >>> this in either sa stack or car script: >>> >>> on copy >>> don't >>> end copy >>> >>> or something like this: >>> >>> on copy >>> set the clipboardData to "No Luck Chum" >>> end copy >>> >>> this would be a way to block all the multiple ways of copying text >>> end-users have in a Demo. >>> >>> but of course as soon as I write a script with "on copy" the thing throws a >>> wobbly. >>> >>> Richmond. >>> >>> _______________________________________________ >>> > > Now, in my 'thang' I have a series of buttons (one on each page - big > surprise) > > that contain scripts something like this: > > on mouseUp > copy fld "crapToBeCopied" > end mouseUp > > so copying can be done by end-users without recourse toa physical copyKey > > now how would : block that copying actions without having to disable every > blasted button > but editing code? > > Richmond. > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode
Richmond, Is the code consistent enough that you can use the [Edit > Find and Replace] feature? Something like… Find: copy fld Replace with: --Demo Disable copy fld …Then still use the copyKey trap in the stack script. Find & Replace can be a really powerful tool. Paul _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode