Soft As It Gets Forums   Welcome to the new Soft As It Gets Forums. You can get assistance here for our new product Surfulater,
and for ED for Windows

Go Back  Soft As It Gets Forums > Surfulater Customer Forums > Tips and Tricks
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read


Reply
 
Thread Tools Search this Thread Display Modes
  #1
Old 8th June 2007, 12:41 PM
chrisgl chrisgl is offline
Member
 
Join Date: Feb 2006
Posts: 75
Default Making Opera work with SUL

This isn't a complete solution - it doesn't clip to SUL, but it does make Opera copy the right data to the clipboard to insert into SUL.
These instructions are a fuller version of that from ReveEtrange
I believe them to be correct but they ought to be checked by someone!

I have attached the html2clip.zip since it is released under the terms of the GNU General Public License

=====================


These instructions show how to install 'html2clip' and 'autocopy' to allow Opera to be used with Surfulator.

It looks more complicated than it really is because I have tried to show all the steps to assist people not used to modifying programs.

As you'd expect I cannot be responsible if it all falls in a heap. It worked first time for me. Just follow the steps and all should be well.

In outline, the steps are:
* Place 'htm2clip.exe' in the Opera program directory
* Create a MIME type "text/cwf" that uses 'htm2clip.exe'
* Add a line to standard_menu.ini [Hotclick Popup Menu] that creates a right click menu option and action
* Place 'autocopy.js' in Opera's User JavaScript directory (which may need to be created)
* Point Opera to this directory
* Add an option 'Always Load User JavaScript=1' to opera6.ini [User Prefs]


NOTE: Two of Opera's 'ini' files require editng. It is important that Opera is not running when this is done.


Start by downloading and unzipping the files in the 'html2clip.zip' to a temporary area, perhaps the desktop.
The file 'html2clip.dpr' is the source code for the program 'htm2clip.exe' and can be discarded.


(1) Move 'htm2clip.exe' to Opera program directory; probably 'C:\Program Files\Opera'.

====


(2) Here we setup the new MIME type

(2.1) Start Opera

(2.2) On the menu bar select Tools > Preferences

(2.3) Choose the Advanced tab.

(2.4) Choose 'Downloads'

(2.5) On the right hand side, click the [Add...] button and enter "text/cwf" (without the quotes) in the 'MIME type' box

(2.6) Click the radio button 'Open with other application'

(2.7) Click the [Choose...] button and navigate to 'C:\Program Files\Opera' where 'html2clip.exe' was moved.

(2.8) Click [Ok] to close the 'File type' dialogue.

(2.9) Do this step if you do not want to have Opera autocopy a selection to the clipboard (This can easily be disabled later though).
Otherwise jump to step (3)

(2.9.1) Click [Ok] to close the 'Preferences' dialogue.

(2.9.2) Close Opera.

(2.9.3) Jump to step (5)

====


(3) Here we install the 'autocopy' feature.

(3.1) With Opera running, if the Advanced dialogue is not alrady open, select Tools > Preferences... and choose the Advanced tab.

(3.3) Choose 'Content'.

(3.4) Click the [JavaScript options...] button that appears.

(3.5) At the bottom the the dialogue box that appears is a section 'User JavaScript files'.

(3.6a) If there is already a directory path shown in the box jump to step (3.10)

(3.6b) If there is no directory shown, click the [Choose...] button.

(3.7) Use the file selector to navigate to C:\Program Files\Opera

(3.8) Click [Make New Folder] called 'UserJS'. Select it in the tree pane and click [Ok]

(3.9) The box should now show a path ' C:\Program Files\Opera\UserJS'

(3.10) Select and copy it, then close the 'JavaScript options' dialogue by clicking [Ok]. Leave Preferences open.

(3.11) Open Windows Explorer.

(3.11.1) If it doesn't show a toolbar called 'Address', click the View menu, select Toolbar and click 'Address Bar'.

(3.12) Paste the copied path in the address bar of Windows Explorer and press return to switch to the directory and move 'autocopy.js' there.

====


