Grasshopper

algorithmic modeling for Rhino

hi,

is it possible to send a mouseclick to a window of a running process via the vb.net componen? i found some vb.net examples, but i didn't get them working in grasshopper.

seems that i need to import the user.dll library?! but i don't know how to do that...

Views: 509

Replies to This Discussion

This is quite difficult. There are probably ways of using the win32 api to do this, but I wouldn't be surprised if it ended up not working half the time anyway because of security reasons.

What problem are you trying to solve actually?

i use an external tool a former fellow student programmed to add or modify rhino geometry by clicking on different buttons in an external window. this interrupts by workflow, because i create geometry with grasshopper, then have to push a button in the toolwindow and then to go on with the new added geometry in grasshopper again.

Is this other tool a rhino plugin? In which language was it written?

it was written in vb. you have to start it with an .exe-file and it gets access then to the open rhinodocument from outside. i don't actually know, whether one calls it a plugin then.

It isn't a plugin if it's an exe. It's probably VB5/VB6 accessing RhinoScript through COM?

If it's made in VB.NET, then there may be a small chance you can get the assembly and navigate your way to the buttons that need pressing and then call Button.PerformClick() on them. But that requires a .NET exe.

I think you're out of luck in this case, there do exist automation tools on Windows that can start apps and press certain buttons, but I do not know which ones are good and which ones can be controlled via command-line arguments.

ok, thanks for your reply. i'll try out or find another solution

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service