Copy-Paste more than One String at a time in Windows

Often, we wish if we could copy more than one piece of string at a time. It would have just saved a lot of time. But alas! our windows OS generally doesn’t give us this capability. If you think it isn’t important, just think for a minute, what if you saw 5 good websites that you want to open separately in a new tab? You would have to do Copy paste, over and over again, that’s tedious.

Control+c (cmd+c) and control+v (control+v) method allows you to copy one string at a time, and that is quite frustrating when you want to copy a lot of strings on the go. The good news is, there is a way to do it — all at once.

This is a very simple process for which, you would need to download autohotkey from https://autohotkey.com. I have used this software to building an autocorrect tool. If you don’t know how to set it up, then refer to the article on autocorrection.  Or, you can see the procedure below.

Once you are set, let’s begin. It is a very simple process which everyone can easily follow.

As soon as you have your script file open up, paste the below code in the notepad

^+1::
Send ^c
ClipWait
Clip1 := ClipBoardAll
return
!1::
ClipBoard := Clip1
Send ^v
return

^+2::
Send ^c
ClipWait
Clip2 := ClipBoardAll
return
!2::
ClipBoard := Clip2
Send ^v
return

^+3::
Send ^c
ClipWait
Clip3 := ClipBoardAll
return
!3::
ClipBoard := Clip3
Send ^v
return

^+4::
Send ^c
ClipWait
Clip4 := ClipBoardAll
return
!4::
ClipBoard := Clip4
Send ^v
return

^+5::
Send ^c
ClipWait
Clip5 := ClipBoardAll
return
!5::
ClipBoard := Clip5
Send ^v
return

^+6::
Send ^c
ClipWait
Clip6 := ClipBoardAll
return
!6::
ClipBoard := Clip6
Send ^v
return

^+7::
Send ^c
ClipWait
Clip7 := ClipBoardAll
return
!7::
ClipBoard := Clip7
Send ^v
return

^+8::
Send ^c
ClipWait
Clip8 := ClipBoardAll
return
!8::
ClipBoard := Clip8
Send ^v
return

^+9::
Send ^c
ClipWait
Clip9 := ClipBoardAll
return
!9::
ClipBoard := Clip9
Send ^v
return

^+0::
Send ^c
ClipWait
Clip0 := ClipBoardAll
return
!0::
ClipBoard := Clip0
Send ^v
return

In the above code, you can hover select the text and press control-Shift-(respective number) to copy, and alt (respective number to paste).

So, for instance, I want to copy “6789” and “1234”, then first I would select 6789, press control-Shift-1, and select 1234 and press control-shift-2. By doing that, I can paste 1234 when I press, alt-2, and 6789 whenever I press alt-1. This code lets you configure 10 keys which you can use to copy paste more conveniently, right from 0 to 9.

This would save you a lot of time, especially if you copy paste a lot — be it on the browser, or excel etc. If you run into any problem, then do not hesitate to drop in a comment, and I would do my best to help you.

Leave a Reply

Your email address will not be published. Required fields are marked *