Skip to content

Instantly share code, notes, and snippets.

@CFiggers
Created February 3, 2021 06:01
Show Gist options
  • Save CFiggers/20423cf300a948aee116e77bafd3ee01 to your computer and use it in GitHub Desktop.
Save CFiggers/20423cf300a948aee116e77bafd3ee01 to your computer and use it in GitHub Desktop.
Join Roam Blocks Autohotkey Script
; Change what's before the double colons to change the keyboard shortcut
; Currently set to Ctrl+j
^j::
oldclip := Clipboard
SendInput ^c
Sleep 150
n =
Clipboard := StrReplace(StrReplace(Clipboard, "`n" , "", n),"- " , "")
SendInput {Right 3}
n := n - 1
Sleep 150
Loop, %n%
{
SendInput ^a
SendInput {Backspace 2}
Sleep 150
}
SendInput ^a
SendInput ^v
Sleep 150
Clipboard := oldclip
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment