avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday June 3, 2023, 3:06 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - shmuel1 [ switch to compact view ]

Pages: prev1 [2]
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:;hash=item19d12725a9

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.

OK, I have to work on those 2 items.

Active scripting is probably why you can't save some webpages. See this article:
I might be able to make a script to quickly disable/enable active scripting. Let me know if you are interested.

The other option is just to make a PDF file out of the page.
Here's a free program to print almost anything to PDF format:

When you get tabs.htm as the file name, it means it's saving the page before it finished loading the desired webpage. I had that also, so I added some sleep time before saving the page. Since you are avoiding the dialog box, you need even more sleep time to let the page load before saving it.

Try adding Sleep(3000) before Line 46 Send("^s"). Adjust the sleep value to the amount of time that you need to load an average page.

Now if only there was a utility to say what combinations were in use already

Here's a free program for finding all your keyboard shortcuts:

Post New Requests Here / Re: [IDEA] Opening List of Links
« on: June 03, 2012, 06:15 AM »
If you hold down the CTRL key while you click each link, each one opens in a new tab. I don't know if a dedicated app would be any easier than that.

I added lines 62 to 66 to close the tab after saving it. See the attached.
Remember to edit the hotkey (in line 7) to something that is not in use.

I have the same system as you, Win7-64.
On Win7-64 you have to do the following:
- Right-click AutoIt3.exe (located at C:\Program Files (x86)\AutoIt3\AutoIt3.exe) and select Properties.
- Click the Compatibility tab.
- Click the checkbox next to Run this program in compatibility mode for, then select Windows XP (Service Pack 3).
Try it again and let me know if it works.

Nice utility! Thanks.

I made the attached program using AutoIt. I attached the EXE and the source code file (AU3) inside the zip file. If you install AutoIt, you can run the program by double-clicking the AU3 file. (The advantage of doing it this way is that you can edit it yourself.)

To use this program, double-click the EXE. It runs in the background.
When you want to save a webpage, first copy a URL then press the shortcut key: CTRL+WindowsKey+S
Select the output format and click OK. (The default format is Webpage Complete.)
Webpages are saved to a folder on your desktop.

In Internet Explorer 9, you can copy a URL by right-clicking a link, then selecting "Copy shortcut." So if you use Internet Explorer, you would first right-click a link, select "Copy shortcut," then press CTRL+WindowsKey+S.

If you want a different shortcut key or other changes, let me know. One option is to have a separate shortcut key for each output format, Webpage Complete and MHT.

I didn't add the feature of automatically changing the file name if there are duplicates. First try it as is and let me know if you like it.

You can put the program in your Windows Startup folder and it will run when Windows starts up.

AutoHotkey / Re: AutoIt instead of AHK for assignments OK?
« on: May 28, 2012, 07:34 AM »
In AutoIt, you can use the HotKeySet function.
You can also use _IsPressed() together with #Include <Misc.au3>. This works a little differently.


I could make you a script that would do all those steps automatically using AutoIt.
What browser do you use and what version?

If you want to do this for backup or sync purposes, you might want to consider Beyond Compare. It's an excellent sync utility and it will automatically create the path for you.

On the left side, you would select the location to copy from, let's say "C:\Documents and Settings\All Users\Documents\My Pictures\"
On the right side you would select (in your example) D:\temp
Then you would copy "\Documents and Settings\All Users\Documents\My Pictures\" from the left side to the right side to get this:
"D:\temp\Documents and Settings\All Users\Documents\My Pictures\"
Then sync the folders. Beyond Compare gives you the option of automatically creating the directory structure.

Post New Requests Here / Re: Alt-tabbing selected applications
« on: May 21, 2012, 05:51 AM »
If you press Alt+TAB once then let both keys go, Windows goes back to the previously active window. So if you click on two items on the taskbar, you can use Alt+TAB to toggle between those two windows.

You need to explain what you mean by "edit an entire document." What specifically do you want the macro to do, check grammar and spelling?

Hi Jonathan,

I could do that pretty easily with plain text using a keyboard shortcut such as CTRL+SHIFT+c to copy the selected text. Do you want the title of the window it was copied from and the date? 

Thanks for the speedy reply!

Clipboard Help+Spell / Re: Favorites, Adding Clip
« on: January 05, 2012, 08:07 AM »

If the Favorite? column is not visible, click on the small icon to the left of the Title column and select the checkbox next to Favorite?.

Clipboard Help+Spell / Instruction for Adding to the Favorite Clips
« on: January 05, 2012, 07:49 AM »
You should add this somewhere in the user's manual.

Saving Your Favorite Clips

To add a clip to you favorites:
1. Open the CHS main window.
2. Select the Favorite? checkbox next to the clip.
Note: If the Favorite? column is not visible, click on the small icon to the left of the Title column and select the checkbox next to Favorite?.

For some reason, the Favorite column was not visible by by default. I think you should have it shown by default.

Pages: prev1 [2]