Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

SavePictureAs - (Save Image/Picture)


  • Please log in to reply
66 replies to this topic
DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008
This forum will be locked as of 12/31/15.

Please see the SavePictureAs topic at https://autohotkey.c...ic.php?f=6&t=10for the latest updates.

SavePictureAs Version 10.6

Save pictures from the web with Windows XP, Vista, Windows 7 and Windows 8 using Internet Explorer, Firefox, Chrome, Opera, Safari, Maxthon, RockMelt,  Comodo Dragon, Slim, and K-Meleon browsers . Only tested on the English locale.

Windows 8 was in Desktop mode when testing SavePictureAs.

Placing the mouse cursor over any picture on a webpage and pressing Control & the Spacebar or user defined keys will save the picture to your chosen folder.
 
Tested with AutoHotkey 1.1.15.00 Ansi 32bit on WinXp, Vista, Windows 7 and Windows 8 (AutoHotkey is only needed for the .ahk version)

 

Download Links -
1. SavePictureAs.ahk http://sourceforge.n...As.ahk/download

2. SavePictureAs.exe http://sourceforge.n...As.exe/download

3. SavePictureAs.zip http://sourceforge.n...As.zip/download

Also, download from SoftPedia.com http://www.softpedia...PictureAs.shtml

Please note: For SavePictureAs to work properly, the script needs to be able to right click, send the letter s or the letter v (depending on browser), then wait for the Save Image, Save Picture or Save As window (depending on browser) to open, it will then send the TempFolder\filename to the edit box, then click on the button labeled &Save.
If you get the error that the picture can not be saved, check that the above can be done manually.

Some Features are:
(1). History Menu - View, Delete, Move, Copy & Rename last 30 pictures saved.
(2). Hover mouse over tray icon to see the current folder you have selected to download pictures to.
(3). Favorites toolbar - ten configurable buttons for favorite folders to save pictures to. When you want to save a picture from the web, you can click one time on the Favorites toolbar to change the location the picture will be saved to. Then place the mouse over the picture and press Control & Space or user defined keys.
(4). Change screens and text colors.
(5). Saved picture successfully configurable Confirmation Message.
(6). Left or right click the system tray icon brings up the same menu.
(7). Option to prompt user to give the saved picture a filename of their choice.
(8). Auto Update (Check and download latest version)
(9). Displays gui showing original and duplicate pictures with options to rename or delete one or both pictures.
(10). Options to automatically rename original picture.
(11). Capture Area of Screen, Capture Entire Screen, Capture Active Window

All features are configurable from the system tray icon.
Please read the comments at the beginning of the script for more information or Program Documentation available via the tray icon.
 
Thanks to the following people from the Autohotkey forum for the following code.
( A ) Lexikos - Scrollable Gui code from http://www.autohotke...pic.php?t=28496
( B ) Lexikos - Resizable window border from http://www.autohotke...er/#entry155480
( C ) tic - Gdip functions to get image dimensions from
      http://www.autohotke...ic/#entry187736
( D ) Sean - Get right click menu contents function GetMenu(hMenu) code from http://www.autohotke...pic.php?t=21451
( E ) Sean - Retrieve AddressBar of Firefox through DDE Message code
      from http://www.autohotke...gh-dde-message/
( F ) Sean - Screen Capture from
      http://www.autohotke...or/#entry108113
( G ) Eddy & olfen - UrlDownloadToVar from
      http://www.autohotke...dtovar&start=75
( H ) majkinetor - Common dialog for changing Gui & font colors from http://www.autohotke...pic.php?t=17230
( I ) majkinetor - DockA found here http://www.autohotke...10/#entry287726
( J ) Huba  - Left click on system tray icon from http://www.autohotke...pic.php?t=26720
( K ) jaco0646 - User-defined Dynamic Hotkeys from http://www.autohotke...ynamic-hotkeys/
( L ) derRaphael & JustMe for the Color Controls code from http://www.autohotke...topic33777.html and here
     http://www.autohotke...-by-derraphael/
