Hello. I am new to AHK and have very basic undestanding of programming languages.
I want to paste a string of 12 Characters that will be stored in Clipboard in three different parts.
E.g. If string is 111122223333
Than I want it to first paste 1111 followed by a Tab 2222 Tab Again and finally 3333. All this by pressing only a single hotkey.
Is there anyway to do this ?
Thank you in Advance.
Pasting a string in three parts.
- Blackholyman
- Posts: 1293
- Joined: 29 Sep 2013, 22:57
- Location: Denmark
- Contact:
Re: Pasting a string in three parts.
one of meny ways
Code: Select all
f2::
string := Clipboard
Loop, parse, string
{
send %A_LoopField%
if !mod(A_index, 4)
send %A_tab%
}
return
Courses on AutoHotkey
My Autohotkey Blog
Re: Pasting a string in three parts.
Thank You very much. Will try it today and let you know. Much appreciated.
Re: Pasting a string in three parts.
Thank You. It did what I asked for. But at the end when the final string has been pasted, it sends two extra TAB press. Any way to avoid that ?
Who is online
Users browsing this forum: Google [Bot], newbieforever and 62 guests