LoginSignup
1
2

More than 5 years have passed since last update.

processingでアプリを起動

Posted at

processingの実行中に何かのタイミングでPC内の別のアプリケーションを起動したい場合があります。
processingの実行と同時にGoogle Chromeが起動するようにしてみました。


import java.io.IOException;

Runtime rt;

void setup () {

    size (800, 800);

    try {
        rt = Runtime.getRuntime ();
        rt.exec ("C:/Program Files (x86)/Google/Chrome/Application/chrome.exe");
    } catch (IOException ex) {
        ex.printStackTrace ();
    }

}

void draw () {

}

1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2