Copying and pasting text into a word processing document

dunbarx at aol.com dunbarx at aol.com
Sun Mar 4 16:57:41 EST 2012


Sorry, the clipBoardData is a property, of course:



on mouseup
get the clipBoardData
 if the hilite of the target then set the clipBoardData to it & return & the short name of the target  --"name" option

if the hilite of the target then set the clipBoardData to it & return &  the yourProp of the target  --"name" option
-- this does not handle unchecking. Does this matter? A somewhat larger issue.
end mouseUp



-----Original Message-----
From: dunbarx <dunbarx at aol.com>
To: use-livecode <use-livecode at lists.runrev.com>
Sent: Sun, Mar 4, 2012 4:55 pm
Subject: Re: Copying and pasting text into a word processing document


Charles.


I don't know how your data is set up. Do you have fields associated with each 
checkBox? Is the name of the checkBox the actual statement? Or perhaps a 
property of each checkBox holds the statement?


Anyway, if you have a few checkBox buttons, each with a behavior or maybe a 
mouseUp handler in the card:


on mouseup
 if the hilite of the target then put the short name of the target after the 
clipBoardData --"name" option
 if the hilite of the target then put the yourProp of the  target after the 
clipBoardData --"property" option
-- this does not handle unchecking. Does this matter? A somewhat larger issue.
end mouseUp


And in another button:


on mouseUp
open file "yourFile"
write the clipboardData to file "yourFile"
close file "yourFile"
end mouseup


Craig










-----Original Message-----
From: Charles Szasz <cszasz at mac.com>
To: use-livecode <use-livecode at lists.runrev.com>
Sent: Sun, Mar 4, 2012 2:47 pm
Subject: Copying and pasting text into a word processing document


I have completed a number of projects with Rev but none has every involved 
creating an app that copies text to a clipboard to paste into a word processing 
document. 

I want to code an small utility app where the user selects statements by 
checking a checkbox for each statement so that it is put into the clipboard 
where the user can then paste them into a word document. I do not want to 
reinvent the wheel to code this. Any suggestions on how to do this?  By the way, 

I am using Rev 4.0. 

Charles Szasz
cszasz at mac.com





_______________________________________________
use-livecode mailing list
use-livecode at 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 at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list