Facebook
From secretputinagent, 1 Month ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 136
  1. bind YOUR_KB_KEY(like h) "vstr cycle1_toggle"
  2. seta cycle1_toggle "vstr phrase_1"
  3. seta phrase_1 "set cycle1_toggle vstr phrase_2; say THIS IS 1st MESSAGE"
  4. seta phrase_2 "set cycle1_toggle vstr phrase_3; say THIS IS 2nd MESSAGE"
  5. seta phrase_3 "set cycle1_toggle vstr phrase_1; say THIS IS LAST MESSAGE, NEXT WILL LOOPBACK TO 1st"
  6.  
  7.  
  8. # Function
  9. 1. bind will bind key to 'vstr' op, which evals the contents of "cycle1_toggle".
  10. 2. the "cycle1_toggle" is main worker, it is continously rewritten with TWO things: a) copy of next instruction b) payload: say command
  11. 3. pay attention that at the very end (here "phrase_3"), the "a)" should point back to phrase_1 for loop to continue.
  12.  
  13.  
  14. # How to use
  15. copy the 5-line block somewhere above and modify it like this:
  16. 1. set bind key, one key will switch output on every press
  17. 2. modify the text in "say ___"
  18. 3. if you want to expand the loop (have more than 3 looped strings) do this:
  19.  
  20. 3.1. duplicate the "seta phrase_2 ......" below "seta phrase_2"
  21. 3.2. change its "say ___" to new text
  22. 3.3. rename it from "seta phrase_2" to NEXT number
  23. 3.4. make sure that "seta phrase_3.." (4,5,6 etc) points to the next "...vstr phrase_4;.." (5,6,7 etc).
  24.  
  25. 4. IMPORTANT the very command "seta phrase_N" (above its "seta phrase_3") should point to very first (here "vstr phrase_1") so it loops back.
  26.  
  27. # Do not modify
  28. - cycle1_toggle variable name, it can be any, but should be same across code.
  29. - you can add additional commands after "say ___" with semicolon (;), but note that flood protection may prevent outputting many phrases at once.
  30.  
  31. yw