Advertisement
Ooker

Untitled

Dec 5th, 2021
1,565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #If WinActive("ahk_class Notepad++")
  2. return
  3.  
  4. :*T:az::
  5. SendInput,
  6. (
  7. fsd
  8. )
  9.  
  10. TextToSend := "
  11. (
  12. Text
  13. with
  14. multiple
  15. lines
  16. )"
  17.  
  18. lines := StrSplit(TextToSend, "`n", "`r")
  19. i := 1
  20.  
  21. ~Enter::
  22.     if (i > lines.length())
  23.         return
  24.    
  25.     SendInput, % "{Text}" lines[i]
  26.     i++
  27. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement