Page 1 of 2

How open current Avant page in Orca?

Posted: Tue Mar 17, 2009 10:07 am
by notestracker
I'd like to be able to open the current Avant page in Orca (for example, to make use of the zooming in Orca's rendering engine).

As an interim measure, I created a command button in Avant that launches Orca. The underlying command is like this:
  • start /B /D "D:\Program Files\Orca Browser\" orca.exec
Then I just drag the current Avant page's URL from the Avant address bar to the newly-opened Orca's address bar. But I'd like to automate this second step so that it all happens merely by a single click of the command button.

Folks, do you have any ideas/tips on how to do this? (Perhaps, alternatively, using AB Extension Pack to create a context menu item rather than using an add-on button?)

Similarly, from within Orca Browser I'd similarly like with a single click to open the current Orca page in Avant Browser.

Put your thinking caps on, please!

Re: How open current Avant page in Orca?

Posted: Tue Mar 17, 2009 10:32 am
by kudos
notestracker wrote:Similarly, from within Orca Browser I'd similarly like with a single click to open the current Orca page in Avant Browser.
Use this extension in Orca: IE View
Remember to set the path for Avant in its options.
Right-click page or link shows view in IE items.
OK - it's two clicks...

Re: How open current Avant page in Orca?

Posted: Tue Mar 17, 2009 11:16 am
by notestracker
kudos wrote:Use this extension in Orca: IE View
Remember to set the path for Avant in its options.
Right-click page or link shows view in IE items.
Thanks again, kudos, I keep forgetting that Orca can use such Mozilla extensions.

Now I only need an answer fir the first part of my question (view an Avant page in Orca).

Re: How open current Avant page in Orca?

Posted: Tue Mar 17, 2009 8:37 pm
by kudos
notestracker wrote:Now I only need an answer fir the first part of my question (view an Avant page in Orca).
I got it to work straight away with the instructions in Need to find how to pass url to a program?

Here's a summary:

Tools -> Avant Browser Options... -> Add-ons -> Add-ons -> Add

Name: URL to Orca
Icon: I suggest the Orca Browser\res\tray256.ico
Type: Script Button
Content:

Code: Select all

var urlX=window.location
ApplicationX = new ActiveXObject("Shell.Application");
browserX = "c:\\Program Files\\Orca Browser\\Orca.exe";
ApplicationX.ShellExecute(browserX, urlX, "", "open", "1");
Change the location in the third line - don't forget double slashes and double quotes

Now go to Tools -> Internet Options -> Security

For BOTH Internet and Local Intranet, set the following:

Initialize and Script ActiveX NOT SAFE FOR scripting = ENABLE
Download Unsigned ActiveX Controls = DISABLE

Job done!

Re: How open current Avant page in Orca?

Posted: Tue Mar 17, 2009 9:35 pm
by bigC
kudos wrote:For BOTH Internet and Local Intranet, set the following:

Initialize and Script ActiveX NOT SAFE FOR scripting = ENABLE
Download Unsigned ActiveX Controls = DISABLE
I got excited at first but that part scared me away. Isn't that dangerous?

Re: How open current Avant page in Orca?

Posted: Tue Mar 17, 2009 9:51 pm
by kudos
I just tried resetting all of my security settings back to default and it still works!!!

Re: How open current Avant page in Orca?

Posted: Tue Mar 17, 2009 9:58 pm
by bigC
kudos wrote:I just tried resetting all of my security settings back to default and it still works!!!
hmm, no joy here. It doesn't do a thing.

Re: How open current Avant page in Orca?

Posted: Wed Mar 18, 2009 1:07 am
by kudos
You are correct - I restarted Avant to confirm.

To make it work again, I went back to Internet security and just set:
Initialize and script ActiveX controls not marked as safe for scripting = ENABLE
There is a PROMPT option but I could not get it to prompt me.

The original poster of the code is sulpherdragon so I take no credit for it (but if you are out there then maybe you may have a better idea).

PS My above link for the original topic was incorrect, here is the correct one.

Re: How open current Avant page in Orca?

Posted: Wed Mar 18, 2009 2:48 pm
by kudos
OK, here's an alternate way to do it:

