Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 2205

Sorting lines of text in TCEdit

$
0
0
I want the ability to sort lines of text while inside TCEdit.

To do this,
I created an AutoHotKey script,
and added it to my HotStrings.ahk file.

Code:
#HotIf WinActive("ahk_exe TCEdit.exe")
^+x:: {   ; Ctrl (^) + Shift (+) + X
    ; Select all
    Send("^a")
    Sleep 60

    ; Copy 
    Send("^c")

    ClipWait(2)

    txt := A_Clipboard
    txt := Sort(txt, "U")
    A_Clipboard := txt
   
    Sleep 80 ; Paste the result (replaces the highlighted text)
    Send("^v")
}
#HotIf
...

Read more

Viewing all articles
Browse latest Browse all 2205

Latest Images

Trending Articles



Latest Images