How open current Avant page in Orca?

General questions about scripts and buttons should be asked here. Development scripts and buttons may also be posted for feedback.

Moderators: Support Staff², Support Staff, AvantGuard, Developer

User avatar
notestracker
Semi-Avantic
Semi-Avantic
Posts: 403
Joined: Fri Dec 16, 2005 11:02 pm
Windows Version: Windows 8 Pro 64-bit
Avant Version: 2012 Ult. build 197
Default engine: Mozilla Firefox
IE Version: 10.0
Skin: AthenX
Location: Melbourne, Australia
Contact:

How open current Avant page in Orca?

Post by notestracker » Tue Mar 17, 2009 10:07 am

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!
Tony Austin
CEO, Asia/Pacific Computer Services
http://notestracker.com/ and http://notestracker.net/

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: How open current Avant page in Orca?

Post by kudos » Tue Mar 17, 2009 10:32 am

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...

User avatar
notestracker
Semi-Avantic
Semi-Avantic
Posts: 403
Joined: Fri Dec 16, 2005 11:02 pm
Windows Version: Windows 8 Pro 64-bit
Avant Version: 2012 Ult. build 197
Default engine: Mozilla Firefox
IE Version: 10.0
Skin: AthenX
Location: Melbourne, Australia
Contact:

Re: How open current Avant page in Orca?

Post by notestracker » Tue Mar 17, 2009 11:16 am

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).
Tony Austin
CEO, Asia/Pacific Computer Services
http://notestracker.com/ and http://notestracker.net/

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: How open current Avant page in Orca?

Post by kudos » Tue Mar 17, 2009 8:37 pm

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!

bigC
AvantGuard
AvantGuard
Posts: 7244
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 10
Avant Version: 2016 Build 1
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

Re: How open current Avant page in Orca?

Post by bigC » Tue Mar 17, 2009 9:35 pm

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?

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: How open current Avant page in Orca?

Post by kudos » Tue Mar 17, 2009 9:51 pm

I just tried resetting all of my security settings back to default and it still works!!!

bigC
AvantGuard
AvantGuard
Posts: 7244
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 10
Avant Version: 2016 Build 1
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

Re: How open current Avant page in Orca?

Post by bigC » Tue Mar 17, 2009 9:58 pm

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.

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: How open current Avant page in Orca?

Post by kudos » Wed Mar 18, 2009 1:07 am

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.

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: How open current Avant page in Orca?

Post by kudos » Wed Mar 18, 2009 2:48 pm

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.
Attachments
OrcaView.xpi.zip
Rename to OrcaView.xpi
(31.18 KiB) Downloaded 238 times
Last edited by kudos on Wed Jul 15, 2009 7:59 pm, edited 1 time in total.

bigC
AvantGuard
AvantGuard
Posts: 7244
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 10
Avant Version: 2016 Build 1
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

Re: How open current Avant page in Orca?

Post by bigC » Wed Mar 18, 2009 7:25 pm

Cool, it works. Nice work Kudos.

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: How open current Avant page in Orca?

Post by kudos » Wed Mar 18, 2009 7:32 pm

Thanks for confirming.

User avatar
notestracker
Semi-Avantic
Semi-Avantic
Posts: 403
Joined: Fri Dec 16, 2005 11:02 pm
Windows Version: Windows 8 Pro 64-bit
Avant Version: 2012 Ult. build 197
Default engine: Mozilla Firefox
IE Version: 10.0
Skin: AthenX
Location: Melbourne, Australia
Contact:

Re: How open current Avant page in Orca?

Post by notestracker » Thu Mar 19, 2009 12:23 pm

Yes indeed, it all works very well.
Much kudos to Kudos for assembling the above tips. =D>
Tony Austin
CEO, Asia/Pacific Computer Services
http://notestracker.com/ and http://notestracker.net/

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: How open current Avant page in Orca?

Post by kudos » Thu Mar 19, 2009 1:17 pm

You're welcome. Out of interest, has anyone tested this with Vista and all its heightened security features?

User avatar
statm1
Moderator
Moderator
Posts: 2168
Joined: Thu Mar 10, 2005 10:03 pm
Windows Version: Windows 8/7
Avant Version: 2012 Build 181
IE Version: 10
Location: North Carolina, USA
Contact:

Re: How open current Avant page in Orca?

Post by statm1 » Thu Mar 19, 2009 11:07 pm

i doubt you would have much trouble with Vista..
Image
-- Matt --

User avatar
notestracker
Semi-Avantic
Semi-Avantic
Posts: 403
Joined: Fri Dec 16, 2005 11:02 pm
Windows Version: Windows 8 Pro 64-bit
Avant Version: 2012 Ult. build 197
Default engine: Mozilla Firefox
IE Version: 10.0
Skin: AthenX
Location: Melbourne, Australia
Contact:

Re: How open current Avant page in Orca?

Post by notestracker » Tue Aug 18, 2009 4:30 am

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.
Tony Austin
CEO, Asia/Pacific Computer Services
http://notestracker.com/ and http://notestracker.net/

bigC
AvantGuard
AvantGuard
Posts: 7244
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 10
Avant Version: 2016 Build 1
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

Re: How open current Avant page in Orca?

Post by bigC » Tue Aug 18, 2009 7:10 pm

But why risk enabling Initialize and Script ActiveX NOT SAFE FOR scripting when the 2nd option is available?

User avatar
notestracker
Semi-Avantic
Semi-Avantic
Posts: 403
Joined: Fri Dec 16, 2005 11:02 pm
Windows Version: Windows 8 Pro 64-bit
Avant Version: 2012 Ult. build 197
Default engine: Mozilla Firefox
IE Version: 10.0
Skin: AthenX
Location: Melbourne, Australia
Contact:

Re: How open current Avant page in Orca?

Post by notestracker » Sat Feb 13, 2010 8:02 am

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.
Tony Austin
CEO, Asia/Pacific Computer Services
http://notestracker.com/ and http://notestracker.net/

User avatar
notestracker
Semi-Avantic
Semi-Avantic
Posts: 403
Joined: Fri Dec 16, 2005 11:02 pm
Windows Version: Windows 8 Pro 64-bit
Avant Version: 2012 Ult. build 197
Default engine: Mozilla Firefox
IE Version: 10.0
Skin: AthenX
Location: Melbourne, Australia
Contact:

Best way to modify XPI files?

Post by notestracker » Tue Mar 02, 2010 12:00 am

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.
Tony Austin
CEO, Asia/Pacific Computer Services
http://notestracker.com/ and http://notestracker.net/

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: How open current Avant page in Orca?

Post by kudos » Tue Mar 02, 2010 12:05 am

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.
 
.:Volunteer support staff (regular user):.
Image
I am not a member of the Avant / Orca development team
Please search this forum / the Wiki before posting questions
Forum Rules | Frequently Asked Questions | Active Topics

User avatar
notestracker
Semi-Avantic
Semi-Avantic
Posts: 403
Joined: Fri Dec 16, 2005 11:02 pm
Windows Version: Windows 8 Pro 64-bit
Avant Version: 2012 Ult. build 197
Default engine: Mozilla Firefox
IE Version: 10.0
Skin: AthenX
Location: Melbourne, Australia
Contact:

Re: How open current Avant page in Orca?

Post by notestracker » Tue Mar 02, 2010 12:37 am

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...
Tony Austin
CEO, Asia/Pacific Computer Services
http://notestracker.com/ and http://notestracker.net/

Post Reply