Advertisement
Ooker

Untitled

Dec 11th, 2021
1,645
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
  2. #Warn  ; Enable warnings to assist with detecting common errors.
  3. SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
  4. SetWorkingDir `%A_ScriptDir`%  ; Ensures a consistent starting directory.
  5.  
  6. :*T:thamgia::
  7. SendInput,
  8. (
  9. Chào bạn ____________________. Cảm ơn bạn đã tham gia vào nhóm Mạng lưới người thân, bạn bè của người có niềm tin tiêu cực facebook.com/groups/thaydoiniemtintieucuc^{Home}{right 9}
  10. )
  11. TextToSend := "
  12. (
  13.  
  14. first line
  15. second line
  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