Using launch() to start chrome.exe

Hello @jorgensen ,

This works on W10 with Processing 4.3:

/* 
 * Launch Example 1
 * v1.1.1
 * GLV 2024-07-14
*/

void setup() 
  { 
  //Works:
  String s = "\"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe\" www.howtogeek.com";
  println(s);
  launch(s);
  }

I had to modify reference below for new location and spaces.

Reference:

There may be other ways to do this.

String / Reference / Processing.org will explain this:

:)

1 Like