( M ) heresy - run ahk scripts with less memory from
      http://www.autohotke...s-memory-usage/
( N ) Chris Mallett for AutoHotkey and Lexikos for continuing to develop AutoHotkey
( O ) Sorry if I missed someone. If so, let me know and I will give credit where credit is due.
 

ChangeLog Versions 5.2 thru 10.1 http://dl.dropbox.co...s_ChangeLog.txt
 
ChangeLog Versions 10.2 and newer are below.

Edit: 5-10-14 Uploaded Version 10.2 - Minor Update
1) Improved "Test Changes" process on the Program Colors settings page
2) Spaces before and after the "Prefix" and before and after the "Suffix" on the custom naming options are now allowed.
3) Added Date & Time option which allows user defined "separator" characters between the Date and Time values.
Example (The AND sign and spaces were added with this option): 20140404 && 080109.jpg
4) Added "Use above options and Prompt for filename" to the Custom Picture Name options.
SavePictureAs will rename the picture to your choice then prompt you so you can change the new filename when saving a picture.
5) Added Custom Filenaming Option -> [UserInput1] Date && Time [UserInput2] Original Filename (When saving a picture you will be prompted for UserInput)
6) Added support for the Slim Browser
7) Redesigned "Prompt For Picture" name prompt

Edit: 6-7-14 Uploaded Version 10.3 - Minor Update
1) Found an issue displaying menu icons on Windows 8.1.
 
Edit: 6-8-14 Uploaded Version 10.4 - Minor Update
1) Found an issue with displaying the "Reset All Settings" icon

Edit: 6-26-14 Uploaded Version 10.5 - Minor Update
1) Found an issue with downloading updates via the "Check for Updates" tray menu option

Edit: 6-26-14 Uploaded Version 10.6 - Minor Update
1) Found an issue with displaying system tray icons with Windows 8
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

sumon
  • Moderators
  • 1317 posts
  • Last active: Dec 05 2016 10:14 PM
  • Joined: 18 May 2010
Doesn't work for me, I get an error message that the image doesn't seem to be savable. It appears like it goes right-click, but then can't do something.

Windows 7, Google Chrome, swedish.

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008

Doesn't work for me, I get an error message that the image doesn't seem to be savable. It appears like it goes right-click, but then can't do something.

Windows 7, Google Chrome, swedish.


The script should send right click, then send v to open the Save As window in Chrome.

Does your right click menu have "Save image as' ?

If you manually right click on an image and press the letter v does it bring up the Save As window?

I have no idea if using swedish has anything to do with it.

DataLife
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

sumon
  • Moderators
  • 1317 posts
  • Last active: Dec 05 2016 10:14 PM
  • Joined: 18 May 2010
Yup, the problem is the language. I'll see if I can manually adjust it because the script seems awesome :)

In Google Chrome, the menu doesn't have any hotkeys (how odd), I also checked in Firefox, and there the right-click menu does have hotkeys, but in swedish. Save image as ---> Spara bild som. Pressing V would bring up the "Show image" (Visa bild) instead. :D

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008

Yup, the problem is the language. I'll see if I can manually adjust it because the script seems awesome :)

In Google Chrome, the menu doesn't have any hotkeys (how odd), I also checked in Firefox, and there the right-click menu does have hotkeys, but in swedish. Save image as ---> Spara bild som. Pressing V would bring up the "Show image" (Visa bild) instead. :D


You could change send v to send arrow keys and send enter.
After the script puts the new filename in the combo box the scripts sends the following line.
ControlClick , &Save, Save %PictureImage%,,,,NA

You may have to change it to click on the save button another way.

The script also verifies certain windows are open, before it continues. In most cases it uses the window class. I hope the window class is the same across multiple languages. It looks for either Save Picture for IE, Save Image for Chrome and Firefox, and Save As for Opera.

Until I get time to look over the script, it may be necessary to verify the window Class for Chrome and verify if your window title shows Save Image.



DataLife
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008
sumon

I uploaded version 5.2

I found a couple of msgboxes I was using for troubleshooting.

