Can't integrate Download Manager into Opera
-
leocg Moderator Volunteer last edited by
@wealstarr What do you mean by *extensions can't communicate outside of browser.. *?
-
burnout426 Volunteer last edited by
I tested with https://developer.chrome.com/extensions/nativeMessaging#examples, but modified the host python code for python 3 and changed the app to an extension for Opera (since Opera doesn't support Chrome apps, only extensions). Get the modifications from here.
Opera does indeed read from "HKEY_CURRENT_USER\SOFTWARE\Google\Chrome\NativeMessagingHosts\com.google.chrome.example.echo" on startup. And, on the extension page in Opera, messages from the native host are received.
-
marysmith last edited by
For Opera you have to enable "Use advanced browser integration" option in Options > General IDM dialog (arrow 1 on the image). Then check that integration into Opera is also enabled (arrow 2 on the image). If IDM shows some error, when you try to enable advanced browser integration, please read this instruction.
-
wealstarr last edited by
@burnout426 Okay I did everything as you detailed. When clicking "connect" on
chrome-extension://knldjmfmopnpolahpmmgbagdohdnhkik/main.html......
I get the response "Failed to connect: Failed to start native messaging host"What now ?
-
wealstarr last edited by
@marysmith Thank you for the help Mary but it's not IDM I'm trying to integrate.
It's IDA https://westbyte.com/ida/index.phtml
-
burnout426 Volunteer last edited by burnout426
@wealstarr If you run native-messaging-example-host.bat in a command prompt (that has Python in PATH), do you get any errors?
-
wealstarr last edited by
@burnout426 Can't thank you enough.
Here's the Chrome extension for IDA
https://chrome.google.com/webstore/detail/internet-download-acceler/fhjnbgadgmmffddcilnbmcieekimilcn?hl=enThanks again. This means alot
-
wealstarr last edited by
@burnout426 said in Can't integrate Download Manager into Opera:
@wealstarr If you run native-messaging-example-host.bat in a command prompt (that has Python in PATH), do you get any errors?
I run the batch script native-messaging-example-host.bat elevated and command prompt quits on me even before I can see anything.
Here's the Chromium thread if you wanna add anything
https://bugs.chromium.org/p/chromium/issues/detail?id=1144453 -
burnout426 Volunteer last edited by
@wealstarr I can get IDA to work in Chrome, but not Opera and Vivaldi. Not sure why yet, but the problem is most likely an API compatibility issue in the IDA extension.
-
burnout426 Volunteer last edited by
@burnout426 I guess in Vivaldi, I have to choose save or open in the Vivaldi's save dialog to trigger IDA. In Opera, I have to click "Save" in Opera's save dialog to trigger IDA. IDA intercepts the download properly though. Opera and Vivaldi don't download a copy themselves.
-
burnout426 Volunteer last edited by
@wealstarr said in Can't integrate Download Manager into Opera:
@burnout426 said in Can't integrate Download Manager into Opera:
@wealstarr If you run native-messaging-example-host.bat in a command prompt (that has Python in PATH), do you get any errors?
I run the batch script native-messaging-example-host.bat elevated and command prompt quits on me even before I can see anything.
Windows key + r to open run dialog.
Type cmd and press enter
cd "path bat file is in"
Type name
native-messaging-example-host.bat
and press enter.Then you'll see what errors if any there are.
-
wealstarr last edited by
@burnout426 said in Can't integrate Download Manager into Opera:
native-messaging-example-host.bat
Hi burnout, this is what I got:
D:\Inbox\opera_nativemessage\host>native-messaging-example-host.bat
'python' is not recognized as an internal or external command, -
burnout426 Volunteer last edited by
@wealstarr You have to install https://www.python.org/downloads/ (choose to add python to the PATH when asked in the installer).
-
wealstarr last edited by wealstarr
@burnout426 As per the previous instructions I has python installed but this time I modified some options in the installer and it appears to be working.
When I run native-messaging-example-host.bat a small window opens in which I input hi and the message was received in command prompt.
-
burnout426 Volunteer last edited by
@wealstarr said in Can't integrate Download Manager into Opera:
a small window opens in which I input hi and the message was received in command prompt.
Okay. Sounds like it's ready now. In Opera, with it connection, you should be able to type hi in that little window and send it to Opera.
-
wealstarr last edited by wealstarr
@burnout426 I type hi in the little window and click send, I get response in the command prompt but nothing in Opera unless I'm missing something.
BTW, this issue with Native Messaging Hosts has been previously noted to Google and it appears to be still open.
https://bugs.chromium.org/p/chromium/issues/detail?id=1106717 -
burnout426 Volunteer last edited by
@wealstarr said in Can't integrate Download Manager into Opera:
I type hi in the little window and click send, I get response in the command prompt but nothing in Opera unless I'm missing something.
You have to type in the host window that appears when you click "connect" on the main.html page in Opera and not the one launched form the .bat file. The latter is just a test.
-
wealstarr last edited by
@burnout426 When I click connect I'm still getting ""Failed to connect: Failed to start native messaging host""
-
burnout426 Volunteer last edited by
@wealstarr Hmm, not sure. It could just be my directions as I've never messed with this stuff before this thread.
Are you able to get Opera to trigger IDA like I did though when clicking the "save" button in Opera's save dialog? Does that at least work for you?
I'm on Windows 10 if it matters.