Copying an image and making a collage

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
ranjit
Posts: 9
Joined: 15 Aug 2021, 01:01

Copying an image and making a collage

21 Feb 2022, 05:08

Hello friends,

I want to make a collage of 3 screenshots ie

a) take a screenshot of one-third of the right side of the page and paste it in Microsoft Paint,
b) scroll down the page take another screenshot (1/3 of the right side of the page), paste that on the same Paint page side by side, and not over it.
c) and once more scroll down the page take another screenshot (1/3 of the right side of the page), paste that on the same Paint page
d) Save the collage of three screenshots.

Can any expert help

thanks to our dear Puloove creator and all you helpful souls
regards
User avatar
mikeyww
Posts: 27370
Joined: 09 Sep 2014, 18:38

Re: Copying an image and making a collage

21 Feb 2022, 06:32

Just a few ideas for you here:
You don't need Paint to manipulate images.
You could search the forum for "screenshot". A number of scripts are posted.
One way to stitch or make a collage or montage is ImageMagick, a free download. It might also be worth searching the forum here for "image collage" or "stitch image".

The following gets you a "page down", but not necessarily by the right distance, which is always the tricky part of stitching together Web pages.

Code: Select all

Send {PgDn}
There might be ways to capture the entire Web page at once, and then crop it. Searching for that sort of solution may be worthwhile, too.
garry
Posts: 3795
Joined: 22 Dec 2013, 12:50

Re: Copying an image and making a collage

21 Feb 2022, 09:40

idea , example : add 8 pictures to a GUI ( can then make a printscreen )

Code: Select all

;- https://www.autohotkey.com/boards/viewtopic.php?f=56&t=19807
;- montrer une bande dessinée
;- creates a folder 'blondie' in a_scriptdir with 8-pictures
;--------------------------------------------------------------
#Warn
#NoEnv
setworkingdir, %a_scriptdir%
Gui,2:  -DPIScale
Gui,2:Color,black
Gui,2:Font,  S10 CDefault , Lucida Console
P1:="blondie\P1.jpg",P2:="blondie\P2.jpg",P3:="blondie\P3.jpg",P4:="blondie\P4.jpg",P5:="blondie\P5.jpg",P6:="blondie\P6.jpg",P7:="blondie\P7.jpg",P8:="blondie\P8.jpg"
fd1:=a_scriptdir . "\blondie"
ifnotexist,%fd1%
  filecreatedir,%fd1%
ifnotexist,%p1%
  {
  urldownloadtofile,http://i.imgur.com/o33K7tL.jpg,%p1%
  urldownloadtofile,http://i.imgur.com/XXHnz8j.jpg,%p2%
  urldownloadtofile,http://i.imgur.com/9F7Iqv7.jpg,%p3%
  urldownloadtofile,http://i.imgur.com/LVqgrOl.jpg,%p4%
  urldownloadtofile,http://i.imgur.com/KoYFTj5.jpg,%p5%
  urldownloadtofile,http://i.imgur.com/blJIQjT.jpg,%p6%
  urldownloadtofile,http://i.imgur.com/I4CqPLT.jpg,%p7%
  urldownloadtofile,http://i.imgur.com/4ZF2FMc.jpg,%p8%
  }
WA:=A_screenwidth,HA:=A_screenheight
PW:=(WA*25)/100,PH :=(HA*30)/100
X1:=(WA*1)/100 ,X2:=(WA*27)/100,X3:=(WA*53)/100
Y1:=(HA*1)/100 ,Y2:=(HA*32)/100,Y3:=(HA*63)/100
GH:=(PH*3)+80  ,GW:=(X3+PW)+60
gui,2:add,picture, x%X1%  y%Y1% h%PH% w%PW%   ,%P1%
gui,2:add,picture, x%X2%  y%Y1% h%PH% w%PW%   ,%P2%
gui,2:add,picture, x%X3%  y%Y1% h%PH% w%PW%   ,%P3%
gui,2:add,picture, x%X1%  y%Y2% h%PH% w%PW%   ,%P4%
gui,2:add,picture, x%X2%  y%Y2% h%PH% w%PW%   ,%P5%
gui,2:add,picture, x%X3%  y%Y2% h%PH% w%PW%   ,%P6%
gui,2:add,picture, x%X1%  y%Y3% h%PH% w%PW%   ,%P7%
gui,2:add,picture, x%X2%  y%Y3% h%PH% w%PW%   ,%P8%
gui,2:show,x1 y1 h%GH%  w%GW%, Blondie
return
;---------
2Guiclose:
exitapp
;=====================================================
ranjit
Posts: 9
Joined: 15 Aug 2021, 01:01

Re: Copying an image and making a collage

21 Feb 2022, 23:58

mikeyww wrote:
21 Feb 2022, 06:32
Just a few ideas for you here:
You don't need Paint to manipulate images.
You could search the forum for "screenshot". A number of scripts are posted.
One way to stitch or make a collage or montage is ImageMagick, a free download. It might also be worth searching the forum here for "image collage" or "stitch image".

The following gets you a "page down", but not necessarily by the right distance, which is always the tricky part of stitching together Web pages.

Code: Select all

Send {PgDn}
There might be ways to capture the entire Web page at once, and then crop it. Searching for that sort of solution may be worthwhile, too.
Thank you Mikey. Will give it a shot
ranjit
Posts: 9
Joined: 15 Aug 2021, 01:01

Re: Copying an image and making a collage

22 Feb 2022, 00:01

garry wrote:
21 Feb 2022, 09:40
idea , example : add 8 pictures to a GUI ( can then make a printscreen )

Code: Select all

;- https://www.autohotkey.com/boards/viewtopic.php?f=56&t=19807
;- montrer une bande dessinée
;- creates a folder 'blondie' in a_scriptdir with 8-pictures
;--------------------------------------------------------------
#Warn
#NoEnv
setworkingdir, %a_scriptdir%
Gui,2:  -DPIScale
Gui,2:Color,black
Gui,2:Font,  S10 CDefault , Lucida Console
P1:="blondie\P1.jpg",P2:="blondie\P2.jpg",P3:="blondie\P3.jpg",P4:="blondie\P4.jpg",P5:="blondie\P5.jpg",P6:="blondie\P6.jpg",P7:="blondie\P7.jpg",P8:="blondie\P8.jpg"
fd1:=a_scriptdir . "\blondie"
ifnotexist,%fd1%
  filecreatedir,%fd1%
ifnotexist,%p1%
  {
  urldownloadtofile,http://i.imgur.com/o33K7tL.jpg,%p1%
  urldownloadtofile,http://i.imgur.com/XXHnz8j.jpg,%p2%
  urldownloadtofile,http://i.imgur.com/9F7Iqv7.jpg,%p3%
  urldownloadtofile,http://i.imgur.com/LVqgrOl.jpg,%p4%
  urldownloadtofile,http://i.imgur.com/KoYFTj5.jpg,%p5%
  urldownloadtofile,http://i.imgur.com/blJIQjT.jpg,%p6%
  urldownloadtofile,http://i.imgur.com/I4CqPLT.jpg,%p7%
  urldownloadtofile,http://i.imgur.com/4ZF2FMc.jpg,%p8%
  }
WA:=A_screenwidth,HA:=A_screenheight
PW:=(WA*25)/100,PH :=(HA*30)/100
X1:=(WA*1)/100 ,X2:=(WA*27)/100,X3:=(WA*53)/100
Y1:=(HA*1)/100 ,Y2:=(HA*32)/100,Y3:=(HA*63)/100
GH:=(PH*3)+80  ,GW:=(X3+PW)+60
gui,2:add,picture, x%X1%  y%Y1% h%PH% w%PW%   ,%P1%
gui,2:add,picture, x%X2%  y%Y1% h%PH% w%PW%   ,%P2%
gui,2:add,picture, x%X3%  y%Y1% h%PH% w%PW%   ,%P3%
gui,2:add,picture, x%X1%  y%Y2% h%PH% w%PW%   ,%P4%
gui,2:add,picture, x%X2%  y%Y2% h%PH% w%PW%   ,%P5%
gui,2:add,picture, x%X3%  y%Y2% h%PH% w%PW%   ,%P6%
gui,2:add,picture, x%X1%  y%Y3% h%PH% w%PW%   ,%P7%
gui,2:add,picture, x%X2%  y%Y3% h%PH% w%PW%   ,%P8%
gui,2:show,x1 y1 h%GH%  w%GW%, Blondie
return
;---------
2Guiclose:
exitapp
;=====================================================
Thanks Gary. You've taken a lot of trouble. Most obliged
regards

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: apeironn, Google [Bot] and 175 guests