Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. #SingleInstance force
  2.  
  3. ;-----------------------------------------
  4. ;functions
  5. ;-----------------------------------------
  6. copyAllAndReturn()
  7. {
  8. send ^a^c
  9. return RegExReplace(Clipboard, "\R", "`n")
  10. }
  11.  
  12. goToWERSSelectBar() ; assumes WERS is connected, in focus, and on a CR screen
  13. {
  14. send {home}+{tab}
  15. }
  16.  
  17. ;-----------------------------------------
  18. ;hotkey functions
  19. ;-----------------------------------------
  20. !c::send_test()
  21. !j::extract_data()
  22. !h::goToWERSSelectBar()
  23.  
  24.  
  25. send_test()
  26. {
  27. send This is good {enter}
  28. }
  29.  
  30. extract_data() ; assumes WERS is connected, in focus, and on a CR front screen
  31. {
  32. SEP = `n--------------------------------------------------------------------------`n
  33. fullExtract :=
  34.  
  35. goToWERSSelectBar()
  36. send 1{enter}
  37. curData := copyAllAndReturn()
  38. fullExtract=%fullExtract%%curData%%SEP%
  39.  
  40. send {enter}
  41. curData := copyAllAndReturn()
  42. fullExtract=%fullExtract%%curData%%SEP%
  43.  
  44. Clipboard := fullExtract
  45. }
  46.  
  47.  
  48. return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement