2012-03-27 15 views

Antwort

1

Verwenden runEncodedCommand in einem macro zum Komodo Befehl Ausgabefenster drucken:

komodo.assertMacroVersion(2); 
if (komodo.view && komodo.view.scintilla) { komodo.view.scintilla.focus(); } 

var foo = "echo " + typeof(ko); 
ko.run.runEncodedCommand(window, foo); // Prints object; 
+0

Aber das ist JavaScript. Ich wollte vom Python-Programm aus drucken. – Pablo

+1

Es gibt eine [Python Macro API] (http://community.activestate.com/forum/python-macro-access-command-output-window), die ebenfalls drucken kann. Ich hoffe das hilft. –

+0

Ich bin auf diesen Thread gestoßen, aber leider kann ich ihn nicht benutzen, da der Fehler 'xpcom' Modul nicht gefunden hat und ich nicht sicher bin, wie ich ihn installieren soll. – Pablo