(4) An article 'Installing User JavaScript' (http://userjs.org/help/installation) suggests some User JavaScript files may need a flag setting (or creating) in 'opera6.ini' I am not sure if this is required to make html2clip work.

(4.1) To locate 'opera6.ini' click the Help menu and choose 'About Opera'

(4.1.1) Look for 'Preferences' within the section 'Paths'. Mine is
C:\Documents and Settings\Lawley\Application Data\Opera\Opera\profile\opera6.ini

(4.2) The Application Data directory is normally hidden, but you can switch to it by pasting the path into Windows Explorer's Address bar.

(4.3) Close Opera.

(4.3) Make a security copy of 'opera6.ini' by copy and pasting it.

(4.4) With Opera closed, open 'opera6.ini' in a TEXT editor (not a word processor as that may corrupt the content)

(4.5) Search for a line 'Always Load User JavaScript' and ensure it says 'Always Load User JavaScript=1'

(4.5.1) If it doesn't exist, locate the line '[User Prefs]' create a blank line below and enter 'Always Load User JavaScript=1'

(4.6) Save the file.

====


(5) Now we add the right click option. The instructions in html2clip's Readme.txt file say to modify 'menu.ini' but I believe the file is now called 'standard_menu.ini'. You should will find it in 'C:\Program Files\Opera\defaults' but it may be in your user Application Data directory. See steps (4.1) to (4.2) for how to locate the directory and search the Opera directories for it.

(5.3) Make a security copy of 'standard_menu.ini' by copy and pasting it.

(5.1) Open 'standard_menu.ini' in a TEXT editor (not a word processor as that may corrupt the content)
Locate the line '[Hotclick Popup Menu]'

(5.2) Open the help2clip 'Readme.txt' file in a TEXT editor (not a word processor as that may corrupt the content) and copy the ENTIRE line of code that follows the line '[Hotclick Popup Menu]'.
It starts:
Code:
Platform Windows, Item,
and finishes:
Code:
removeChild(tr)};})()",,,"Copy""
It is vital to copy the entire line.

(5.3) Switch to the editor with 'standard_menu.ini' and paste the code into a line of its own below '[Hotclick Popup Menu]'

(5.4) Save and close the file

====


(6) Run Opera, open a website and select some of the page. Unlike Firefox, there is no indication that images are selected.

(6.1) Right click on selected text in Opera and you should find and new option "Copy text with formatting". Select this to copy to the clipboard.
If you installed 'autocopy.js' this step is not necessary as it is performed automatically but you should check that the menu option is present.

(6.2) Switch to Surfulator and select 'New Article from Clipboard'

====


(7) Ta Daah!

====

(8) Tidy up:
-- Delete any remaining files unzipped from html2clip.zip.
-- Keep html2clip.zip so you can reinstall in the future.
-- Close any editor programs.
-- When you are satisfied that all is working you may delete the security copies of the ini files

====


Should you wish to disable the autoclp feature, close Opera, locate 'autocopy.js' and rename it to 'autocopy.js.d'

=====================


chrs :-)

If you aren't yet a Surfulater customer you can click here to download html2clip.zip - neville
Attached Files
File Type: zip htm2clip.zip (16.7 KB, 23 views)

Last edited by sales : 18th November 2007 at 11:12 PM. Reason: Provided zip file download for non-Customers
Reply With Quote
  #2
Old 12th June 2007, 07:21 AM
nevf's Avatar
nevf nevf is offline
Neville Franks - Chief Rocket Scientist
 
Join Date: Jan 2004
Location: Australia
Posts: 3,072
Thumbs up

Chris, thanks on behalf of our Opera users out there. Great job.
__________________
Neville Franks,
Author of ED for Windows and Surfulater
Reply With Quote
  #3
Old 10th November 2007, 10:33 PM
Mannering Mannering is offline
Junior Member
 
Join Date: Nov 2007
Posts: 1
Default Surfulater With Opera

The suggestion by Chrisgl on using Surfulater with Opera was a gem for a long-time Opera user like myself. What's more the instructions were crystal clear.
Reply With Quote
  #4
Old 7th April 2010, 05:14 PM
cyberqueen cyberqueen is offline
Member
 
Join Date: Mar 2010
Posts: 44
Default

I was delighted to come upon these instructions, which are admirably clear and detailed. Even better, I got them to work! However, they were written three years ago, and Opera has changed in some important ways since then. I'd like to add some notes that may prove helpful to people trying to follow these instructions on the current version of Opera (10.51). I should also add that I used the instructions on my desktop computer, which runs Windows XP Pro with SP3. I have a netbook that runs Windows 7 Starter, but I haven't yet tried to see whether I can follow the same procedure there.

OK, so here are the changes I noticed; the numbers refer to the numbered steps Chris provided:

(1) I've got two Opera directories in Program Files, Opera and Opera 9. My Opera program directory was in C:\Program Files\Opera 9. On my Windows 7 netbook, however, it's in C:\Program Files\Opera, as Chris's instructions indicate. It may be that I have an Opera 9 directory because I've used Opera on my desktop for many years, and at one point they added an Opera 9 directory. I'm not sure.

(2.2) At some point, either in Opera 10 or 10.5, the insane developers removed the Menu Bar! Thus, I was at first unable to select Tools--> Preferences, as Chris specified. I finally found that if the Menu Bar is absent, it can be restored by clicking on the little red Opera square/tab/button in the upper left hand corner. If you click on it, you'll get a drop-down menu, and towards the bottom is a "show menu bar" option. Select that, and your menu bar will be back, with such useful items as Tools, Help, etc.

(2.7) Here and elsewhere, Chris refers to the program as html2clip.exe, but the actual file is htm2clip.exe.

(2.9) At first, I did not want to have Opera autocopy a selection to the clipboard, so I skipped to step (5). However, that didn't work! I then went back and followed the instructions in step (3) for installing the autocopy feature.