DataLife
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008
Uploaded Version 6.2 - Fixed issue with Google Chrome not saving images in certains conditions.

Download lastest version from the first post of this thread.

DataLife
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008
Uploaded Version 6.3 - Fixed issue with Windows 7 and Firefox not being able to verify the image was successfully saved

Download the latest version from the 1st post of this thread.

DataLife
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

randomguy
  • Members
  • 94 posts
  • Last active: Oct 20 2017 11:11 PM
  • Joined: 30 Oct 2011
nice script, I don't know why the Zip file works, but the ahk version does not. It says Include file RecycleBin.Ahk can not be opened

randomguy
  • Members
  • 94 posts
  • Last active: Oct 20 2017 11:11 PM
  • Joined: 30 Oct 2011
I'm trying to modify the script to work as this: If I click and drag the picture in Chrome/Firefox to the right, it automatically saves to a folder, if to the left it saves to another folder, and if Up it displays the save As dialog box. I don't know how yet, can anyone help me?

Too lazy reaching for the keyboard for a Ctrl + Space nowadays :))

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008
I am working on version 6.4 which includes checking for duplicates in folders, subfolders and also the recycle bin (all configurable) before saving the image.

I have no clue how I uploaded 6.4 instead of 6.3.

Download it again and you won't get that error message.

I will look at the "click and drag" you are asking about when I get home tonight.
Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

randomguy
  • Members
  • 94 posts
  • Last active: Oct 20 2017 11:11 PM
  • Joined: 30 Oct 2011
great, thanks! :D

DataLife
  • Members
  • 1022 posts
  • Last active: Nov 27 2015 01:09 AM
  • Joined: 27 Apr 2008
I put together a little script to click and drag to save images.
Assign a folder to LeftFolder and RightFolder at the top of the script.
Click and drag left, right or up at least 20 pixels on an image.

You may have to work out some issues, like timimg (adjust sleeps) or what you want to do if the mouse is dragged more then 20 pixels in two directions. As in 20 to the left and 20 up. This script will try to do both.

Make sure when you release the mouse button your cursor is still over the image.

Only tested in Google Chrome.

SetTitleMatchMode,1
LeftFolder = %a_desktop%\temp
RightFolder = %A_MyDocuments%\temp
return
~lbutton::
MouseGetPos,xd,yd
return

~lbutton up::
MouseGetPos,xu,yu
if (xd-xu) > 20
 {
  gosub,OpenSaveWindow
  ControlSetText,Edit1,%LeftFolder%\%FileName%,Save
  ControlClick , &Save, Save,,,,NA 
  Sleep 2000
 }
if (xu-xd) > 20
 {
  gosub,OpenSaveWindow
  ControlSetText,Edit1,%RightFolder%\%FileName%,Save
  ControlClick , &Save, Save,,,,NA
 }
if (yd-yu) > 20
 {
  sleep 500
  Send {rbutton} 
  Sleep, 500
  send {v}
  WinWaitActive, Save,,5
  if errorlevel = 1
   {
	MsgBox Timed Out waiting for Save As window
	return
   }
 }
return

OpenSaveWindow:
  sleep 500
  Send {rbutton} 
  Sleep, 500
  send {v}
  WinWaitActive, Save,,5
  if errorlevel = 1
   {
	MsgBox Timed Out waiting for Save As window
	return
   }
  ControlgetText, Filename, Edit1, Save 
  ControlSetText, Edit1,,Save
return


Check out my scripts.  (MyIpChanger) (XPSnap) (SavePictureAs) All my scripts are tested on Windows 7, AutoHotkey 32 bit Ansi unless otherwise stated.

randomguy
  • Members
  • 94 posts
  • Last active: Oct 20 2017 11:11 PM
  • Joined: 30 Oct 2011
I frequently receive "Time out waiting for save as window", what is that?

Because the image has been succesfully saved

randomguy
  • Members
  • 94 posts
  • Last active: Oct 20 2017 11:11 PM
  • Joined: 30 Oct 2011
Somehow it does the rightclicking and save as for me, but it always saves in Chrome's Default saveto folder