Livecode listener
J. Landman Gay
jacque at hyperactivesw.com
Wed May 27 13:14:50 EDT 2015
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 <bonnmike at 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 | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
More information about the use-livecode
mailing list