Ist es möglich, ein CAM-Script anzuweisen, zum Schluss ein weiteres (Windows-)Programm zu starten?
Externes Programm starten
Externes Programm starten
Von einem QCAD/CAM Benutzer:
Re: Externes Programm starten
Ja, Sie können zum Beispiel in der Funktion endExport das Qt API benutzen, um einen externen Prozess zu starten:
Beispiel Datei "scripts/Cam/CamConfigurations/LaunchExternalApp.js":
Beispiel Datei "scripts/Cam/CamConfigurations/LaunchExternalApp.js":
include("GCode.js"); function LaunchExternalApp(documentInterface, newDocumentInterface) { GCode.call(this, documentInterface, newDocumentInterface); } LaunchExternalApp.prototype = new GCode(); LaunchExternalApp.prototype.endExport = function() { GCode.prototype.endExport.call(this); // launch external application to display the file in a text editor: var process = new QProcess(); var args = [ "-t", this.fileName ]; process.start("/usr/bin/open", args); }