Grasshopper

algorithmic modeling for Rhino

Hi Everyone

Is there any way That Grasshopper can retrieve a text in the clipboard and give it out?

I want to copy a specific command in the clipboard and then trigger an event in grasshopper with that

Thank you in advance

Views: 891

Replies to This Discussion

System.Windows.Forms.Clipboard.GetText() provides that functionality. So put that in a VB component and you're good to go.

--

David Rutten

david@mcneel.com

Tirol, Austria

Attachments:

Wow Thank you david :)

I searched this before and When I copied it nothing came out

but I just tried updating the clipboard and the definition didn't :( so I only had one hope and it was adding a time to the vb :) And yesss That's the way it updates :)

Thanks a million:)

If you add some timer logic to the VB code, it won't cause an update unless the Clipboard content actually changes. See attached.

Testing interval is hard-coded to 1000 milliseconds which means that on average the response time of the component is half a second.

--

David Rutten

david@mcneel.com

Tirol, Austria

Attachments:

Wow :) That's the best thing i'll get :) Thank you

Your the king of the codes :P

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service