Advertisement
Guest User

Untitled

a guest
Apr 27th, 2015
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. ; Special dashes:
  2. dashCount := 0
  3.  
  4. !-::
  5. dashCount++
  6. if(dashCount = 1) {
  7. SetTimer, WaitForAlt, -1
  8. }
  9. return
  10.  
  11. WaitForAlt:
  12. KeyWait, Alt
  13. if(dashCount = 2) {
  14. ; En-dash
  15. Send {ASC 0150}
  16. } else if(dashCount = 3) {
  17. ; Em-dash
  18. Send {ASC 0151}
  19. }
  20. dashCount := 0
  21. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement