I made a script that automatically saves a picture to your harddisc from Internet Explorer.
How it works:
Simply hold the Win-Button and Right Click on the picture you want to save to your harddisc.
Code:
#RButton:: MouseGetPos, [OutputVarX, OutputVarY, OutputVarWin, OutputVarControl, 1] Haystack = %OutputVarControl% Needle = Internet Explorer IfInString, Haystack, %Needle% { SendInput {RButton} SendInput {Down} SendInput {Down} SendInput {Down} SendInput {Down} SendInput {Down} SendInput {Down} SendInput {Enter} SendInput {Enter} } Haystack = %OutputVarControl% Needle = Mozilla IfInString, Haystack, %Needle% { SendInput {RButton} SendInput {Down} SendInput {Down} SendInput {Down} SendInput {Enter} SendInput {Enter} } Return
Notes:
The Script wont work with a picture that is a link itself because the context menu for a picture that is a link has other entries with a different order of its entries.
The script also contains the code for Mozilla Firefox but its not working very well in Mozilla Firefox. I didnt delete it so you can try it out with Mozilla Firefox but be warned. Its best with IE, at least at my computer were i tested it.
Todo/Missing features:
1) The Script doesnt control if you are really clicking on a picture. This means if you click on something else, funny things can happen, depending of the context menu entries.
2) The Script wont work with pictures that are links because i couldnt figure out how to read out context menu entries in autohotkey. Would it be possible to do this?
I hope some of you people find this script useful.
Id appreciate getting your comments and suggestions or script-expansions.
cu