Download the attached file and save it as OrcaView.xpi (the forum won't let me attach .xpi files)
Install the downloaded file into Orca (just drag and drop the file onto it)
Restart Orca as instructed
When restarted, go to Tools -> Mozilla Addons
Select Extensions -> OrcaView -> Options -> Install
You should get a successful confirmation dialog

Open Avant and go to Tools -> Avant Browser Options... -> Add-ons
Enable the context menus: Open Link Target in Orca and View This Page in Orca
Close the options dialog

You should now have the ability to right click a page or link and open it in Orca

Note: the script relies on Orca being installed to the default location of c:\Program Files\Orca Browser\
If it is installed elsewhere, edit the two orcaview*.html files located in:
%appdata%\Orca Profiles\.default\mozdata\UserData\extensions\{5D558C43-550F-4b12-84AB-0D8ABDA9F975}\

Also, the code is not mine (again). It is based on FirefoxView by Alex Sirota.

Re: How open current Avant page in Orca?

Posted: Wed Mar 18, 2009 7:25 pm
by bigC
Cool, it works. Nice work Kudos.

Re: How open current Avant page in Orca?

Posted: Wed Mar 18, 2009 7:32 pm
by kudos
Thanks for confirming.

Re: How open current Avant page in Orca?

Posted: Thu Mar 19, 2009 12:23 pm
by notestracker
Yes indeed, it all works very well.
Much kudos to Kudos for assembling the above tips. =D>

Re: How open current Avant page in Orca?

Posted: Thu Mar 19, 2009 1:17 pm
by kudos
You're welcome. Out of interest, has anyone tested this with Vista and all its heightened security features?

Re: How open current Avant page in Orca?

Posted: Thu Mar 19, 2009 11:07 pm
by statm1
i doubt you would have much trouble with Vista..

Re: How open current Avant page in Orca?

Posted: Tue Aug 18, 2009 4:30 am
by notestracker
Regarding the aforementioned:
1. Tools -> Internet Options -> Security
2. For BOTH Internet and Local Intranet, set the following:
3. Initialize and Script ActiveX NOT SAFE FOR scripting = ENABLE
4. Download Unsigned ActiveX Controls = DISABLE

I've just installed Windows 7 RTM gold release (64-bit), and can confirm that the above security settings work okay here too.

Re: How open current Avant page in Orca?

Posted: Tue Aug 18, 2009 7:10 pm
by bigC
But why risk enabling Initialize and Script ActiveX NOT SAFE FOR scripting when the 2nd option is available?

Re: How open current Avant page in Orca?

Posted: Sat Feb 13, 2010 8:02 am
by notestracker
bigC wrote:But why risk enabling Initialize and Script ActiveX NOT SAFE FOR scripting when the 2nd option is available?
Quite right, using this Mozilla extension assembled by kudos is a much nicer way to get the desired "Open this page in Orca" result.

A TIP TO OTHERS:
You might have to edit the two files (orcaviewlink.html and orcaviewpage.html) to change the default Orca installation location from C:\\Program Files\\ folder to whatever's needed to match up with where else you installed Orca. In my case, this became D:\\Program Files (x86)\\ ......... Note that the (x86) part of the folder name is due to my using 64-bit Windows, and you should omit this (x86) if you're using 32-bit Windows.

Best way to modify XPI files?

Posted: Tue Mar 02, 2010 12:00 am
by notestracker
kudos (and anybody else who knows)...

What's the best/neatest/handiest/easiest way to edit a .xpi file (so as to amend the aforementioned change to the Orca installation path, the orcaviewlink.html and equipage.html files for example)?

The reason for asking? ... I've installed Orca (and lots of other stuff) on drives other than the C: drive -- in my case, on the D: drive -- in order to keep the latter as small as possible for regular backups. I'd rather modify the orcaview.xpi file to point at the proper Orca installation directory on D: so that whenever I might have to reinstall the add-on I don't have to go in there and manually tinker with these files again.

Re: How open current Avant page in Orca?

Posted: Tue Mar 02, 2010 12:05 am
by kudos
An .xpi file is simply a .zip file - just renamed. All you need is an archive utility such as 7-Zip and a text editor such as notepad. Make sure that you use standard zip compression and not one of the newer methods such as lzma.

Re: How open current Avant page in Orca?

Posted: Tue Mar 02, 2010 12:37 am
by notestracker
kudos wrote:An .xpi file is simply a .zip file - just renamed. All you need is an archive utility such as 7-Zip and a text editor such as notepad. Make sure that you use standard zip compression and not one of the newer methods such as lzma.
Thanks for yet another ultra-prompt reply!
Yeah, you already mentioned that in an earlier reply, but when I unzipped the XPI file I wasn't sure where the affected files were (such as those two html files where I would have to change the Orca installation path).

There were manifest files and other stuff, but I didn't seem to be come across such files as those two -- well, only after installation, which is precisely when I didn't want to edit them! Maybe I simply overlooked them but any tips about which of the files in the innards of the zipped XPI file I should be looking out for? Cheers...