Mouse click ignored on GHcanvas after System.*.Process.Start

After calling e.g.

System.Diagnostics.Process.Start(“https://duckduckgo.com”)

in a GH component (custom or in VB script component), the mouse buttons are blocked/ignored on the GH canvas only:

Post state:

  • browser has been started with url (by windows association)
  • mouse left/right buttons clicks on canvas => ignored
  • mouse scroll wheel on canvas => responsive zoom
  • everything else outside GH canvas (e.g. ribbon, save button etc.) => responsive

Already tried:

  • close browser tab => mouse clicks still unresponsive
  • close browser => mouse clicks still unresponsive
  • edge browser as default browser (orig. FF) => mouse clicks still unresponsive

However, problem does not occur with:

System.Diagnostics.Process.Start(“notepad”)

Any one?

Found a workaround for the time being by defining explicitly the execution program like e.g. firefox.exe:

System.Diagnostics.Process.Start(“Firefox.exe”, “https://duckduckgo.com”)

However, this doesn’t launch your default browser. Maybe using command line console as the program does the trick, but I haven’t tried that.

So it seems that Grasshopper somehow doesn’t like a process that executes by “file association”.

Greeting

try:

System.Diagnostics.Process.Start("explorer.exe", "http://google.com");

didn’t try it though…just a shot in the dark

Ben

What the hell, it works … it kind of … makes sense :slight_smile:
Tnx

1 Like