You need to be logged in to post in the forums. If you do not have an account, please sign up first.
IRC links > mIRC broken?
Hi,Added irc protocol to Opera then set it up to launch mIRC instead of Opera's internal client. The two problems I have:
1. Click an IRC link and it will launch mIRC but that is it, it does not seem to be passing any information like server/channel to mIRC.
2. Click an IRC link with mIRC already opened and it opens a new instance of mIRC.
Thought it might be something in mIRC so checked all my settings then tried clicking links in Internet Explorer and everything works perfectly. That is, in IE when I click a link it opens mIRC and sends me to the server/channel and if I click more then 1 link it opens a new window in mIRC rather then spawn a new instance of it.
Is there any way to get this to work correctly in Opera?
Thanks
4. March 2011, 05:09:33 (edited)
Are you using "Open with default application" or "Opera with other application"? If using the latter, you have to make sure you put all the command line parameters that mIRC needs (if any) in the param field. But, if mIRC is the program currently associated with the IRC protocol on your computer and you use "open with default application", Opera will use the registry settings that mIRC designates and it should just work.
What happens if you try "open with other application"? Does it work then?
You have to click "choose" and browse to the mIRC executable. You shouldn't need anything in the param field. the URL is automatically passed to the program.
You have to click "choose" and browse to the mIRC executable. You shouldn't need anything in the param field. the URL is automatically passed to the program.
echo %1 pause
Save that as test.bat and set "open with other application" to test.bat. That should show you if Opera's even passing the URL at all. (Also take note of whether the url is quoted or not if present)
Here is what I got:
C:\Program Files (x86)\Opera>echo "irc://irc.mozilla.org/firefox"
"irc://irc.mozilla.org/firefox"
C:\Program Files (x86)\Opera>pause
Press any key to continue . . .
C:\Program Files (x86)\Opera>echo "irc://irc.mozilla.org/firefox"
"irc://irc.mozilla.org/firefox"
C:\Program Files (x86)\Opera>pause
Press any key to continue . . .
That looks right.
Try clicking on an irc link in Opera while mIRC is completely closed to see if it makes a difference. If so, it's probably a DDE issue.
And, while mIRC is open, load up a command prompt and try passing the url to the mIRC exe yourself. (Let me know if you need directions for that)
Try clicking on an irc link in Opera while mIRC is completely closed to see if it makes a difference. If so, it's probably a DDE issue.
And, while mIRC is open, load up a command prompt and try passing the url to the mIRC exe yourself. (Let me know if you need directions for that)
I have mIRC installed and can confirm the problem. I can also confirm that clicking on the irc link in IE causes a "link request" dialog to pop up in mIRC. I will mess around with it to see what I can find.
If mIRC is not loaded it opens mIRC and just logs me into the last server I was connected. I am not sure how to pass this information to mIRC while it's open.
I just tried IE again with the Mozilla link I am testing and it works exactly as expected; loads mIRC, login to server then joins the channel and if I already have mIRC loaded it opens a new server/channel window within that instance of mIRC.
I just tried IE again with the Mozilla link I am testing and it works exactly as expected; loads mIRC, login to server then joins the channel and if I already have mIRC loaded it opens a new server/channel window within that instance of mIRC.
Originally posted by burnout426:
I have mIRC installed and can confirm the problem. I can also confirm that clicking on the irc link in IE causes a "link request" dialog to pop up in mIRC. I will mess around with it to see what I can find.
Thanks burnout426, good luck. Hope you are more successful then I was, looking forward to your results.
The problem is that Opera properly quotes the url when it passes it to mIRC. mIRC doesn't like this for some reason. IE passes it unquoted.
Will see if there's a workaround.
Will see if there's a workaround.
4. March 2011, 06:23:18 (edited)
Compare these too commands:
Although it's not necessary to quote the url in this case, it's still best to quote it for security reasons. Yet, mIRC doesn't like it.
As a workaround, I was going to suggest changing the path in "HKEY_CURRENT_USER\Software\Classes\irc\Shell\open\command" in the registry to point to a tiny program/script/batch file that removes the quotes and then passes it to mirc.exe. But, on startup, mirc.exe always resets that key. I guess you could change that key (while mIRC is closed) and then change the permissions so mIRC can't change it. But, that'd be going too far.
Personally, I consider this a bug in mIRC's command line handling.
C:\Program Files\mIRC>mirc.exe irc://irc.mozilla.org/firefox C:\Program Files\mIRC>mirc.exe "irc://irc.mozilla.org/firefox"
Although it's not necessary to quote the url in this case, it's still best to quote it for security reasons. Yet, mIRC doesn't like it.
As a workaround, I was going to suggest changing the path in "HKEY_CURRENT_USER\Software\Classes\irc\Shell\open\command" in the registry to point to a tiny program/script/batch file that removes the quotes and then passes it to mirc.exe. But, on startup, mirc.exe always resets that key. I guess you could change that key (while mIRC is closed) and then change the permissions so mIRC can't change it. But, that'd be going too far.
Personally, I consider this a bug in mIRC's command line handling.
As a workaround though, in Opera, set "open with other application" to "C:\Program Files\Internet Explorer\iexplore.exe". Then, Opera will temporarily open IE while passing the url to it, IE will pass it along to mIRC and close.
I still suggest reporting this to the mIRC devs. Just pointing them to this thread would be good enough.
I still suggest reporting this to the mIRC devs. Just pointing them to this thread would be good enough.
Try this workaround too:
Save:
as mirc_proxy.cmd
Then, set "open with other application" to mirc_proxy.cmd. (The ~ will strip the quotes)
Save:
"%ProgramFiles%\mirc\mirc.exe" %~1
as mirc_proxy.cmd
Then, set "open with other application" to mirc_proxy.cmd. (The ~ will strip the quotes)
Also, if you don't like the little window the batch file pops up, try mirc_proxy.exe instead.
Originally posted by burnout426:
Also, if you don't like the little window the batch file pops up, try mirc_proxy.exe instead.
Very nice, works great.
Thanks
Forums » Opera for Windows/Mac/Linux » Opera mail, chat and news