Select Text Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
Wazowski
Posts: 59
Joined: 16 Jun 2015, 21:04

Select Text

29 Aug 2018, 12:58

Hello boys,

I require something very simple.

Image

Excuse me for my bad English :crazy:

I'm from Venezuela using Google Translate
User avatar
jackdunning
Posts: 120
Joined: 01 Aug 2016, 18:17
Facebook: https://www.facebook.com/ComputorEdgeEBooks/posts
Contact:

Re: Select Text  Topic is solved

29 Aug 2018, 13:21

I use a technique I call the Standard AutoHotkey Clipboard Routine (as described in "AutoHotkey Windows Clipboard Techniques for Swapping Letters"):

Code: Select all

^!f::
  OldClipboard := ClipboardAll
  Clipboard = ;clears the Clipboard
  SendInput, ^c
  ClipWait 0 ;pause for Clipboard data
  If ErrorLevel
   {
    MsgBox, No text selected!
   }
  Clipboard := "_" . Clipboard . "_"
  SendInput, ^v
  Clipboard := OldClipboard
Return
Select the text and execute the CTRL+ALT+F key combination.
Last edited by jackdunning on 29 Aug 2018, 16:14, edited 1 time in total.
Guest

Re: Select Text

29 Aug 2018, 15:22

Send ^V might actually send Ctrl+Shift+V so be sure to make it lower case v
User avatar
jackdunning
Posts: 120
Joined: 01 Aug 2016, 18:17
Facebook: https://www.facebook.com/ComputorEdgeEBooks/posts
Contact:

Re: Select Text

29 Aug 2018, 16:21

You'll find times when the case does matter, but, in this instance, it has the same effect. However, in principle, I agree with you and have adjusted my post respectively.
Wazowski
Posts: 59
Joined: 16 Jun 2015, 21:04

Re: Select Text

29 Aug 2018, 20:32

jackdunning wrote:I use a technique I call the Standard AutoHotkey Clipboard Routine (as described in "AutoHotkey Windows Clipboard Techniques for Swapping Letters"):

Code: Select all

^!f::
  OldClipboard := ClipboardAll
  Clipboard = ;clears the Clipboard
  SendInput, ^c
  ClipWait 0 ;pause for Clipboard data
  If ErrorLevel
   {
    MsgBox, No text selected!
   }
  Clipboard := "_" . Clipboard . "_"
  SendInput, ^v
  Clipboard := OldClipboard
Return
Select the text and execute the CTRL+ALT+F key combination.
Works perfectly :bravo:

thank you very much

Return to “Ask For Help”

Who is online

Users browsing this forum: AHKStudent, BeSu, Bing [Bot], mcl, mikeyww, pizzapizze, Saarthak Kamra, samzz and 43 guests