New topic: Append Clipboard to String?
<http://forums.realsoftware.com/viewtopic.php?t=37044> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message barrytraver Post subject: Append Clipboard to String?Posted: Wed Jan 12, 2011 9:31 am Joined: Fri Sep 30, 2005 1:53 pm Posts: 629 Location: Philadelphia, PA It sounds easy to do, but I'm having trouble making it work. I start with text in TextArea1 and then I put text in the clipboard. When I have done that by pressing ctrl-C (say, I am Web browsing and have highlighted text to be saved), I want essentially this to happen: TextArea1.Text = TextArea1.Text + Clipboard1.Text That is, I want the new highlighted-and-copied text to be APPENDED to what is already in TextArea1.Text. Here's some code I tried which ALMOST works: Code: Dim Clipboard1 as New Clipboard Dim c1, s As String If Str ( Asc ( Key ) ) = "3" Then If Clipboard1.TextAvailable Then TextArea1.Text = TextArea1.Text + Clipboard1.Text Clipboard1.Close Return False Else Clipboard1.Close End If End If One big problem with that is that there is no reasonable place to put that code. (Clipboard1.Change might work, except that there is no such event.) Any advice? Barry Traver Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
