gaSystem(string)

Syntax

gaSystem(string)

Example

function draw()
    gaBackground(0.0,1.0)

    ofSetColor(255)
 
    ofPushMatrix()
    ofTranslate(OUTPUT_W/2,OUTPUT_H/2,0)
    ofRotateZ(45)
    ofRect(-300,-10,600,20)
    ofRotateZ(-90)
    ofRect(-300,-10,600,20)
    ofPopMatrix()
end

function keyReleased()
    // press x key (with GAmuza output window in focus) to launch firefox
    if gaKey() == string.byte('x') then
        // on OSX
        gaSystem("open /Applications/Safari.app")
    end
end

Description

The gaSystem function call to the system c function; you can open programs or execute scripts with this function. USE IT AT YOUR OWN RISK

Parameters

string