Advertisement
Guest User

Untitled

a guest
Feb 17th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SetWorkingDir, C:\Users\Patrick\Downloads\tmp-reset-analysis-meme\
  2.  
  3. global f
  4.  
  5. global b
  6. global c
  7. global e
  8. global m
  9. global r
  10. global s
  11. global w
  12. global y
  13. global l
  14. b := FileOpen("b.txt", "a")
  15. c := FileOpen("c.txt", "a")
  16. e := FileOpen("e.txt", "a")
  17. r := FileOpen("r.txt", "a")
  18. m := FileOpen("m.txt", "a")
  19. s := FileOpen("s.txt", "a")
  20. w := FileOpen("w.txt", "a")
  21. y := FileOpen("y.txt", "a")
  22. l := FileOpen("l.txt", "a")
  23.  
  24. global words
  25. words := { "b": "bike", "c": "car", "e": "enex", "r": "running", "s": "shooting", "w": "waiting", "y": "cycling", "m": "misc", "l": "flying" }
  26.  
  27. F12::reload
  28. b::b()
  29. c::c()
  30. e::e()
  31. r::r()
  32. s::s()
  33. w::w()
  34. y::y()
  35. m::m()
  36. l::l()
  37.  
  38.  
  39. append(f, l){
  40.     msg := words[l]
  41.     tooltip, %msg%
  42.     KeyWait b
  43.     KeyWait c
  44.     KeyWait e
  45.     KeyWait s
  46.     KeyWait w
  47.     KeyWait y
  48.     KeyWait m
  49.     KeyWait r
  50.     KeyWait l
  51.     clipboard := ""                ; empty clipboard
  52.     Send, ^c                       ; copy the selected file
  53.     ClipWait, 1                    ; wait for the clipboard to contain data
  54.     if (!ErrorLevel)               ; If NOT ErrorLevel clipwait found data on the clipboard
  55.     clipboard := clipboard         ; convert to text (= copy the path)
  56.     f.Write( RegExReplace(clipboard, ".*\\(.*)", "$1") )
  57. }
  58.  
  59.  
  60. b(){
  61.     append(b, "b")
  62. }
  63. c(){
  64.     append(c, "c")
  65. }
  66. e(){
  67.     append(e, "e")
  68. }
  69. r(){
  70.     append(r, "r")
  71. }
  72. s(){
  73.     append(s, "s")
  74. }
  75. w(){
  76.     append(w, "w")
  77. }
  78. y(){
  79.     append(y, "y")
  80. }
  81. m(){
  82.     append(m, "m")
  83. }
  84. l(){
  85.     append(l, "l")
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement