Messages - shmuel1 [ switch to compact view ]

Pages: prev1 2 3 4 5 [6] 7 8 9 10next
It apparently has something to do with the filename when saving the webpage. It happens with or without the macro. I removed part of the filename and it saved OK. I would say the filename was too long but it's within the Windows filename length limit and there are other names that I successfully saved that are longer. So I'm a bit stumped by what's wrong with the filename.

I edited the utility to allow you to edit the filename when there is an error saving.

Try the attached version with the page that didn't work:

Hi Jonathan,

Here's a very small program for copying text to a file. When you run the program, select any text, then press Ctrl+WindowsKey+c to copy the text to a file. It saves the text to a file called Clips.txt on your desktop. If the file does not exist, the program creates it.

Let me know if you want any changes. I also included the source code. It's a tiny program. If you install AutoIt (free) you can edit the code yourself. The code is very easy to read.


I think the 2nd idea in Reply #7 by 4wd is the simplest solution. To make a registry editing file you just type text in a text file, give the file a .reg extension, then double-click the file on the computer that you want to set up.

The format is pretty simple. You need Windows Registry Editor Version 5.00 at the top of the file, a blank line, then the registry location you want to edit, then the items within that location that you want to edit and their values. In between two or more registry locations, you need to leave a blank line.

I think this should work for you on XP:

Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Control Panel\International]
"sTimeFormat"="h:mm:ss tt"

[HKEY_CURRENT_USER\Control Panel\International\Geo]


Take this code and paste it into a text file with a .reg extension.

Edit "Nation"="12"
Replace the 12 with your country's value.
Here's a list of country values:

Here's a link that explains .reg files in detail:

Here's a new version. In this version I added the time at the end of the filename (in the format HH-MM-SS) to avoid duplicate filenames. If you want me to add the date also, that would be pretty easy.

I added these lines to disable active scripting for the current windows user and enable it afterwards:
Code: AutoIt [Select]
  1. RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1", "1400", "REG_DWORD", "3") ; disables active scripting in the "Internet Zone"
  2. RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\1", "1400", "REG_DWORD", "0") ; enables active scripting in the "Internet Zone"
I tested it on my computer and it did change the registry setting. Test it with some webpages that you couldn't save before and see if you can save them now.
I also added $answer = 1 to make it save complete webpages without asking you for the format, and I added sleep(3000) before saving the webpage to allow the page to load. If you use the attached (instead of editing your version), remember to edit the Hotkey.

In case you are interested, here's the page I used that explains how to disable active scripting via the registry.

Pages: prev1 2 3 4 5 [6] 7 8 9 10next
Go to full version