(3.5) In my version of Opera, the section is named "User JavaScript Folder"

(3.9) In my Opera, the path is C:\userjs, not C:\Program Files\Opera\UserJS. Also, Chris shows the name as UserJS, but in my version it's all lowercase.

(4) I didn't have to use any of the instructions in section (4).

(5) Chris is right in pointing out that the menu to modify is now standard_menu.ini rther than menu.ini. However, I did not find it where Chris said it would be, but rather in C:\Program Files\Opera 9\ui\. (In my Windows 7 netbook, it's in C:\Program Files\Opera\ui\.)

I think that's it. To my delight, the items I highlighted for inclusion in Surfulater were copied to the clipboard with formatting, so when I selected "New Article from Clipboard," the article pasted into Surfulater with all the graphics, etc.

I'm thrilled that I can use Surfulater with Opera. Many thanks to Chris for these wonderful instructions. I hope my notes will help people who have more recent Opera versions.
Reply With Quote
  #5
Old 8th April 2010, 01:10 AM
nevf's Avatar
nevf nevf is offline
Neville Franks - Chief Rocket Scientist
 
Join Date: Jan 2004
Location: Australia
Posts: 3,072
Arrow

Joan, thanks for the updated Opera info.

I can't comment on the specifics of Chris's solution as I don't use Opera, however another option which should work is to select the content in Opera that you want to copy and then use the Surfulater New Article from Clipboard Hotkey Ctrl+Alt+/

This can be used to capture & copy content from any Windows Application. See the Help Topic: The Basics | Capturing Content from other Applications for more information.
__________________
Neville Franks,
Author of ED for Windows and Surfulater
Reply With Quote
  #6
Old 8th April 2010, 01:51 AM
cyberqueen cyberqueen is offline
Member
 
Join Date: Mar 2010
Posts: 44
Default

Quote:
Originally Posted by nevf

I can't comment on the specifics of Chris's solution as I don't use Opera, however another option which should work is to select the content in Opera that you want to copy and then use the Surfulater New Article from Clipboard Hotkey Ctrl+Alt+/
Neville, Ctrl+Alt+/ is useful for capturing plain text, but it doesn't capture formatting or graphics. At least, it didn't when I just tried it out in my copy of Opera on Windows 7 and on WinXP Pro. The beauty of Chris's solution is that it will reproduce the article just as it would appear if saved in Firefox or IE with the Add New Article option in the right-click menu. Thus, for me, Chris's solution means Surfulater really works well in Opera, not just in Firefox and IE. Probably some functionality is missing, but for me the most important features now work well in Opera.
Reply With Quote
  #7
Old 8th April 2010, 11:41 AM
nevf's Avatar
nevf nevf is offline
Neville Franks - Chief Rocket Scientist
 
Join Date: Jan 2004
Location: Australia
Posts: 3,072
Default

Quote:
Originally Posted by cyberqueen
Neville, Ctrl+Alt+/ is useful for capturing plain text, but it doesn't capture formatting or graphics. At least, it didn't when I just tried it out in my copy of Opera on Windows 7 and on WinXP Pro. The beauty of Chris's solution is that it will reproduce the article just as it would appear if saved in Firefox or IE with the Add New Article option in the right-click menu. Thus, for me, Chris's solution means Surfulater really works well in Opera, not just in Firefox and IE. Probably some functionality is missing, but for me the most important features now work well in Opera.
Hi Joan,
Yes this rings a bell. From memory it is a limitation in Opera in that it doesn't support the HTML Clipboard Format, hence formatting and images are missing. I've just verified that the clipboard hotkey does work correctly (copies formatting and images) in IE and Firefox. Sorry about the misinformation.
__________________
Neville Franks,
Author of ED for Windows and Surfulater
Reply With Quote
  #8
Old 8th April 2010, 01:18 PM
cyberqueen cyberqueen is offline
Member
 
Join Date: Mar 2010
Posts: 44
Default

Quote:
Originally Posted by nevf
Hi Joan,
Yes this rings a bell. From memory it is a limitation in Opera in that it doesn't support the HTML Clipboard Format, hence formatting and images are missing. I've just verified that the clipboard hotkey does work correctly (copies formatting and images) in IE and Firefox. Sorry about the misinformation.
Yes, Opera is sometimes infuriating. That's probably why I switched to Firefox as my default browser several years ago and stay with it even though I find Opera much faster and in some ways more robust. Now it serves as my backup browser.

Anyway, the important thing is that Chris's solution still works beautifully. It manages to overcome Opera's quirkiness and enables Surfulater to work well with that browser. I'm really glad you included a link to Chris's message in the Surfulater FAQ.
Reply With Quote
Reply


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT. The time now is 11:03 PM.


Powered by: vBulletin Version 3.0.0 Release Candidate 3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2004-2005, Soft As It Gets Pty Ltd