Jump to content

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

duplicate line


  • Please log in to reply
22 replies to this topic
svi
  • Members
  • 237 posts
  • Last active: Mar 09 2015 06:34 PM
  • Joined: 09 Oct 2006

... pastes:
Send {End}{Enter}^v


Very strange :?
I think ClipWait isn't needed if you use ^v. So remove it (or increase it's value :shock:).
Pekka Vartto

svi
  • Members
  • 237 posts
  • Last active: Mar 09 2015 06:34 PM
  • Joined: 09 Oct 2006
Still some difficulties whith Greek: in WordPad the cursor goes "home" sometimes if those chars are in text :?

Edit:

... the cursor goes "home"

or the caret, to be precise.
Slowing down the script seem to help :)
Pekka Vartto

NotLoggedIn-Conquer
  • Guests
  • Last active:
  • Joined: --

you don't need to use raw and also Greek chars gets copied like normally Smile


touche. xD

azure
  • Members
  • 1216 posts
  • Last active: Mar 18 2015 09:06 AM
  • Joined: 07 Jun 2007
it still doesnt work :(

NotLoggedIn-Conquer
  • Guests
  • Last active:
  • Joined: --
Strange.. Well. I'm stumped.

svi
  • Members
  • 237 posts
  • Last active: Mar 09 2015 06:34 PM
  • Joined: 09 Oct 2006

it still doesnt work :(

Could you specify, if you're still interested.
Pekka Vartto

azure
  • Members
  • 1216 posts
  • Last active: Mar 18 2015 09:06 AM
  • Joined: 07 Jun 2007
yep, I am still interested, its a very useful idea imo

but I cant make it work, it still has the above mentioned behaviour

svi
  • Members
  • 237 posts
  • Last active: Mar 09 2015 06:34 PM
  • Joined: 09 Oct 2006
This simple script seems to work for me in Notepad, Notepad++ and WordPad:
^y::	
Temp := ClipboardAll
Clipboard =
Send {End}+{home}^c{End}{Enter}^v
Clipboard := Temp
return

I've tested it with Greek keyboard layout (although Notepad++ shows áâøäåöãçéîêëìíïð;ñóôèùò÷õæ as 26, basic, "english" alphabets, not Greek).

I removed SetKeyDelay, -1, because the increased speed seemed to cause troubles, eg. strange habit to paste the content of the clipboard (although it's emptied!) instead of the current line.

It has one inconvenience: If you want to eg. triplicate a line, the Alt key has to be released in between not to send y, the hotkey.
Pekka Vartto