Thanks Adam and Tim, I think I'm missing something obvious, but I can't get this working in Radian. The following (vb.net) works perfectly in Manifold: Imports Manifold.Interop.Scripts Imports System.Windows.Forms Class Script Shared Sub Main dim myString as string = "Hello" myString = Clipboard.GetText() Context.Application.MessageBox(mystring, "Clipboard contents") Clipboard.SetText("here, is, some, text for the clipboard") End Sub End Class So, I can get text from the clipboard, and I can put text on the clipboard. (Note it references System.Windows.Forms). Now, trying the same in Radian, I get a "Clipboard is not declared" error. What am I missing? (It coughs if I add "Imports System.Windows.Forms" - can't find the namespace) ' VB.NET Imports System.Windows Class Script Shared Manifold As Manifold.Context Shared Sub Main() dim myString as string = "Hello" myString = Clipboard.GetText() Manifold.Application.Log(myString) 'Manifold.Application.OpenLog() End Sub End Class
|