Ah k, thx!  Sorry for steering you slightly wrong skip.  The basic premise
should still work, but you'll have to jump through the extra hoops of
checking the keys each time through. Should still be plenty fast. (game
loops do the same thing, and do considerably more than what you're looking
at while still retaining enough speed.)

On Wed, May 27, 2015 at 11:14 AM, J. Landman Gay <jac...@hyperactivesw.com>
wrote:

> You'll have to walk through all the keys when both retrieving and setting
> the array. The default when getting or setting the clipboarddata without
> specifying a key is to return only the plain text. The array is lost.
>
> On 5/26/2015 9:58 PM, Magicgate Software - Skip Kimpel wrote:
>
>> Oooo... I will try that tomorrow!
>>
>> Is there any way to save an alt+f keystroke to the clipboard data?  I am
>> trying to automate some tasks during this entire exercise and this is also
>> one of my hurdles.
>>
>> Thanks again,
>>
>> SKIP
>>
>> On Tue, May 26, 2015 at 5:59 PM, Mike Bonner <bonnm...@gmail.com> wrote:
>>
>>  One way would be to use a send in time loop.  Check to see if the data in
>>> the clipboard array is different, if so, act.  Some untested quick and
>>> dirty code follows.
>>>
>>> command checkClipboard
>>> if sLastClipA is empty then
>>> put the clipboarddata into sLastClipA
>>> -- do something with the data in sLastClipA
>>> else
>>> repeat for each key tKey in the clipboarddata
>>>   -- check the data in the keys here, against the keys you saved in
>>> sLastClipA
>>> -- if there is a change, do something with the data in the clipboarddata
>>> end if
>>> put the clipboarddata into sLastClipA
>>>
>>> send "checkClipboard" to me in 100 millisec
>>> end checkClipboard
>>>
>>
>
> --
> Jacqueline Landman Gay         |     jac...@hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
>
> _______________________________________________
> 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
>
_______________________________________________
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

Reply via email to