Jump to content

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

Putting quotes around selected text


  • Please log in to reply
2 replies to this topic
Coyote
  • Members
  • 7 posts
  • Last active: Jan 17 2012 03:29 PM
  • Joined: 03 Feb 2011
Not sure how to do this, but was wondering if it'll be possible to highlight a portion of text, then after hitting " or ( or { or < or whatever, the script puts the " at the start and end of the text selected.


Thanks

sp
  • Members
  • 52 posts
  • Last active: Jun 10 2011 02:05 PM
  • Joined: 07 May 2011
Well, select the text field, and then with ahk hotkey, Send contrl x to cut the text, empy clipboard (with clipboard =), put it in clipboard, add the quotes and then Send ctrl p to paste the new text in the text field.

sinkfaze
  • Moderators
  • 6367 posts
  • Last active: Nov 30 2018 08:50 PM
  • Joined: 18 Mar 2008
Send ^x

Sleep, 100

ClipWait

Clipboard="%Clipboard%"

Sleep, 100

ClipWait

Send ^v

return