Run a program

21 views
Skip to first unread message

kalons

unread,
Mar 10, 2010, 1:33:46 PM3/10/10
to Chromium-extensions
I want to create an extension that copies the current selection (if
any, as HTML) to the clipboard, then runs an external application,
passing some parameters to it -- basically the equivalent of this
Firefox extension: http://www.kinook.com/Download/URFFExtension.xpi

which does

if (window._content.document.getSelection() != "")
this.copySelToClipboard();

for the first part and

this.run(this.getURLocation(), parameters);

for the second.

How to create a Chrome extension that does this?

Thanks.

PhistucK

unread,
Mar 11, 2010, 2:32:26 PM3/11/10
to kalons, Chromium-extensions
In order to execute an external application, you would have to use NPAPI (which is some sort of a C++ DLL wrapper for native code). Google it.

☆PhistucK



--
You received this message because you are subscribed to the Google Groups "Chromium-extensions" group.
To post to this group, send email to chromium-...@chromium.org.
To unsubscribe from this group, send email to chromium-extens...@chromium.org.
For more options, visit this group at http://groups.google.com/a/chromium.org/group/chromium-extensions/?hl=en.


Reply all
Reply to author
Forward
0 new messages